Skip to content

Commit 2d2cbd0

Browse files
authored
Merge branch 'master' into request-based-rma
2 parents ca61c6b + 1d36edf commit 2d2cbd0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/init_finalize.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,15 @@ int PARMCI_Init_thread_comm(int armci_requested, MPI_Comm comm) {
318318
ARMCII_GLOBAL_STATE.iov_batched_limit = 0;
319319
}
320320

321+
#if defined(OPEN_MPI) && defined(OMPI_MAJOR_VERSION) && (OMPI_MAJOR_VERSION < 5)
322+
/* Open-MPI 5 RMA works a lot better than older releases... */
323+
ARMCII_GLOBAL_STATE.iov_method = ARMCII_IOV_BATCHED;
324+
#else
325+
/* DIRECT leads to addr=NULL errors when ARMCI_{GetV,PutV} are used
326+
* Jeff: Is this still true? */
327+
ARMCII_GLOBAL_STATE.iov_method = ARMCII_IOV_DIRECT;
328+
#endif
329+
321330
char *var = ARMCII_Getenv("ARMCI_IOV_METHOD");
322331
if (var != NULL) {
323332
if (strcmp(var, "AUTO") == 0)

0 commit comments

Comments
 (0)