From 6365a89ba3f1ba37f121a2c6ff1c844d8d6e9704 Mon Sep 17 00:00:00 2001 From: Christoph Lehner Date: Thu, 30 Jul 2020 07:25:05 -0400 Subject: [PATCH] create separate InitMessage for MemoryManager that can be called after communicator setup --- Grid/allocator/MemoryManager.cc | 36 ++++++++++++++++++--------------- Grid/allocator/MemoryManager.h | 1 + Grid/util/Init.cc | 4 +--- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/Grid/allocator/MemoryManager.cc b/Grid/allocator/MemoryManager.cc index a2866507..b79c7df3 100644 --- a/Grid/allocator/MemoryManager.cc +++ b/Grid/allocator/MemoryManager.cc @@ -137,38 +137,42 @@ void MemoryManager::Init(void) } } - // only root node delivers messages, this is called before communicator is initialized, - // so need a manual restriction - if ( CartesianCommunicator::RankWorld() == 0 ) { - std::cout << GridLogMessage<< "MemoryManager::Init() setting up"<