Skip to content

Commit 166162c

Browse files
bosilcaawlauria
authored andcommitted
Disable RDMA if no SMSC support is available.
Signed-off-by: George Bosilca <[email protected]> (cherry picked from commit 4530d67)
1 parent b397537 commit 166162c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

opal/mca/btl/sm/btl_sm_module.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2004-2011 The Trustees of Indiana University and Indiana
44
* University Research and Technology
55
* Corporation. All rights reserved.
6-
* Copyright (c) 2004-2009 The University of Tennessee and The University
6+
* Copyright (c) 2004-2021 The University of Tennessee and The University
77
* of Tennessee Research Foundation. All rights
88
* reserved.
99
* Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
@@ -176,15 +176,16 @@ static int init_sm_endpoint(struct mca_btl_base_endpoint_t **ep_out, struct opal
176176
}
177177

178178
/* attach to the remote segment */
179-
180-
ep->smsc_endpoint = MCA_SMSC_CALL(get_endpoint, proc);
179+
ep->smsc_endpoint = NULL; /* assume no one sided support */
180+
if( NULL != mca_smsc ) {
181+
ep->smsc_endpoint = MCA_SMSC_CALL(get_endpoint, proc);
182+
}
181183
if (NULL == ep->smsc_endpoint) {
182184
/* disable RDMA */
183185
mca_btl_sm.super.btl_get = NULL;
184186
mca_btl_sm.super.btl_put = NULL;
185187
mca_btl_sm.super.btl_flags &= ~MCA_BTL_FLAGS_RDMA;
186188
}
187-
188189
if (mca_smsc_base_has_feature(MCA_SMSC_FEATURE_CAN_MAP)) {
189190
ep->smsc_map_context = MCA_SMSC_CALL(map_peer_region, ep->smsc_endpoint, /*flag=*/0,
190191
(void *) (uintptr_t) modex->segment_base,

0 commit comments

Comments
 (0)