AllocCPUS
AllocCPUS is a Slurm job environment variable that indicates the number of CPUs allocated to the current job on the node where the job’s processes are running. It is set by the Slurm controller at job start and is exposed to tasks launched by srun or sbatch so that applications can adapt to the available parallelism.
The value represents the per-node CPU allocation for the job. In typical configurations, each node assigned
AllocCPUS can be accessed from within job scripts or applications as an environment variable. In a shell
Notes and limitations: not all environments guarantee the AllocCPUS variable, and some workflows rely on alternative
See also Slurm, environment variables, OpenMP, parallel computing.