From f2e9a6882502360e676374b7464a5f7c948173da Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 13 Jun 2025 17:32:05 +0200 Subject: [PATCH] Simplify --- Grid/communicator/SharedMemoryMPI.cc | 31 +--------------------------- 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/Grid/communicator/SharedMemoryMPI.cc b/Grid/communicator/SharedMemoryMPI.cc index b5fd4197..86638dfa 100644 --- a/Grid/communicator/SharedMemoryMPI.cc +++ b/Grid/communicator/SharedMemoryMPI.cc @@ -543,37 +543,8 @@ void GlobalSharedMemory::SharedMemoryAllocate(uint64_t bytes, int flags) /////////////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef ACCELERATOR_AWARE_MPI // printf("Host buffer allocate for GPU non-aware MPI\n"); -#if 0 - HostCommBuf= acceleratorAllocHost(bytes); -#else HostCommBuf= malloc(bytes); /// CHANGE THIS TO malloc_host -#if 0 - #warning "Moving host buffers to specific NUMA domain" - int numa; - char *numa_name=(char *)getenv("MPI_BUF_NUMA"); - if(numa_name) { - unsigned long page_size = sysconf(_SC_PAGESIZE); - numa = atoi(numa_name); - unsigned long page_count = bytes/page_size; - std::vector pages(page_count); - std::vector nodes(page_count,numa); - std::vector status(page_count,-1); - for(unsigned long p=0;p