Skip to content

Commit 2640271

Browse files
authored
Merge pull request open-mpi#1832 from hjelmn/r2_rdma
bml/r2: be more restrictive on rdma endpoints
2 parents 063f848 + 5f390b5 commit 2640271

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ompi/mca/bml/r2/bml_r2.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,9 @@ static int mca_bml_r2_endpoint_add_btl (struct ompi_proc_t *proc, mca_bml_base_e
267267
}
268268
}
269269

270-
/* always add rdma endpoints */
271-
if ((btl_flags & MCA_BTL_FLAGS_RDMA) &&
270+
/* always add rdma endpoints if they support full rdma */
271+
if ((btl_in_use && (btl_flags & MCA_BTL_FLAGS_RDMA) ||
272+
(btl_flags & (MCA_BTL_FLAGS_RDMA | MCA_BTL_FLAGS_ATOMIC_FOPS)) == (MCA_BTL_FLAGS_RDMA | MCA_BTL_FLAGS_ATOMIC_FOPS)) &&
272273
!((proc->super.proc_arch != ompi_proc_local_proc->super.proc_arch) &&
273274
(0 == (btl->btl_flags & MCA_BTL_FLAGS_HETEROGENEOUS_RDMA)))) {
274275
mca_bml_base_btl_t *bml_btl_rdma = mca_bml_base_btl_array_insert(&bml_endpoint->btl_rdma);

0 commit comments

Comments
 (0)