From 97305793122ecbbb0239b669853015b0acbb3bee Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 27 Jun 2025 06:00:04 +0000 Subject: [PATCH] Simplify and verbose --- Grid/communicator/SharedMemoryMPI.cc | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Grid/communicator/SharedMemoryMPI.cc b/Grid/communicator/SharedMemoryMPI.cc index 4f18adca..469ec3bb 100644 --- a/Grid/communicator/SharedMemoryMPI.cc +++ b/Grid/communicator/SharedMemoryMPI.cc @@ -544,19 +544,20 @@ void GlobalSharedMemory::SharedMemoryAllocate(uint64_t bytes, int flags) #ifndef ACCELERATOR_AWARE_MPI // printf("Host buffer allocate for GPU non-aware MPI\n"); HostCommBuf= malloc(bytes); /// CHANGE THIS TO malloc_host - // acceleratorPin(HostCommBuf,bytes); #endif ShmCommBuf = acceleratorAllocDevice(bytes); if (ShmCommBuf == (void *)NULL ) { - std::cerr << " SharedMemoryMPI.cc acceleratorAllocDevice failed NULL pointer for " << bytes<<" bytes " << std::endl; + std::cerr << "SharedMemoryMPI.cc acceleratorAllocDevice failed NULL pointer for " << bytes<<" bytes " << std::endl; exit(EXIT_FAILURE); } if ( WorldRank == 0 ){ - std::cout << WorldRank << Mheader " SharedMemoryMPI.cc acceleratorAllocDevice "<< bytes + std::cout << Mheader " acceleratorAllocDevice "<< bytes << "bytes at "<< std::hex<< ShmCommBuf << " - "<<(bytes-1+(uint64_t)ShmCommBuf) <