1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 09:15:38 +01:00

guard prevents multiple TOFU messages

This commit is contained in:
nmeyer-ur 2020-05-20 19:20:59 +02:00
parent 9e085bd04e
commit b780b7b7a0

View File

@ -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