From b780b7b7a00f10ddc230f733aab7c8cf82e5ce10 Mon Sep 17 00:00:00 2001 From: nmeyer-ur Date: Wed, 20 May 2020 19:20:59 +0200 Subject: [PATCH] guard prevents multiple TOFU messages --- Grid/communicator/Communicator_mpi3.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Grid/communicator/Communicator_mpi3.cc b/Grid/communicator/Communicator_mpi3.cc index 31566352..cb03ca46 100644 --- a/Grid/communicator/Communicator_mpi3.cc +++ b/Grid/communicator/Communicator_mpi3.cc @@ -44,12 +44,15 @@ void CartesianCommunicator::Init(int *argc, char ***argv) MPI_Initialized(&flag); // needed to coexist with other libs apparently if ( !flag ) { -// temporarily enable Fugaku/Tofu support by default +// Fugaku Tofu: enable by default #if defined (A64FX) || defined (A64FXFIXEDSIZE) +#ifndef TOFU #define TOFU +#pragma message ("MPI_THREAD_SINGLE") +#endif #endif -#if defined (TOFU) // hack for FUGAKU, credits go to Issaku Kanamori +#if defined (TOFU) // FUGAKU, credits go to Issaku Kanamori nCommThreads=1; MPI_Init(argc,argv); #else