Skip to content

Commit 5fa32f7

Browse files
authored
Merge pull request open-mpi#12222 from hppritcha/fix_num_psets_calc
sessions: fix issue with query of num psets
2 parents aabf942 + 4de1604 commit 5fa32f7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ompi/instance/instance.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2018-2022 Triad National Security, LLC. All rights
3+
* Copyright (c) 2018-2024 Triad National Security, LLC. All rights
44
* reserved.
55
* Copyright (c) 2022 Cisco Systems, Inc. All rights reserved.
66
* Copyright (c) 2022 The University of Tennessee and The University
@@ -991,16 +991,18 @@ static void ompi_instance_get_num_psets_complete (pmix_status_t status,
991991
size_t n;
992992
pmix_status_t rc;
993993
size_t sz;
994-
size_t num_pmix_psets = 0;
994+
size_t num_pmix_psets = 0, *num_pmix_psets_ptr;
995995
char *pset_names = NULL;
996996

997997
opal_pmix_lock_t *lock = (opal_pmix_lock_t *) cbdata;
998998

999+
num_pmix_psets_ptr = &num_pmix_psets;
1000+
9991001
for (n=0; n < ninfo; n++) {
10001002
if (0 == strcmp(info[n].key,PMIX_QUERY_NUM_PSETS)) {
10011003
PMIX_VALUE_UNLOAD(rc,
10021004
&info[n].value,
1003-
(void **)&num_pmix_psets,
1005+
(void **)&num_pmix_psets_ptr,
10041006
&sz);
10051007
if (rc != PMIX_SUCCESS) {
10061008
opal_argv_free (ompi_mpi_instance_pmix_psets);

0 commit comments

Comments
 (0)