Merge pull request #1861 from bharatpotnuri/master
btl/openib: Disqualify rdmacm CPC if MPI_THREAD_MULTIPLE
Этот коммит содержится в:
Коммит
1a5a5fb400
@ -63,6 +63,8 @@
|
|||||||
#include "btl_openib_ip.h"
|
#include "btl_openib_ip.h"
|
||||||
#include "btl_openib_ini.h"
|
#include "btl_openib_ini.h"
|
||||||
|
|
||||||
|
#include "ompi/runtime/mpiruntime.h"
|
||||||
|
|
||||||
#if BTL_OPENIB_RDMACM_IB_ADDR
|
#if BTL_OPENIB_RDMACM_IB_ADDR
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@ -2000,6 +2002,15 @@ static int rdmacm_component_query(mca_btl_openib_module_t *openib_btl, opal_btl_
|
|||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* RDMACM is not supported for MPI_THREAD_MULTIPLE */
|
||||||
|
if (opal_using_threads()) {
|
||||||
|
BTL_VERBOSE(("rdmacm CPC is not supported with MPI_THREAD_MULTIPLE; skipped on %s:%d",
|
||||||
|
ibv_get_device_name(openib_btl->device->ib_dev),
|
||||||
|
openib_btl->port_num));
|
||||||
|
rc = OPAL_ERR_NOT_SUPPORTED;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
/* RDMACM is not supported if we have any XRC QPs */
|
/* RDMACM is not supported if we have any XRC QPs */
|
||||||
if (mca_btl_openib_component.num_xrc_qps > 0) {
|
if (mca_btl_openib_component.num_xrc_qps > 0) {
|
||||||
BTL_VERBOSE(("rdmacm CPC not supported with XRC receive queues, please try xoob CPC; skipped on %s:%d",
|
BTL_VERBOSE(("rdmacm CPC not supported with XRC receive queues, please try xoob CPC; skipped on %s:%d",
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user