mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
switch to MPI_THREAD_SERIALIZED instead of SINGLE
This commit is contained in:
parent
6ddcef1bca
commit
4fedd8d29f
@ -54,10 +54,11 @@ void CartesianCommunicator::Init(int *argc, char ***argv)
|
|||||||
|
|
||||||
#if defined (TOFU) // 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);
|
||||||
|
MPI_Init_thread(argc,argv,MPI_THREAD_SERIALIZED,&provided);
|
||||||
#else
|
#else
|
||||||
MPI_Init_thread(argc,argv,MPI_THREAD_MULTIPLE,&provided);
|
MPI_Init_thread(argc,argv,MPI_THREAD_MULTIPLE,&provided);
|
||||||
|
#endif
|
||||||
//If only 1 comms thread we require any threading mode other than SINGLE, but for multiple comms threads we need MULTIPLE
|
//If only 1 comms thread we require any threading mode other than SINGLE, but for multiple comms threads we need MULTIPLE
|
||||||
if( (nCommThreads == 1) && (provided == MPI_THREAD_SINGLE) ) {
|
if( (nCommThreads == 1) && (provided == MPI_THREAD_SINGLE) ) {
|
||||||
assert(0);
|
assert(0);
|
||||||
@ -66,7 +67,6 @@ void CartesianCommunicator::Init(int *argc, char ***argv)
|
|||||||
if( (nCommThreads > 1) && (provided != MPI_THREAD_MULTIPLE) ) {
|
if( (nCommThreads > 1) && (provided != MPI_THREAD_MULTIPLE) ) {
|
||||||
assert(0);
|
assert(0);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Never clean up as done once.
|
// Never clean up as done once.
|
||||||
|
Loading…
Reference in New Issue
Block a user