compass.parallel.check_parallel_system

compass.parallel.check_parallel_system(config)[source]

Check whether we are in an appropriate state for the given queuing system. For systems with Slurm, this means that we need to have an interactive or batch job on a compute node, as determined by the $SLURM_JOB_ID environment variable.

Parameters

config (compass.config.CompassConfigParser) – Configuration options

Raises

ValueError – If using Slurm and not on a compute node