Skip to content
Snippets Groups Projects
Commit 37655f49 authored by Mark Grondona's avatar Mark Grondona
Browse files

o include SLURM_JOBID in set of environment variables set for jobs

parent ecaaf807
No related branches found
No related tags found
No related merge requests found
...@@ -342,6 +342,8 @@ _setup_env(slurmd_job_t *job, int taskid) ...@@ -342,6 +342,8 @@ _setup_env(slurmd_job_t *job, int taskid)
int cnt = (int) job->envc; int cnt = (int) job->envc;
task_info_t *t = job->task[taskid]; task_info_t *t = job->task[taskid];
if (setenvpf(&job->env, &cnt, "SLURM_JOBID=%d", job->jobid) < 0)
return -1;
if (setenvpf(&job->env, &cnt, "SLURM_NODEID=%d", job->nodeid) < 0) if (setenvpf(&job->env, &cnt, "SLURM_NODEID=%d", job->nodeid) < 0)
return -1; return -1;
if (setenvpf(&job->env, &cnt, "SLURM_PROCID=%d", t->gid ) < 0) if (setenvpf(&job->env, &cnt, "SLURM_PROCID=%d", t->gid ) < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment