1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Switch off SHM paths with --disable-shm

This commit is contained in:
Peter Boyle 2020-11-16 18:07:15 -05:00
parent 3aab983760
commit 13df14f96e
2 changed files with 2 additions and 2 deletions

View File

@ -772,7 +772,7 @@ void SharedMemory::SetCommunicator(Grid_MPI_Comm comm)
std::vector<int> ranks(size); for(int r=0;r<size;r++) ranks[r]=r;
MPI_Group_translate_ranks (FullGroup,size,&ranks[0],ShmGroup, &ShmRanks[0]);
#ifdef GRID_SHM_DISABLE
#if 0
// Hide the shared memory path between ranks
{
for(int r=0;r<size;r++){

View File

@ -528,7 +528,7 @@ case ${ac_SHM} in
shmnone | no)
AC_DEFINE([GRID_MPI3_SHM_NONE],[1],[GRID_MPI3_SHM_NONE] )
AC_DEFINE([GRID_SHM_DISABLE],[1],[USE MPI for intranode comms]);;
;;
nvlink)
AC_DEFINE([GRID_MPI3_SHM_NVLINK],[1],[GRID_MPI3_SHM_NVLINK] )