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

Critical bug fix in task/affinity when the CoresPerSocket is greater

    than the ThreadsPerCore (invalid memory reference).
parent 6b2e77de
No related branches found
No related tags found
No related merge requests found
This file describes changes in recent versions of SLURM. It primarily This file describes changes in recent versions of SLURM. It primarily
documents those changes that are of interest to users and admins. documents those changes that are of interest to users and admins.
* Changes in SLURM 1.4.0-pre10
==============================
-- Critical bug fix in task/affinity when the CoresPerSocket is greater
than the ThreadsPerCore (invalid memory reference).
* Changes in SLURM 1.4.0-pre9 * Changes in SLURM 1.4.0-pre9
============================= =============================
-- OpenMPI users only: Add srun logic to automatically recreate and -- OpenMPI users only: Add srun logic to automatically recreate and
......
...@@ -483,7 +483,7 @@ static char *_alloc_mask(launch_tasks_request_msg_t *req, ...@@ -483,7 +483,7 @@ static char *_alloc_mask(launch_tasks_request_msg_t *req,
i = mask = 0; i = mask = 0;
for (s=0, s_miss=false; s<sockets; s++) { for (s=0, s_miss=false; s<sockets; s++) {
for (c=0, c_hit=c_miss=false; c<cores; c++) { for (c=0, c_hit=c_miss=false; c<cores; c++) {
for (t=0, t_hit=t_miss=false; t<cores; t++) { for (t=0, t_hit=t_miss=false; t<threads; t++) {
if (bit_test(alloc_bitmap, i)) { if (bit_test(alloc_bitmap, i)) {
mask |= (1 << i); mask |= (1 << i);
(*whole_thread_cnt)++; (*whole_thread_cnt)++;
......
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