Skip to content
Snippets Groups Projects
Commit 438e34d0 authored by Lluis Alonso's avatar Lluis Alonso
Browse files

Fixed an error in EARL

parent f9eaeedc
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@
#include <pthread.h>
#include <papi.h>
//#define SHOW_DEBUGS 1
#define SHOW_DEBUGS 1
#include <common/config.h>
#include <common/config/config_env.h>
#include <common/colors.h>
......@@ -230,6 +230,7 @@ void create_shared_regions()
lib_shared_region->num_signatures=0;
}
debug("Node connected %u",my_node_id);
#if ONLY_MASTER == 0
#if MPI
if (PMPI_Barrier(MPI_COMM_WORLD)!=MPI_SUCCESS){
error("MPI_Barrier");
......@@ -240,6 +241,7 @@ void create_shared_regions()
return;
}
#endif
#endif
//print_lib_shared_data(lib_shared_region);
/* This region is for processes in the same node */
if (get_shared_signatures_path(tmp,shsignature_region_path)!=EAR_SUCCESS){
......@@ -255,12 +257,14 @@ void create_shared_regions()
sig_shared_region[my_node_id].mpi_info.rank=ear_my_rank;
clean_my_mpi_info(&sig_shared_region[my_node_id].mpi_info);
#if ONLY_MASTER == 0
#if MPI
if (PMPI_Barrier(MPI_COMM_WORLD)!=MPI_SUCCESS){
error("MPI_Barrier");
return;
}
#endif
#endif
/* This part allocates memory for sharing data between nodes */
masters_info.ppn=malloc(masters_info.my_master_size*sizeof(int));
/* The node master, shares with other masters the number of processes in the node */
......@@ -701,7 +705,6 @@ void ear_init()
if (!eard_ok) return;
if (!my_id){
debug("%sI'm the master, creating shared regions%s",COL_BLU,COL_CLR);
create_shared_regions();
......
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