From 5764d21161840c0c5733bfee937f650f3838c531 Mon Sep 17 00:00:00 2001 From: Michael Marshall <43034299+mmphys@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:15:28 +0100 Subject: [PATCH] Fixes for --enable-comms=none --- Grid/communicator/Communicator_none.cc | 2 +- Grid/communicator/SharedMemory.cc | 53 ++++++++++++++++++++++++++ Grid/communicator/SharedMemoryMPI.cc | 49 ------------------------ 3 files changed, 54 insertions(+), 50 deletions(-) diff --git a/Grid/communicator/Communicator_none.cc b/Grid/communicator/Communicator_none.cc index 5d917b79..a06e054d 100644 --- a/Grid/communicator/Communicator_none.cc +++ b/Grid/communicator/Communicator_none.cc @@ -128,7 +128,7 @@ double CartesianCommunicator::StencilSendToRecvFromBegin(std::vector &waitall,int dir) { diff --git a/Grid/communicator/SharedMemory.cc b/Grid/communicator/SharedMemory.cc index de10da3d..ec42dd87 100644 --- a/Grid/communicator/SharedMemory.cc +++ b/Grid/communicator/SharedMemory.cc @@ -91,6 +91,59 @@ void *SharedMemory::ShmBufferSelf(void) //std::cerr << "ShmBufferSelf "< IntShmDims; + GridCmdOptionIntVector(std::string(str),IntShmDims); + assert(IntShmDims.size() == WorldDims.size()); + long ShmSize = 1; + for (int dim=0;dim primes({2,3,5}); + + int dim = 0; + int last_dim = ndimension - 1; + int AutoShmSize = 1; + while(AutoShmSize != WorldShmSize) { + int p; + for(p=0;p IntShmDims; - GridCmdOptionIntVector(std::string(str),IntShmDims); - assert(IntShmDims.size() == WorldDims.size()); - long ShmSize = 1; - for (int dim=0;dim primes({2,3,5}); - - int dim = 0; - int last_dim = ndimension - 1; - int AutoShmSize = 1; - while(AutoShmSize != WorldShmSize) { - int p; - for(p=0;p