Skip to content

Commit e844f76

Browse files
committed
pmix/pmix4x: refresh to the latest PMIx
refrest pmi4x to openpmix/openpmix@20cc9c0 Fixes #6513 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent bfff578 commit e844f76

File tree

9 files changed

+23
-24
lines changed

9 files changed

+23
-24
lines changed

opal/mca/pmix/pmix4x/pmix/VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ greek=a1
3030
# command, or with the date (if "git describe" fails) in the form of
3131
# "date<date>".
3232

33-
repo_rev=git0c93c13f
33+
repo_rev=git20cc9c04
3434

3535
# If tarball_version is not empty, it is used as the version string in
3636
# the tarball filename, regardless of all other versions listed in
@@ -44,7 +44,7 @@ tarball_version=
4444

4545
# The date when this release was created
4646

47-
date="Mar 19, 2019"
47+
date="Mar 25, 2019"
4848

4949
# The shared library version of each of PMIx's public libraries.
5050
# These versions are maintained in accordance with the "Library

opal/mca/pmix/pmix4x/pmix/src/atomics/sys/atomic_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2010-2014 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2012-2018 Los Alamos National Security, LLC. All rights
1515
* reserved.
16-
* Copyright (c) 2018 Intel, Inc. All rights reserved.
16+
* Copyright (c) 2018-2019 Intel, Inc. All rights reserved.
1717
* $COPYRIGHT$
1818
*
1919
* Additional copyrights may follow
@@ -496,7 +496,7 @@ static inline int
496496
pmix_atomic_trylock(pmix_atomic_lock_t *lock)
497497
{
498498
int32_t unlocked = PMIX_ATOMIC_LOCK_UNLOCKED;
499-
bool ret = pmix_atomic_compare_exchange_strong_32 (&lock->u.lock, &unlocked, PMIX_ATOMIC_LOCK_LOCKED);
499+
bool ret = pmix_atomic_compare_exchange_strong_acq_32 (&lock->u.lock, &unlocked, PMIX_ATOMIC_LOCK_LOCKED);
500500
return (ret == false) ? 1 : 0;
501501
}
502502

opal/mca/pmix/pmix4x/pmix/src/common/pmix_attributes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ static void _get_attrs(pmix_list_t *lst,
664664
}
665665
pmix_list_append(lst, &ip->super);
666666
}
667+
pmix_argv_free(fns);
667668
}
668669

669670
static void _get_fns(pmix_list_t *lst,

opal/mca/pmix/pmix4x/pmix/src/mca/bfrops/base/base.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* All rights reserved.
1313
* Copyright (c) 2012 Los Alamos National Security, Inc. All rights reserved.
1414
* Copyright (c) 2014-2019 Intel, Inc. All rights reserved.
15-
* Copyright (c) 2015 Research Organization for Information Science
16-
* and Technology (RIST). All rights reserved.
15+
* Copyright (c) 2015-2019 Research Organization for Information Science
16+
* and Technology (RIST). All rights reserved.
1717
* Copyright (c) 2019 Mellanox Technologies, Inc.
1818
* All rights reserved.
1919
* $COPYRIGHT$
@@ -227,8 +227,10 @@ PMIX_EXPORT extern pmix_bfrops_globals_t pmix_bfrops_globals;
227227
int32_t i; \
228228
tmptype *tmpbuf = (tmptype*)malloc(sizeof(tmptype) * (*num_vals)); \
229229
PMIX_BFROPS_UNPACK_TYPE(ret, buffer, tmpbuf, num_vals, tmpbfroptype, reg_types); \
230-
for (i = 0 ; i < *num_vals ; ++i) { \
231-
((unpack_type*) dest)[i] = (unpack_type)(tmpbuf[i]); \
230+
if (PMIX_ERR_UNKNOWN_DATA_TYPE != ret) { \
231+
for (i = 0 ; i < *num_vals ; ++i) { \
232+
((unpack_type*) dest)[i] = (unpack_type)(tmpbuf[i]); \
233+
} \
232234
} \
233235
free(tmpbuf); \
234236
} while (0)

opal/mca/pmix/pmix4x/pmix/src/mca/bfrops/base/bfrop_base_print.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ int pmix_bfrops_base_print_status(char **output, char *prefix,
10311031
r = (pmix_regattr_t*)src->data.ptr;
10321032
rc = asprintf(output, "%sPMIX_VALUE: Data type: PMIX_REGATTR\tName: %s\tString: %s",
10331033
prefx, (NULL == r->name) ? "NULL" : r->name,
1034-
(NULL == r->string) ? "NULL" : r->string);
1034+
(0 == strlen(r->string)) ? "NULL" : r->string);
10351035
break;
10361036

10371037
default:
@@ -1751,7 +1751,7 @@ pmix_status_t pmix_bfrops_base_print_regattr(char **output, char *prefix,
17511751

17521752
ret = asprintf(output, "%sData type: PMIX_REGATTR\tName: %s\tString: %s",
17531753
prefx, (NULL == src->name) ? "NULL" : src->name,
1754-
(NULL == src->string) ? "NULL" : src->string);
1754+
(0 == strlen(src->string)) ? "NULL" : src->string);
17551755

17561756
if (prefx != prefix) {
17571757
free(prefx);

opal/mca/pmix/pmix4x/pmix/src/mca/bfrops/base/bfrop_base_unpack.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* All rights reserved.
1212
* Copyright (c) 2012 Los Alamos National Security, Inc. All rights reserved.
1313
* Copyright (c) 2014-2019 Intel, Inc. All rights reserved.
14-
* Copyright (c) 2015 Research Organization for Information Science
15-
* and Technology (RIST). All rights reserved.
14+
* Copyright (c) 2015-2019 Research Organization for Information Science
15+
* and Technology (RIST). All rights reserved.
1616
* Copyright (c) 2016-2019 Mellanox Technologies, Inc.
1717
* All rights reserved.
1818
* $COPYRIGHT$
@@ -904,7 +904,7 @@ pmix_status_t pmix_bfrops_base_unpack_app(pmix_pointer_array_t *regtypes,
904904
if (0 < ptr[i].ninfo) {
905905
PMIX_INFO_CREATE(ptr[i].info, ptr[i].ninfo);
906906
m = ptr[i].ninfo;
907-
PMIX_BFROPS_UNPACK_TYPE(ret, buffer, &ptr[i].info, &m, PMIX_INFO, regtypes);
907+
PMIX_BFROPS_UNPACK_TYPE(ret, buffer, ptr[i].info, &m, PMIX_INFO, regtypes);
908908
if (PMIX_SUCCESS != ret) {
909909
return ret;
910910
}

opal/mca/pmix/pmix4x/pmix/src/mca/gds/ds21/gds_ds21_lock_pthread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ pmix_status_t pmix_gds_ds21_lock_init(pmix_common_dstor_lock_ctx_t *ctx, const c
234234
rc = PMIX_ERR_NOT_FOUND;
235235
goto error;
236236
}
237+
seg_hdr = (segment_hdr_t*)lock_item->seg_desc->seg_info.seg_base_addr;
237238
}
238239

239240
lock_item->num_locks = seg_hdr->num_locks;

opal/mca/pmix/pmix4x/pmix/src/mca/ptl/tcp/ptl_tcp.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ static pmix_status_t connect_to_peer(struct pmix_peer_t *peer,
427427
nspace = NULL;
428428
rc = parse_uri_file(&suri[5], &suri2, &nspace, &rank);
429429
if (PMIX_SUCCESS != rc) {
430-
free(suri);
431430
rc = PMIX_ERR_UNREACH;
432431
goto cleanup;
433432
}
@@ -437,7 +436,6 @@ static pmix_status_t connect_to_peer(struct pmix_peer_t *peer,
437436
/* we need to extract the nspace/rank of the server from the string */
438437
p = strchr(suri, ';');
439438
if (NULL == p) {
440-
free(suri);
441439
rc = PMIX_ERR_BAD_PARAM;
442440
goto cleanup;
443441
}
@@ -449,7 +447,6 @@ static pmix_status_t connect_to_peer(struct pmix_peer_t *peer,
449447
p = strchr(suri, '.');
450448
if (NULL == p) {
451449
free(suri2);
452-
free(suri);
453450
rc = PMIX_ERR_BAD_PARAM;
454451
goto cleanup;
455452
}
@@ -465,9 +462,6 @@ static pmix_status_t connect_to_peer(struct pmix_peer_t *peer,
465462
"ptl:tcp:tool attempt connect using given URI %s", suri);
466463
/* go ahead and try to connect */
467464
if (PMIX_SUCCESS != (rc = try_connect(suri, &sd, iptr, niptr))) {
468-
if (NULL != nspace) {
469-
free(nspace);
470-
}
471465
goto cleanup;
472466
}
473467
/* cleanup */
@@ -486,9 +480,6 @@ static pmix_status_t connect_to_peer(struct pmix_peer_t *peer,
486480
/* go ahead and try to connect */
487481
if (PMIX_SUCCESS == try_connect(suri, &sd, iptr, niptr)) {
488482
/* don't free nspace - we will use it below */
489-
if (NULL != rendfile) {
490-
free(rendfile);
491-
}
492483
if (NULL != iptr) {
493484
PMIX_INFO_FREE(iptr, niptr);
494485
}
@@ -522,6 +513,7 @@ static pmix_status_t connect_to_peer(struct pmix_peer_t *peer,
522513
goto complete;
523514
}
524515
free(nspace);
516+
nspace = NULL;
525517
}
526518
}
527519

@@ -683,7 +675,6 @@ static pmix_status_t connect_to_peer(struct pmix_peer_t *peer,
683675
}
684676
if (NULL != server_nspace) {
685677
free(server_nspace);
686-
server_nspace = NULL;
687678
}
688679
return rc;
689680
}

opal/mca/pmix/pmix4x/pmix/src/tools/pattrs/pattrs.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,11 @@ int main(int argc, char **argv)
355355
pmix_pattrs_globals.client || pmix_pattrs_globals.server || pmix_pattrs_globals.tool) {
356356
PMIX_INFO_CREATE(info, 1);
357357
PMIX_INFO_LOAD(&info[0], PMIX_TOOL_DO_NOT_CONNECT, NULL, PMIX_BOOL);
358-
PMIx_tool_init(&myproc, info, 1);
358+
rc = PMIx_tool_init(&myproc, info, 1);
359+
if (PMIX_SUCCESS != rc) {
360+
fprintf(stderr, "PMIx_tool_init failed: %s\n", PMIx_Error_string(rc));
361+
exit(rc);
362+
}
359363
if (pmix_pattrs_globals.clientfns) {
360364
pmix_register_client_attrs();
361365
fns = pmix_attributes_print_functions(PMIX_CLIENT_FUNCTIONS);

0 commit comments

Comments
 (0)