Skip to content

Commit

Permalink
make_virtual_jobarray skip interactive session
Browse files Browse the repository at this point in the history
  • Loading branch information
AStupidBear committed Apr 28, 2021
1 parent 0a0d23a commit caa6c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GCMAES"
uuid = "4aa9d100-eb0f-11e8-15f1-25748831eb3b"
authors = ["Yao Lu <[email protected]>"]
version = "0.1.24"
version = "0.1.25"

[deps]
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"
Expand Down
1 change: 1 addition & 0 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ function limit_mem_per_cpu(mem)
end

function make_virtual_jobarray(n)
!inmpi() && return nothing
if !haskey(ENV, "SLURM_ARRAY_TASK_ID")
ENV["SLURM_ARRAY_TASK_ID"] = 0
ENV["SLURM_ARRAY_TASK_COUNT"] = 1
Expand Down

2 comments on commit caa6c68

@AStupidBear
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/35550

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.25 -m "<description of version>" caa6c68cd0ff80e08ba178eba9146ccab2edf20e
git push origin v0.1.25

Please sign in to comment.