Commit cdf78452 authored by iker_martin's avatar iker_martin
Browse files

Minor bug fixed. Block distribution for spawned processes was not calculated correctly.

parent 65c0c692
...@@ -134,7 +134,7 @@ void compact_dist(Spawn_data spawn_data, int *used_nodes, int *procs) { ...@@ -134,7 +134,7 @@ void compact_dist(Spawn_data spawn_data, int *used_nodes, int *procs) {
int i, asigCores; int i, asigCores;
int tamBl, remainder; int tamBl, remainder;
tamBl = mall->num_cpus / mall->num_nodes; tamBl = mall->num_cpus;
asigCores = spawn_data.already_created; asigCores = spawn_data.already_created;
i = *used_nodes = spawn_data.already_created / tamBl; i = *used_nodes = spawn_data.already_created / tamBl;
remainder = spawn_data.already_created % tamBl; remainder = spawn_data.already_created % 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