Skip to content

Commit

Permalink
Update slurm.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Jan 2, 2025
1 parent fe6a94c commit fabab2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/slurm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ function launch(manager::SlurmManager, params::Dict, instances_arr::Array,
"(from the `ClusterManagers.jl` package) are deprecated. " *
"Consider using the `SlurmClusterManager.jl` package instead."
funcsym = :addprocs_slurm
force = true
Base.depwarn(msg, funcsym; force)
@static if Base.VERSION >= v"1.3"
Base.depwarn(msg, funcsym; force = true)
else
# Julia 1.2 and earlier do not support the `force` kwarg.
Base.depwarn(msg, funcsym)
end
end
try
exehome = params[:dir]
Expand Down

0 comments on commit fabab2a

Please sign in to comment.