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

Get --ntasks-per-node option working for sbatch command.

parent ec325270
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ documents those changes that are of interest to users and admins. ...@@ -3,6 +3,7 @@ documents those changes that are of interest to users and admins.
* Changes in SLURM 1.3.2 * Changes in SLURM 1.3.2
======================== ========================
-- Get --ntasks-per-node option working for sbatch command.
* Changes in SLURM 1.3.1 * Changes in SLURM 1.3.1
======================== ========================
......
...@@ -235,7 +235,7 @@ static void _opt_default() ...@@ -235,7 +235,7 @@ static void _opt_default()
opt.max_cores_per_socket = NO_VAL; opt.max_cores_per_socket = NO_VAL;
opt.min_threads_per_core = NO_VAL; /* requested min/maxthreads */ opt.min_threads_per_core = NO_VAL; /* requested min/maxthreads */
opt.max_threads_per_core = NO_VAL; opt.max_threads_per_core = NO_VAL;
opt.ntasks_per_node = NO_VAL; /* ntask max limits */ opt.ntasks_per_node = 0; /* ntask max limits */
opt.ntasks_per_socket = NO_VAL; opt.ntasks_per_socket = NO_VAL;
opt.ntasks_per_core = NO_VAL; opt.ntasks_per_core = NO_VAL;
opt.cpu_bind_type = 0; /* local dummy variable for now */ opt.cpu_bind_type = 0; /* local dummy variable for now */
......
...@@ -168,6 +168,8 @@ static int fill_job_desc_from_opts(job_desc_msg_t *desc) ...@@ -168,6 +168,8 @@ static int fill_job_desc_from_opts(job_desc_msg_t *desc)
desc->licenses = xstrdup(opt.licenses); desc->licenses = xstrdup(opt.licenses);
if (opt.max_nodes) if (opt.max_nodes)
desc->max_nodes = opt.max_nodes; desc->max_nodes = opt.max_nodes;
if (opt.ntasks_per_node)
desc->ntasks_per_node = opt.ntasks_per_node;
desc->user_id = opt.uid; desc->user_id = opt.uid;
desc->group_id = opt.gid; desc->group_id = opt.gid;
if (opt.dependency) if (opt.dependency)
......
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