diff --git a/lib/communicator/Communicator_mpi3.cc b/lib/communicator/Communicator_mpi3.cc index 2f3f1d67..eac003ce 100644 --- a/lib/communicator/Communicator_mpi3.cc +++ b/lib/communicator/Communicator_mpi3.cc @@ -33,8 +33,14 @@ Author: Peter Boyle #include #include #include +#include +#include +#include #include //#include +#ifndef SHM_HUGETLB +#define SHM_HUGETLB 04000 +#endif namespace Grid { @@ -189,8 +195,9 @@ void CartesianCommunicator::Init(int *argc, char ***argv) { ShmCommBuf = 0; ShmCommBufs.resize(ShmSize); - char shm_name [NAME_MAX]; +#if 1 + char shm_name [NAME_MAX]; if ( ShmRank == 0 ) { for(int r=0;r shmids(ShmSize); + + if ( ShmRank == 0 ) { + for(int r=0;r