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 1818 * reserved.
1919 * Copyright (c) 2012 Oak Ridge National Labs. All rights reserved.
2020 * 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.
2323 * Copyright (c) 2016 IBM Corporation. All rights reserved.
2424 * Copyright (c) 2017 Mellanox Technologies. All rights reserved.
2525 * 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
376376 goto fn_exit ;
377377 }
378378
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+ }
381388 }
382389
383390 rc = PMIx_Group_destruct (tag , NULL , 0 );
You can’t perform that action at this time.
0 commit comments