Skip to content

Commit

Permalink
clarify salloc
Browse files Browse the repository at this point in the history
  • Loading branch information
matbun committed Jan 9, 2025
1 parent c275a8c commit 07f6160
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/getting-started/slurm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ Once resources are available, the command will return a ``JOBID``. Use it to jum
Remember to load the correct environment modules before activating the python virtual environment.

Alternatively, if you don't need to open a terminal on the compute node allocated with the
``salloc`` command shown above, you can simply run a command in the allocated node(s) by prepending
``srun`` to your command. Example:
Alternatively, if you don’t need to open an interactive shell on the compute node allocated
with the ``salloc`` command,
you can directly run a command on the allocated node(s) by prefixing your command with ``srun``.
This approach ensures that your command is executed on the compute node rather than on the login node.

.. code-block:: bash
Example:

srun YOUR_COMMAND
.. code-block:: bash
In this case, ``srun`` will make sure that the command is executed on the compute node rather
than on the login node, on which you have a terminal open.
srun YOUR_COMMAND
Environment variables
---------------------
Expand Down

0 comments on commit 07f6160

Please sign in to comment.