get_num_CPUs
- mdtools.run_time_info.get_num_CPUs()[source]
Get the number of available CPUs.
The number of available CPUs is obtained in decreasing precedence from the environment variables:
OMP_NUM_THREADS
SLURM_CPUS_PER_TASK
SLURM_JOB_CPUS_PER_NODE
SLURM_CPUS_ON_NODE
or from the Python function
os.cpu_count()