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 b3ec9a0 commit 63ef16dCopy full SHA for 63ef16d
test/script.jl
@@ -33,11 +33,15 @@ end
33
34
# We intentionally do not use `@assert` here.
35
# In a future minor release of Julia, `@assert`s may be disabled by default.
36
-const SLURM_NTASKS = parse(Int, ENV["SLURM_NTASKS"])
+const SLURM_NTASKS = parse(Int, strip(ENV["SLURM_NTASKS"]))
37
if nworkers() != SLURM_NTASKS
38
msg = "Test failed: nworkers=$(nworkers()) does not match SLURM_NTASKS=$(SLURM_NTASKS)"
39
error(msg)
40
end
41
+if length(workers()) != SLURM_NTASKS
42
+ msg = "Test failed: length(workers())=$(length(workers())) does not match SLURM_NTASKS=$(SLURM_NTASKS)"
43
+ error(msg)
44
+end
45
46
const hosts = map(workers()) do id
47
remotecall_fetch(() -> gethostname(), id)
0 commit comments