Skip to content

Commit

Permalink
Update source/jobs/job_advanced.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Domingo <[email protected]>
  • Loading branch information
smoors and lexming authored Dec 8, 2023
1 parent 17bdf56 commit 01b0d63
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/jobs/job_advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,13 @@ The following command shows how to run a shared memory program on 16 cores:
login$ salloc --ntasks=1 --cpus-per-task=16 --time=1:00:00 --mem-per-cpu=3g
executed on a login node will return a shell on the login node. To then execute commands,
it is still better to rebuild the environment just as for a batch script as some modules
will use different settings when they load in a Slurm environment. So let's use this shell
to start the demo program ``omp_hello`` on the allocated resources:
``salloc`` executed on a login node will open a shell that runs on the login node but
that can be used to execute tasks on the allocated resources. Therefore,
it is recommended to re-create the environment as some modules
will use different settings when they load in a Slurm environment.

|Example| Let's use the previous ``salloc`` shell to start the demo
program ``omp_hello`` on the allocated resources:

.. code:: bash
Expand Down

0 comments on commit 01b0d63

Please sign in to comment.