Skip to content

Commit

Permalink
Show how to specify NSC project.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Sep 26, 2021
1 parent 50ba80e commit f201dd6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lab/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,15 @@ class SlurmEnvironment(Environment):
be sent when the last experiment step finishes.
Use *extra_options* to pass additional options. The *extra_options*
string may contain newlines. Slurm example that uses a given set of
nodes (additional nodes will be used if the given ones don't satisfy
the resource constraints)::
string may contain newlines. The first example below uses only a given
set of nodes (additional nodes will be used if the given ones don't
satisfy the resource constraints). The second example shows show to
specify a project account (needed on NSC if you're part of multiple
projects). ::
extra_options="#SBATCH --nodelist=ase[1-5,7,10]"
extra_options="#SBATCH --account=snic2021-5-330"
extra_options='#SBATCH --nodelist=ase[1-5,7,10]'
*partition* must be a valid Slurm partition name. In Basel you
can choose from
Expand Down

0 comments on commit f201dd6

Please sign in to comment.