Protecting the apm code with OMPI_HAVE_THREADS.
This commit was SVN r17284.
Этот коммит содержится в:
родитель
a972992004
Коммит
7d83f34eb0
@ -395,6 +395,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_hca_t *hca,
|
|||||||
lmc = mca_btl_openib_component.max_lmc;
|
lmc = mca_btl_openib_component.max_lmc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if OMPI_HAVE_THREADS
|
||||||
/* APM support */
|
/* APM support */
|
||||||
if (lmc > 1){
|
if (lmc > 1){
|
||||||
if (-1 == mca_btl_openib_component.apm) {
|
if (-1 == mca_btl_openib_component.apm) {
|
||||||
@ -413,6 +414,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_hca_t *hca,
|
|||||||
opal_show_help("help-mpi-btl-openib.txt", "apm without lmc",true);
|
opal_show_help("help-mpi-btl-openib.txt", "apm without lmc",true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
for(lid = ib_port_attr->lid;
|
for(lid = ib_port_attr->lid;
|
||||||
lid < ib_port_attr->lid + lmc; lid += lmc_step){
|
lid < ib_port_attr->lid + lmc; lid += lmc_step){
|
||||||
|
@ -541,6 +541,7 @@ void mca_btl_openib_endpoint_connected(mca_btl_openib_endpoint_t *endpoint)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Run over all qps and load alternative path */
|
/* Run over all qps and load alternative path */
|
||||||
|
#if OMPI_HAVE_THREADS
|
||||||
if (0 != mca_btl_openib_component.apm) {
|
if (0 != mca_btl_openib_component.apm) {
|
||||||
int i;
|
int i;
|
||||||
if (MCA_BTL_XRC_ENABLED) {
|
if (MCA_BTL_XRC_ENABLED) {
|
||||||
@ -551,6 +552,7 @@ void mca_btl_openib_endpoint_connected(mca_btl_openib_endpoint_t *endpoint)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
endpoint->endpoint_state = MCA_BTL_IB_CONNECTED;
|
endpoint->endpoint_state = MCA_BTL_IB_CONNECTED;
|
||||||
endpoint->endpoint_btl->hca->non_eager_rdma_endpoints++;
|
endpoint->endpoint_btl->hca->non_eager_rdma_endpoints++;
|
||||||
|
@ -402,12 +402,12 @@ int btl_openib_register_mca_params(void)
|
|||||||
0, &ival, REGINT_GE_ZERO));
|
0, &ival, REGINT_GE_ZERO));
|
||||||
mca_btl_openib_component.max_lmc = (uint32_t) ival;
|
mca_btl_openib_component.max_lmc = (uint32_t) ival;
|
||||||
|
|
||||||
|
#if OMPI_HAVE_THREADS
|
||||||
CHECK(reg_int("enable_apm", "Maximum number of alterative paths for each HCA port "
|
CHECK(reg_int("enable_apm", "Maximum number of alterative paths for each HCA port "
|
||||||
"(must be >= -1, where 0 = disable apm, -1 = all availible alternative paths )",
|
"(must be >= -1, where 0 = disable apm, -1 = all availible alternative paths )",
|
||||||
0, &ival, REGINT_NEG_ONE_OK|REGINT_GE_ZERO));
|
0, &ival, REGINT_NEG_ONE_OK|REGINT_GE_ZERO));
|
||||||
mca_btl_openib_component.apm = (uint32_t) ival;
|
mca_btl_openib_component.apm = (uint32_t) ival;
|
||||||
|
|
||||||
#if OMPI_HAVE_THREADS
|
|
||||||
CHECK(reg_int("use_async_event_thread",
|
CHECK(reg_int("use_async_event_thread",
|
||||||
"If nonzero, use the thread that will handle InfiniBand asyncihronous events ",
|
"If nonzero, use the thread that will handle InfiniBand asyncihronous events ",
|
||||||
1, &ival, 0));
|
1, &ival, 0));
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user