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:

  1. OMP_NUM_THREADS

  2. SLURM_CPUS_PER_TASK

  3. SLURM_JOB_CPUS_PER_NODE

  4. SLURM_CPUS_ON_NODE

  5. or from the Python function os.cpu_count()