Skip to content

Commit 35578b4

Browse files
author
Ralph Castain
committed
Update to lastest PMIx master
Signed-off-by: Ralph Castain <[email protected]>
1 parent 68a384a commit 35578b4

17 files changed

+237
-122
lines changed

opal/mca/pmix/pmix2x/pmix/VERSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ release=0
2323
# The only requirement is that it must be entirely printable ASCII
2424
# characters and have no white space.
2525

26-
greek=a1
26+
greek=
2727

2828
# If repo_rev is empty, then the repository version number will be
2929
# obtained during "make dist" via the "git describe --tags --always"
3030
# command, or with the date (if "git describe" fails) in the form of
3131
# "date<date>".
3232

33-
repo_rev=git6ed27be
33+
repo_rev=gitbf86f3a
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="Feb 08, 2017"
47+
date="Feb 13, 2017"
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/pmix2x/pmix/src/client/pmix_client.c

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
33
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2016 Research Organization for Information Science
4+
* Copyright (c) 2014-2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014 Artem Y. Polyakov <[email protected]>.
77
* All rights reserved.
@@ -236,6 +236,21 @@ static void evhandler_reg_callbk(pmix_status_t status,
236236
*active = status;
237237
}
238238

239+
static void _destruct_my_server_fn(int sd, short args, void *cbdata)
240+
{
241+
pmix_cb_t *cb= (pmix_cb_t *)cbdata;
242+
PMIX_DESTRUCT(&pmix_client_globals.myserver);
243+
cb->active = false;
244+
}
245+
246+
247+
static void pmix_destruct_my_server(void)
248+
{
249+
pmix_cb_t cb;
250+
PMIX_THREADSHIFT(&cb, _destruct_my_server_fn);
251+
PMIX_WAIT_FOR_COMPLETION(cb.active);
252+
}
253+
239254
PMIX_EXPORT pmix_status_t PMIx_Init(pmix_proc_t *proc,
240255
pmix_info_t info[], size_t ninfo)
241256
{
@@ -458,7 +473,15 @@ PMIX_EXPORT pmix_status_t PMIx_Finalize(const pmix_info_t info[], size_t ninfo)
458473
"pmix:client finalize sync received");
459474
}
460475

461-
PMIX_DESTRUCT(&pmix_client_globals.myserver);
476+
pmix_destruct_my_server();
477+
478+
#if defined(PMIX_ENABLE_DSTORE) && (PMIX_ENABLE_DSTORE == 1)
479+
if (0 > (rc = pmix_dstore_nspace_del(pmix_globals.myid.nspace))) {
480+
PMIX_ERROR_LOG(rc);
481+
return rc;
482+
}
483+
#endif
484+
462485
pmix_rte_finalize();
463486

464487
PMIX_LIST_DESTRUCT(&pmix_client_globals.pending_requests);

opal/mca/pmix/pmix2x/pmix/src/client/pmix_client_connect.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
3+
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
4+
* Copyright (c) 2014-2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014 Artem Y. Polyakov <[email protected]>.
77
* All rights reserved.
@@ -325,6 +325,7 @@ static void wait_cbfunc(struct pmix_peer_t *pr,
325325
#if !(defined(PMIX_ENABLE_DSTORE) && (PMIX_ENABLE_DSTORE == 1))
326326
pmix_job_data_htable_store(nspace, bptr);
327327
#endif
328+
free(nspace);
328329
PMIX_RELEASE(bptr);
329330
}
330331
if (PMIX_ERR_UNPACK_READ_PAST_END_OF_BUFFER != rc) {
@@ -335,6 +336,7 @@ static void wait_cbfunc(struct pmix_peer_t *pr,
335336
if (NULL != cb->op_cbfunc) {
336337
cb->op_cbfunc(ret, cb->cbdata);
337338
}
339+
PMIX_RELEASE(cb);
338340
}
339341

340342
static void op_cbfunc(pmix_status_t status, void *cbdata)

opal/mca/pmix/pmix2x/pmix/src/client/pmix_client_spawn.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
4-
* Copyright (c) 2014-2015 Research Organization for Information Science
3+
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
4+
* Copyright (c) 2014-2017 Research Organization for Information Science
55
* and Technology (RIST). All rights reserved.
66
* Copyright (c) 2014 Artem Y. Polyakov <[email protected]>.
77
* All rights reserved.
@@ -225,6 +225,8 @@ static void wait_cbfunc(struct pmix_peer_t *pr,
225225
if (NULL != cb->spawn_cbfunc) {
226226
cb->spawn_cbfunc(ret, nspace, cb->cbdata);
227227
}
228+
cb->cbdata = NULL;
229+
PMIX_RELEASE(cb);
228230
}
229231

230232
static void spawn_cbfunc(pmix_status_t status, char nspace[], void *cbdata)

opal/mca/pmix/pmix2x/pmix/src/common/pmix_jobdata.c

Lines changed: 7 additions & 1 deletion
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) 2016 Mellanox Technologies, Inc.
3+
* Copyright (c) 2016-2017 Mellanox Technologies, Inc.
44
* All rights reserved.
55
* Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
66
* $COPYRIGHT$
@@ -381,6 +381,12 @@ static inline pmix_status_t _job_data_store(const char *nspace, void *cbdata)
381381
exit:
382382
#if defined(PMIX_ENABLE_DSTORE) && (PMIX_ENABLE_DSTORE == 1)
383383
if (NULL != cb->bufs) {
384+
size_t size = pmix_value_array_get_size(cb->bufs);
385+
size_t i;
386+
for (i = 0; i < size; i++) {
387+
pmix_buffer_t *tmp = &(PMIX_VALUE_ARRAY_GET_ITEM(cb->bufs, pmix_buffer_t, i));
388+
PMIX_DESTRUCT(tmp);
389+
}
384390
PMIX_RELEASE(cb->bufs);
385391
}
386392
#endif

0 commit comments

Comments
 (0)