Skip to content

Commit

Permalink
gpu_cmode.lua: move spank init part to slurm_spank_task_init_privileg…
Browse files Browse the repository at this point in the history
…ed(), to run as root in the device cgroup
  • Loading branch information
kcgthb committed Mar 9, 2022
1 parent fde545f commit 3eb9901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpu_cmode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ end
-- SPANK function, called after privileges are temporarily dropped.
-- needs to run as root, but in the job cgroup context, if any.
--
function slurm_spank_user_init(spank)
function slurm_spank_task_init_privileged(spank)

-- if context is not "remote" or compute mode is not defined, do nothing
if spank.context ~= "remote" or cmode == nil then
Expand Down

0 comments on commit 3eb9901

Please sign in to comment.