hyperion-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hyperion.Slurm.Environment

Synopsis

Documentation

getNTasksPerNode :: IO Int Source #

Returns number of tasks per node by reading system environment variables. If SLURM_NTASKS_PER_NODE is defined, returns it. Otherwise, tries to compute from SLURM_NTASKS and SLURM_JOB_NUM_NODES. If this doens't work either, fails with error.

getJobNodes :: IO [String] Source #

Returns the contents of SLURM_JOB_NODELIST as a list of nodes names

lookupHeadNode :: IO (Maybe String) Source #

Returns the value of SLURMD_NODENAME