|
24 | 24 | * Copyright (c) 2017 Mellanox Technologies. All rights reserved.
|
25 | 25 | * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
|
26 | 26 | * Copyright (c) 2021 Nanook Consulting. All rights reserved.
|
27 |
| - * Copyright (c) 2020-2024 Triad National Security, LLC. All rights |
| 27 | + * Copyright (c) 2020-2025 Triad National Security, LLC. All rights |
28 | 28 | * reserved.
|
29 | 29 | * $COPYRIGHT$
|
30 | 30 | *
|
@@ -320,6 +320,7 @@ static int ompi_comm_ext_cid_new_block (ompi_communicator_t *newcomm, ompi_commu
|
320 | 320 | pmix_proc_t *procs = NULL;
|
321 | 321 | void *grpinfo = NULL, *list = NULL;
|
322 | 322 | pmix_data_array_t darray;
|
| 323 | + pmix_info_t tinfo; |
323 | 324 |
|
324 | 325 | switch (mode) {
|
325 | 326 | case OMPI_COMM_CID_GROUP_NEW:
|
@@ -349,6 +350,13 @@ static int ompi_comm_ext_cid_new_block (ompi_communicator_t *newcomm, ompi_commu
|
349 | 350 | goto fn_exit;
|
350 | 351 | }
|
351 | 352 |
|
| 353 | + rc = PMIx_Info_list_add(grpinfo, PMIX_TIMEOUT, &ompi_pmix_connect_timeout, PMIX_UINT32); |
| 354 | + if (PMIX_SUCCESS != rc) { |
| 355 | + OPAL_OUTPUT_VERBOSE((10, ompi_comm_output, "PMIx_Info_list_add failed %s %d", PMIx_Error_string(rc), __LINE__)); |
| 356 | + rc = OMPI_ERR_OUT_OF_RESOURCE; |
| 357 | + goto fn_exit; |
| 358 | + } |
| 359 | + |
352 | 360 | list = PMIx_Info_list_start();
|
353 | 361 |
|
354 | 362 | size_t c_index = (size_t)newcomm->c_index;
|
@@ -450,7 +458,10 @@ static int ompi_comm_ext_cid_new_block (ompi_communicator_t *newcomm, ompi_commu
|
450 | 458 | tag, tproc_count, ninfo, cid_base));
|
451 | 459 |
|
452 | 460 | /* destruct the group */
|
453 |
| - rc = PMIx_Group_destruct (tag, NULL, 0); |
| 461 | + PMIX_INFO_CONSTRUCT(&tinfo); |
| 462 | + PMIX_INFO_LOAD(&tinfo, PMIX_TIMEOUT, &ompi_pmix_connect_timeout, PMIX_UINT32); |
| 463 | + rc = PMIx_Group_destruct (tag, &tinfo, 0); |
| 464 | + PMIX_INFO_DESTRUCT(&tinfo); |
454 | 465 | if(PMIX_SUCCESS != rc) {
|
455 | 466 | OPAL_OUTPUT_VERBOSE((10, ompi_comm_output, "PMIx_Group_destruct failed %s", PMIx_Error_string(rc)));
|
456 | 467 | rc = opal_pmix_convert_status(rc);
|
|
0 commit comments