mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +00:00
guard prevents multiple TOFU messages
This commit is contained in:
parent
9e085bd04e
commit
b780b7b7a0
@ -44,12 +44,15 @@ void CartesianCommunicator::Init(int *argc, char ***argv)
|
|||||||
MPI_Initialized(&flag); // needed to coexist with other libs apparently
|
MPI_Initialized(&flag); // needed to coexist with other libs apparently
|
||||||
if ( !flag ) {
|
if ( !flag ) {
|
||||||
|
|
||||||
// temporarily enable Fugaku/Tofu support by default
|
// Fugaku Tofu: enable by default
|
||||||
#if defined (A64FX) || defined (A64FXFIXEDSIZE)
|
#if defined (A64FX) || defined (A64FXFIXEDSIZE)
|
||||||
|
#ifndef TOFU
|
||||||
#define TOFU
|
#define TOFU
|
||||||
|
#pragma message ("MPI_THREAD_SINGLE")
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (TOFU) // hack for FUGAKU, credits go to Issaku Kanamori
|
#if defined (TOFU) // FUGAKU, credits go to Issaku Kanamori
|
||||||
nCommThreads=1;
|
nCommThreads=1;
|
||||||
MPI_Init(argc,argv);
|
MPI_Init(argc,argv);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user