diff --git a/docs.it4i/general/slurm-job-submission-and-execution.md b/docs.it4i/general/slurm-job-submission-and-execution.md index 55b00ffc3e0bc70e0a12bc4593b797015208e2a6..8ee7741d3c6985e8656d4f5e2640baf45418552d 100644 --- a/docs.it4i/general/slurm-job-submission-and-execution.md +++ b/docs.it4i/general/slurm-job-submission-and-execution.md @@ -10,12 +10,6 @@ A `man` page exists for all Slurm commands, as well as `--help` command option, which provides a brief summary of options. Slurm [documentation][c] and [man pages][d] are also available online. -To view all of the Slurm's environment variables, use the command: - -```shell -set | grep ^SLURM -``` - ### Quick Overview of Common Commands | Command | Explanation | @@ -130,6 +124,15 @@ Notice that Slurm spread our job across 2 different nodes; by default, Slurm sel * Beginning with 22.05, `srun` will not inherit the `--cpus-per-task` value requested by `salloc` or `sbatch`. It must be requested again with the call to `srun` or set with the `SRUN_CPUS_PER_TASK` environment variable if desired for the task(s). +#### Job environment_variables + +Slurm exposes useful information about job to job main process (usually shell) via environment variables. +To view all of the Slurm's environment variables, use the command: + +```shell +set | grep ^SLURM +``` + #### Common Job Workflow !!! Note