You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also write your own custom cluster manager; see the instructions in the [Julia manual](https://docs.julialang.org/en/v1/manual/distributed-computing/#ClusterManagers).
37
37
38
-
### Slurm: a simple example
38
+
### Slurm: please see [SlurmClusterManager.jl](https://github.com/JuliaParallel/SlurmClusterManager.jl)
39
39
40
-
```julia
41
-
using Distributed, ClusterManagers
42
-
43
-
# Arguments to the Slurm srun(1) command can be given as keyword
44
-
# arguments to addprocs. The argument name and value is translated to
45
-
# a srun(1) command line argument as follows:
46
-
# 1) If the length of the argument is 1 => "-arg value",
47
-
# e.g. t="0:1:0" => "-t 0:1:0"
48
-
# 2) If the length of the argument is > 1 => "--arg=value"
49
-
# e.g. time="0:1:0" => "--time=0:1:0"
50
-
# 3) If the value is the empty string, it becomes a flag value,
51
-
# e.g. exclusive="" => "--exclusive"
52
-
# 4) If the argument contains "_", they are replaced with "-",
0 commit comments