Skip to content
Snippets Groups Projects
Commit 2c1c5afb authored by Moe Jette's avatar Moe Jette
Browse files
parent ece7b0c6
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,8 @@ documents those changes that are of interest to users and admins. ...@@ -82,6 +82,8 @@ documents those changes that are of interest to users and admins.
-- In switch/federation, fix small memory leak effecting slurmd. -- In switch/federation, fix small memory leak effecting slurmd.
-- Add PMI_FANOUT_OFF_HOST environment variable to control how message -- Add PMI_FANOUT_OFF_HOST environment variable to control how message
forwarding is done for PMI (MPICH2). See "man srun" for details. forwarding is done for PMI (MPICH2). See "man srun" for details.
-- From sbatch set SLURM_NTASKS_PER_NODE when --ntasks-per-node option is
specified.
* Changes in SLURM 1.2.19 * Changes in SLURM 1.2.19
========================= =========================
......
.TH "sbatch" "1" "SLURM 1.3" "September 2007" "SLURM Commands" .TH "sbatch" "1" "SLURM 1.3" "November 2007" "SLURM Commands"
.SH "NAME" .SH "NAME"
.LP .LP
sbatch \- Submit a batch script to SLURM. sbatch \- Submit a batch script to SLURM.
...@@ -642,6 +642,18 @@ Do not allocate a block on Blue Gene systems only. ...@@ -642,6 +642,18 @@ Do not allocate a block on Blue Gene systems only.
\fBMPIRUN_NOFREE\fR \fBMPIRUN_NOFREE\fR
Do not free a block on Blue Gene systems only. Do not free a block on Blue Gene systems only.
.TP .TP
\fBSLURM_NTASKS_PER_CORE\fR
Number of tasks requested per core.
Only set if the \fB\-\-ntasks\-per\-core\fR option is specified.
.TP
\fBSLURM_NTASKS_PER_NODE\fR
Number of tasks requested per node.
Only set if the \fB\-\-ntasks\-per\-node\fR option is specified.
.TP
\fBSLURM_NTASKS_PER_SOCKET\fR
Number of tasks requested per socket.
Only set if the \fB\-\-ntasks\-per\-socket\fR option is specified.
.TP
\fBMPIRUN_PARTITION\fR \fBMPIRUN_PARTITION\fR
The block name on Blue Gene systems only. The block name on Blue Gene systems only.
......
...@@ -1173,14 +1173,20 @@ static void _set_options(int argc, char **argv) ...@@ -1173,14 +1173,20 @@ static void _set_options(int argc, char **argv)
case LONG_OPT_NTASKSPERNODE: case LONG_OPT_NTASKSPERNODE:
opt.ntasks_per_node = _get_int(optarg, opt.ntasks_per_node = _get_int(optarg,
"ntasks-per-node"); "ntasks-per-node");
setenvf(NULL, "SLURM_NTASKS_PER_NODE", "%d",
opt.ntasks_per_node);
break; break;
case LONG_OPT_NTASKSPERSOCKET: case LONG_OPT_NTASKSPERSOCKET:
opt.ntasks_per_socket = _get_int(optarg, opt.ntasks_per_socket = _get_int(optarg,
"ntasks-per-socket"); "ntasks-per-socket");
setenvf(NULL, "SLURM_NTASKS_PER_SOCKET", "%d",
opt.ntasks_per_socket);
break; break;
case LONG_OPT_NTASKSPERCORE: case LONG_OPT_NTASKSPERCORE:
opt.ntasks_per_core = _get_int(optarg, opt.ntasks_per_core = _get_int(optarg,
"ntasks-per-core"); "ntasks-per-core");
setenvf(NULL, "SLURM_NTASKS_PER_CORE", "%d",
opt.ntasks_per_socket);
break; break;
case LONG_OPT_BLRTS_IMAGE: case LONG_OPT_BLRTS_IMAGE:
xfree(opt.blrtsimage); xfree(opt.blrtsimage);
......
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