From 35da4ece0b5ee91cdd056c401260f22bededff80 Mon Sep 17 00:00:00 2001 From: paboyle Date: Wed, 5 Apr 2017 02:18:15 +0900 Subject: [PATCH] UID fix --- lib/communicator/Communicator_mpi3.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/communicator/Communicator_mpi3.cc b/lib/communicator/Communicator_mpi3.cc index 7685768c..6e40142c 100644 --- a/lib/communicator/Communicator_mpi3.cc +++ b/lib/communicator/Communicator_mpi3.cc @@ -203,7 +203,7 @@ void CartesianCommunicator::Init(int *argc, char ***argv) { size_t size = CartesianCommunicator::MAX_MPI_SHM_BYTES; - sprintf(shm_name,"/Grid_mpi3_shm_%d_%d",GroupRank,r); + sprintf(shm_name,"/Grid_mpi3_uid%d_shm_%d_%d",getuid(),GroupRank,r); shm_unlink(shm_name); int fd=shm_open(shm_name,O_RDWR|O_CREAT,0660); @@ -224,7 +224,7 @@ void CartesianCommunicator::Init(int *argc, char ***argv) { for(int r=0;r