File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 18
18
* reserved.
19
19
* Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
20
20
* Copyright (c) 2013-2020 Intel, Inc. All rights reserved.
21
- * Copyright (c) 2014-2016 Research Organization for Information Science
22
- * and Technology (RIST). All rights reserved.
21
+ * Copyright (c) 2014-2023 Research Organization for Information Science
22
+ * and Technology (RIST). All rights reserved.
23
23
* Copyright (c) 2016 IBM Corporation. All rights reserved.
24
24
* Copyright (c) 2017 Mellanox Technologies. All rights reserved.
25
25
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
@@ -376,8 +376,15 @@ static int ompi_comm_ext_cid_new_block (ompi_communicator_t *newcomm, ompi_commu
376
376
goto fn_exit ;
377
377
}
378
378
379
- if (NULL != results ) {
380
- PMIX_VALUE_GET_NUMBER (rc , & results [0 ].value , cid_base , size_t );
379
+ for (size_t i = 0 ; i < nresults ; i ++ ) {
380
+ if (PMIX_CHECK_KEY (& results [i ], PMIX_GROUP_CONTEXT_ID )) {
381
+ PMIX_VALUE_GET_NUMBER (rc , & results [i ].value , cid_base , size_t );
382
+ if (PMIX_SUCCESS != rc ) {
383
+ ret = opal_pmix_convert_status (rc );
384
+ goto fn_exit ;
385
+ }
386
+ break ;
387
+ }
381
388
}
382
389
383
390
rc = PMIx_Group_destruct (tag , NULL , 0 );
You can’t perform that action at this time.
0 commit comments