Skip to content

Commit

Permalink
Merge pull request openucx#19 from alinask/topic/ucp-worker-set-ep-co…
Browse files Browse the repository at this point in the history
…nfig-max

UCP: set a hard coded value for the worker's ep_config_max value - 64
  • Loading branch information
yosefe authored Aug 10, 2020
2 parents 9c7a466 + a155d53 commit b190478
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ucp/core/ucp_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1662,15 +1662,12 @@ ucs_status_t ucp_worker_create(ucp_context_h context,
const ucp_worker_params_t *params,
ucp_worker_h *worker_p)
{
unsigned config_count = 64;
ucs_thread_mode_t uct_thread_mode;
unsigned config_count;
unsigned name_length;
ucp_worker_h worker;
ucs_status_t status;

config_count = ucs_min((context->num_tls + 1) * (context->num_tls + 1) * context->num_tls,
UINT8_MAX);

worker = ucs_calloc(1, sizeof(*worker) +
sizeof(*worker->ep_config) * config_count,
"ucp worker");
Expand Down

0 comments on commit b190478

Please sign in to comment.