Skip to content

Commit

Permalink
Merge pull request #3080 from grondo/issue#3069
Browse files Browse the repository at this point in the history
shell: fix bug in cpu-affinity=per-task
  • Loading branch information
mergify[bot] committed Jul 28, 2020
2 parents ff50777 + 3264dab commit 2888c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shell/affinity.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static hwloc_cpuset_t *distribute_tasks (hwloc_topology_t topo,
/* NB: hwloc_distrib() will alloc ntasks cpusets in cpusetp, which
* later need to be destroyed with hwloc_bitmap_free().
*/
hwloc_distrib (topo, obj, 1, cpusetp, ntasks, HWLOC_OBJ_PU, 0);
hwloc_distrib (topo, obj, 1, cpusetp, ntasks, INT_MAX, 0);
return (cpusetp);
}

Expand Down

0 comments on commit 2888c64

Please sign in to comment.