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

Fix CPU binding for batch program. Patch from Matthieu Hautreux, CEA.

parent 512ebd12
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ documents those changes that are of interest to users and admins.
-- Configuration parameter ResumeDelay added to control how much time must
after a node has been suspended before resume it (e.g. powering it back
up).
-- Fix CPU binding for batch program. Patch from Matthieu Hautreux, CEA.
* Changes in SLURM 2.0.0-rc1
============================
......
......@@ -225,7 +225,18 @@ void batch_bind(batch_job_launch_msg_t *req)
if (conf->task_plugin_param & CPU_BIND_VERBOSE)
req->cpu_bind_type |= CPU_BIND_VERBOSE;
req->cpu_bind = (char *)bit_fmt_hexmask(hw_map);
info("task/affinity: job %u CPU final mask for node: %s",
info("task/affinity: job %u CPU input mask for node: %s",
req->job_id, req->cpu_bind);
/* translate abstract masks to actual hardware layout */
_lllp_map_abstract_masks(1, &hw_map);
#ifdef HAVE_NUMA
if (req->cpu_bind_type & CPU_BIND_TO_LDOMS) {
_match_masks_to_ldom(1, &hw_map);
}
#endif
xfree(req->cpu_bind);
req->cpu_bind = (char *)bit_fmt_hexmask(hw_map);
info("task/affinity: job %u CPU final HW mask for node: %s",
req->job_id, req->cpu_bind);
} else {
error("task/affinity: job %u allocated no CPUs",
......
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