From 12982a4455189cc568a18f1d6cffe819fc706c4e Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 2 May 2018 14:10:21 +0100 Subject: [PATCH] Hypercube optimisation --- lib/communicator/SharedMemoryMPI.cc | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/lib/communicator/SharedMemoryMPI.cc b/lib/communicator/SharedMemoryMPI.cc index 205d61a9..d55ff5df 100644 --- a/lib/communicator/SharedMemoryMPI.cc +++ b/lib/communicator/SharedMemoryMPI.cc @@ -173,15 +173,9 @@ void GlobalSharedMemory::OptimalCommunicator(const std::vector &processors, HyperCubeCoords[d] = (hypercoor>>d)&0x1; } - std::cerr << " Hcoor (" ; - for(int d=0;d &processors, hypercoor=hypercoor-rootcoor; assert(hypercoor=0); - std::cerr << " WorldRank "< &processors, HyperCubeCoords[d] = (hypercoor>>d)&0x1; } - std::cerr << " rel Hcoor ("; - for(int d=0;d &processors, int rank; Lexicographic::CoorFromIndexReversed(NodeCoor,WorldNode ,NodeDims); - std::cerr << "NodeCoor "; - for(int d=0;d