Skip to content
Snippets Groups Projects
Commit 117128c3 authored by Mark Grondona's avatar Mark Grondona
Browse files

o adjust formula for calculating bit to set in setup_capability to take

   into account that (cap->HighNode - cap->LowNode +1) may not equal nnodes.
parent e5f56532
No related branches found
No related tags found
No related merge requests found
......@@ -523,7 +523,8 @@ _init_elan_capability(ELAN_CAPABILITY *cap, int nprocs, int nnodes,
for (j = 0; j < task_cnt; j++) {
if (cyclic_alloc)
bit = (i-cap->LowNode) + (j*nnodes);
bit = (i-cap->LowNode) + ( j *
(cap->HighNode - cap->LowNode + 1));
else
bit = ((i-cap->LowNode)
* max_procs_per_node) + j;
......
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