Skip to content

sessions: fix issue with query of num psets #12222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ompi/instance/instance.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2018-2022 Triad National Security, LLC. All rights
* Copyright (c) 2018-2024 Triad National Security, LLC. All rights
* reserved.
* Copyright (c) 2022 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2022 The University of Tennessee and The University
Expand Down Expand Up @@ -991,16 +991,18 @@ static void ompi_instance_get_num_psets_complete (pmix_status_t status,
size_t n;
pmix_status_t rc;
size_t sz;
size_t num_pmix_psets = 0;
size_t num_pmix_psets = 0, *num_pmix_psets_ptr;
char *pset_names = NULL;

opal_pmix_lock_t *lock = (opal_pmix_lock_t *) cbdata;

num_pmix_psets_ptr = &num_pmix_psets;

for (n=0; n < ninfo; n++) {
if (0 == strcmp(info[n].key,PMIX_QUERY_NUM_PSETS)) {
PMIX_VALUE_UNLOAD(rc,
&info[n].value,
(void **)&num_pmix_psets,
(void **)&num_pmix_psets_ptr,
&sz);
if (rc != PMIX_SUCCESS) {
opal_argv_free (ompi_mpi_instance_pmix_psets);
Expand Down