Skip to content

Commit

Permalink
call slurm_init() before other slurm_*() calls
Browse files Browse the repository at this point in the history
slurm now makes it a requirement to call slurm_init() before
any other slurm_*() calls.
  • Loading branch information
morrone committed Dec 12, 2023
1 parent 97a4bfc commit 948df27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/slurm/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ int internal_init(int verb)

if (getenv("SLURM_JOB_ID") != NULL
|| getenv("SLURM_JOBID") != NULL) {
slurm_init(NULL);
return 1;
} else {
debug("ERROR: Neither SLURM_JOBID nor SLURM_JOB_ID are set."
Expand Down

0 comments on commit 948df27

Please sign in to comment.