From fc93f0b2ec847af8c0b14a3b406fd0eca895101d Mon Sep 17 00:00:00 2001 From: paboyle Date: Tue, 21 Mar 2017 22:30:29 -0400 Subject: [PATCH] Save some code for static huge tlb's. It is ifdef'ed out but an interesting root only experiment. No gain from it. --- lib/communicator/Communicator_mpi3.cc | 48 ++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) 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