Skip to content

Commit 01b0d63

Browse files
smoorslexming
andauthored
Update source/jobs/job_advanced.rst
Co-authored-by: Alex Domingo <[email protected]>
1 parent 17bdf56 commit 01b0d63

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/jobs/job_advanced.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,13 @@ The following command shows how to run a shared memory program on 16 cores:
197197
198198
login$ salloc --ntasks=1 --cpus-per-task=16 --time=1:00:00 --mem-per-cpu=3g
199199
200-
executed on a login node will return a shell on the login node. To then execute commands,
201-
it is still better to rebuild the environment just as for a batch script as some modules
202-
will use different settings when they load in a Slurm environment. So let's use this shell
203-
to start the demo program ``omp_hello`` on the allocated resources:
200+
``salloc`` executed on a login node will open a shell that runs on the login node but
201+
that can be used to execute tasks on the allocated resources. Therefore,
202+
it is recommended to re-create the environment as some modules
203+
will use different settings when they load in a Slurm environment.
204+
205+
|Example| Let's use the previous ``salloc`` shell to start the demo
206+
program ``omp_hello`` on the allocated resources:
204207

205208
.. code:: bash
206209

0 commit comments

Comments
 (0)