From 948df2716a25b9cfe316a44d45e943b906d2adc8 Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Mon, 11 Dec 2023 16:25:39 -0800 Subject: [PATCH] call slurm_init() before other slurm_*() calls slurm now makes it a requirement to call slurm_init() before any other slurm_*() calls. --- src/slurm/internal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slurm/internal.c b/src/slurm/internal.c index 51046de..c794e0b 100644 --- a/src/slurm/internal.c +++ b/src/slurm/internal.c @@ -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."