Skip to content
Snippets Groups Projects
Commit ba40aa76 authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Fix for srun -n and -O options when paired with -b.

parent 5a3b2baf
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ documents those changes that are of interest to users and admins. ...@@ -9,6 +9,7 @@ documents those changes that are of interest to users and admins.
-- Set "CFLAGS=-DISO8601" before configuration to get ISO8601 format -- Set "CFLAGS=-DISO8601" before configuration to get ISO8601 format
times for all SLURM commands. NOTE: This may break Moab, Maui, and/or times for all SLURM commands. NOTE: This may break Moab, Maui, and/or
LSF schedulers. LSF schedulers.
-- Fix for srun -n and -O options when paired with -b.
* Changes in SLURM 1.1.0-pre8 * Changes in SLURM 1.1.0-pre8
============================= =============================
......
...@@ -492,6 +492,7 @@ job_desc_msg_create_from_opts (char *script) ...@@ -492,6 +492,7 @@ job_desc_msg_create_from_opts (char *script)
j->host = NULL; j->host = NULL;
if (script) { if (script) {
char *buf = NULL;
/* /*
* If script is set then we are building a request for * If script is set then we are building a request for
* a batch job * a batch job
...@@ -500,6 +501,8 @@ job_desc_msg_create_from_opts (char *script) ...@@ -500,6 +501,8 @@ job_desc_msg_create_from_opts (char *script)
if (opt.overcommit) if (opt.overcommit)
putenv("SLURM_OVERCOMMIT=1"); putenv("SLURM_OVERCOMMIT=1");
xstrfmtcat(buf, "SLURM_NPROCS=%d", opt.nprocs);
putenv(buf);
j->environment = environ; j->environment = environ;
j->env_size = envcount (environ); j->env_size = envcount (environ);
......
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