Skip to content
Snippets Groups Projects
Commit 8f972c21 authored by Moe Jette's avatar Moe Jette
Browse files

Set SLURM_CPUS_PER_TASK and SLURM_NPROCS in allocation shell only if explcitly

set on execute line.
parent 6f16cfa4
No related branches found
No related tags found
No related merge requests found
...@@ -726,8 +726,10 @@ static int _run_job_script (job_t *job, env_t *env) ...@@ -726,8 +726,10 @@ static int _run_job_script (job_t *job, env_t *env)
pid_t cpid; pid_t cpid;
char **argv = (remote_argv[0] ? remote_argv : NULL); char **argv = (remote_argv[0] ? remote_argv : NULL);
env->nprocs = opt.nprocs; if (opt.nprocs_set)
env->cpus_per_task = opt.cpus_per_task; env->nprocs = opt.nprocs;
if (opt.cpus_set)
env->cpus_per_task = opt.cpus_per_task;
env->distribution = opt.distribution; env->distribution = opt.distribution;
env->overcommit = opt.overcommit; env->overcommit = opt.overcommit;
env->slurmd_debug = opt.slurmd_debug; env->slurmd_debug = opt.slurmd_debug;
......
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