Set MPI threading mode for hyd-7c machine

Tento commit je obsažen v:
Brandon Potter
2024-07-11 07:29:44 -07:00
rodič a9f2eff207
revize 8b14d9f07d
4 změnil soubory, kde provedl 6 přidání a 6 odebrání
+3 -3
Zobrazit soubor
@@ -48,9 +48,9 @@ MPITransport::MPITransport(MPI_Comm comm, Queue* q)
int provided{};
if (!init_done) {
NET_CHECK(MPI_Init_thread(0, 0, MPI_THREAD_SINGLE, &provided));
if (provided != MPI_THREAD_SINGLE) {
std::cerr << "MPI_THREAD_SINGLE support disabled.\n";
NET_CHECK(MPI_Init_thread(0, 0, MPI_THREAD_MULTIPLE, &provided));
if (provided != MPI_THREAD_MULTIPLE) {
std::cerr << "MPI_THREAD_MULTIPLE support disabled.\n";
}
}
if (comm == MPI_COMM_NULL) comm = MPI_COMM_WORLD;