Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Hyperion.Slurm.Environment
Synopsis
- getNTasksPerNode :: IO Int
- getJobNodes :: IO [String]
- lookupHeadNode :: IO (Maybe String)
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