Skip to content

Commit 1a5a5fb

Browse files
authored
Merge pull request #1861 from bharatpotnuri/master
btl/openib: Disqualify rdmacm CPC if MPI_THREAD_MULTIPLE
2 parents 3acbc92 + 740b636 commit 1a5a5fb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

opal/mca/btl/openib/connect/btl_openib_connect_rdmacm.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
#include "btl_openib_ip.h"
6464
#include "btl_openib_ini.h"
6565

66+
#include "ompi/runtime/mpiruntime.h"
67+
6668
#if BTL_OPENIB_RDMACM_IB_ADDR
6769
#include <stdio.h>
6870
#include <netinet/in.h>
@@ -2000,6 +2002,15 @@ static int rdmacm_component_query(mca_btl_openib_module_t *openib_btl, opal_btl_
20002002
struct sockaddr_in sin;
20012003
#endif
20022004

2005+
/* RDMACM is not supported for MPI_THREAD_MULTIPLE */
2006+
if (opal_using_threads()) {
2007+
BTL_VERBOSE(("rdmacm CPC is not supported with MPI_THREAD_MULTIPLE; skipped on %s:%d",
2008+
ibv_get_device_name(openib_btl->device->ib_dev),
2009+
openib_btl->port_num));
2010+
rc = OPAL_ERR_NOT_SUPPORTED;
2011+
goto out;
2012+
}
2013+
20032014
/* RDMACM is not supported if we have any XRC QPs */
20042015
if (mca_btl_openib_component.num_xrc_qps > 0) {
20052016
BTL_VERBOSE(("rdmacm CPC not supported with XRC receive queues, please try xoob CPC; skipped on %s:%d",

0 commit comments

Comments
 (0)