Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 82ab11e

Browse files
committed
usnic: better av_eq_num default value handling
(cherry picked from commit open-mpi/ompi@797d502)
1 parent bbb8246 commit 82ab11e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

opal/mca/btl/usnic/btl_usnic_mca.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ int opal_btl_usnic_component_register(void)
236236
-1, &cq_num, REGINT_NEG_ONE_OK, OPAL_INFO_LVL_5));
237237
mca_btl_usnic_component.cq_num = (int32_t) cq_num;
238238

239-
CHECK(reg_int("av_eq_num", "Number of event queue entries for peer address resolution (-1 = pre-set defaults; depends on number and type of devices available; will error if ac_eq_num < 8)",
240-
-1, &av_eq_num, REGINT_NEG_ONE_OK, OPAL_INFO_LVL_5));
239+
CHECK(reg_int("av_eq_num", "Number of event queue entries for peer address resolution",
240+
1024, &av_eq_num, REGINT_NEG_ONE_OK, OPAL_INFO_LVL_5));
241241
mca_btl_usnic_component.av_eq_num = (int32_t) av_eq_num;
242242

243243
CHECK(reg_int("base_udp_port", "Base UDP port to use for usNIC communications. If 0, system will pick the port number. If non-zero, it will be added to each process' local rank to obtain the final port number (default: 0)",

opal/mca/btl/usnic/btl_usnic_module.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,11 +1895,6 @@ static void init_queue_lengths(opal_btl_usnic_module_t *module)
18951895
} else {
18961896
module->cq_num = mca_btl_usnic_component.cq_num;
18971897
}
1898-
if (-1 == mca_btl_usnic_component.av_eq_num) {
1899-
module->av_eq_num = 1024;
1900-
} else {
1901-
module->av_eq_num = mca_btl_usnic_component.av_eq_num;
1902-
}
19031898

19041899
/*
19051900
* Queue sizes for priority channel scale with # of endpoint. A

0 commit comments

Comments
 (0)