We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f368fdc commit 7a43066Copy full SHA for 7a43066
src/slurmmanager.jl
@@ -1,7 +1,7 @@
1
"""
2
ClusterManager for a Slurm allocation
3
4
-Represents the resources available within a slurm allocation created by salloc/sbatch.
+Represents the resources available within a slurm allocation created by salloc/sbatch.\\
5
The environment variables `SLURM_JOB_ID` or `SLURM_JOBID` and `SLURM_NTASKS` must be defined to construct this object.
6
7
mutable struct SlurmManager <: ClusterManager
@@ -30,7 +30,7 @@ mutable struct SlurmManager <: ClusterManager
30
if "SLURM_NTASKS" in keys(ENV)
31
ENV["SLURM_NTASKS"]
32
else
33
- throw("""
+ error("""
34
SlurmManager must be constructed inside a slurm environment with a specified number of tasks.
35
SLURM_NTASKS must be defined.
36
""")
0 commit comments