Commit 8096bb13 authored by iker_martin's avatar iker_martin
Browse files

Minor bugfix when a node has some cores in use but not all and they will stay...

Minor bugfix when a node has some cores in use but not all and they will stay after a reconfiguration.
parent 3fda1b19
...@@ -176,7 +176,8 @@ void compact_dist(struct physical_dist dist, int *used_nodes, int *procs) { ...@@ -176,7 +176,8 @@ void compact_dist(struct physical_dist dist, int *used_nodes, int *procs) {
//First nodes could already have existing procs //First nodes could already have existing procs
//Start from the first with free spaces //Start from the first with free spaces
if (remainder) { if (remainder) {
procs[i] = asigCores = tamBl - remainder; procs[i] = tamBl - remainder;
asigCores += procs[i];
i = (i+1) % dist.num_nodes; i = (i+1) % dist.num_nodes;
(*used_nodes)++; (*used_nodes)++;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment