[Krypton-users] Krypton: Use of -A flag
Kent Engström
kent at nsc.liu.se
Mon Nov 5 11:06:44 CET 2012
Dear Krypton Users,
SHORT VERSION
When you need to specify -A to run risk jobs or to run on fat nodes
(or if you belong to several groups), you need to specify -A on the
sbatch command line, not in the batch file (lines like "#SBATCH -A
rossby_fat").
We will get back to you if we can change this.
LONG VERSION
I did not read the man page well enough (or test all cases) before
implementing the changes last week. I was under the mistaken
impression that -A always overrode the environment variable
SBATCH_ACCOUNT. But, as the man page says, -A on the command line wins
over SBATCH_ACCOUNT which wins over -A in the batch file.
We will see if we can solve this in some other way so we do not have
to set SBATCH_ACCOUNT for you, but until then you have two choices:
1) Specify -A on the command line (not in the file) when you need a
non-default account (for risk jobs, fat nods, running for other group
you also belong too).
2) Unset SBATCH_ACCOUNT before submitting.
kent at nsc.liu.se (Kent Engström) writes last Thursday:
> SPECIFYING YOUR GROUP
> ---------------------
>
> You may need to specify what group your job belongs to. In SLURM
> speak, that is an account, and you specify it with "-A accountname" to
> sbatch, interactive, etc. For example:
>
> sbatch -N10 -t 2:0:0 -A rossby myscript.sh
>
> When you login, we now try to set the environment variable
> SBATCH_ACCOUNT to your default account, so if you are member of one
> group only, you may not need to specify -A for normal jobs.
> You can use "echo $SBATCH_ACCOUNT" to check the value.
>
> If you can run jobs in several groups, you need to pass -A correctly,
> or set SBATCH_ACCOUNT yourself.
...
> To submit risk jobs, add "_risk" to your account name. For example, if
> you are part of the sm_fouo group, use "-A sm_fouo_risk" on the
> sbatch command line.
...
> The 12 nodes with more memory are kept in a separate partition and are
> available to all groups. To use them, add "_fat" to your account
> name. For example, if you are part of the sm_foup group, use "-A
> sm_foup_fat" when you submit jobs.
--
Kent Engström, National Supercomputer Centre
kent at nsc.liu.se, +46 13 28 4444
More information about the Krypton-users
mailing list