Commit 3236a62f authored by iker_martin's avatar iker_martin
Browse files

Minor bugfix in physical process distribution which did not take completely...

Minor bugfix in physical process distribution which did not take completely into account already existing processes for the Merge method.
parent 50ff0934
CC = gcc
MCC = mpicc
#C_FLAGS_ALL = -Wconversion -Wpedantic
C_FLAGS = -Wall -Wextra -Wshadow -Wfatal-errors -g
C_FLAGS = -Wall -Wextra -Wshadow -Wfatal-errors
LD_FLAGS = -lm -pthread
DEF =
......
......@@ -168,7 +168,7 @@ void compact_dist(struct physical_dist dist, int *used_nodes, int *procs) {
int tamBl, remainder;
tamBl = dist.num_cpus / dist.num_nodes;
asigCores = 0;
asigCores = dist.already_created;
i = *used_nodes = dist.already_created / tamBl;
remainder = dist.already_created % tamBl;
......@@ -181,7 +181,7 @@ void compact_dist(struct physical_dist dist, int *used_nodes, int *procs) {
(*used_nodes)++;
}
//Assing tamBl to each node
//Assign tamBl to each node
while(asigCores+tamBl <= dist.target_qty) {
asigCores += tamBl;
procs[i] += tamBl;
......
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