Skip to content

Commit abf7378

Browse files
committed
pmix/pmix112: Update to release PMIx 1.2.0
Signed-off-by: Joshua Hursey <jhursey@us.ibm.com>
1 parent 961c418 commit abf7378

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4465
-612
lines changed

opal/mca/pmix/pmix112/pmix/Makefile.am

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# All rights reserved.
1212
# Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved.
1313
# Copyright (c) 2012-2013 Los Alamos National Security, Inc. All rights reserved.
14-
# Copyright (c) 2013-2015 Intel, Inc. All rights reserved
14+
# Copyright (c) 2013-2016 Intel, Inc. All rights reserved
1515
# $COPYRIGHT$
1616
#
1717
# Additional copyrights may follow
@@ -34,6 +34,7 @@ dist_pmixdata_DATA =
3434
if ! PMIX_EMBEDDED_MODE
3535
dist_pmixdata_DATA += contrib/pmix-valgrind.supp
3636

37+
3738
man_MANS = \
3839
man/man3/pmix_init.3 \
3940
man/man3/pmix_finalize.3 \
@@ -59,6 +60,11 @@ include src/server/Makefile.am
5960
include src/sec/Makefile.am
6061
include src/common/Makefile.am
6162

63+
if WANT_DSTORE
64+
include src/sm/Makefile.am
65+
include src/dstore/Makefile.am
66+
endif
67+
6268
if PMIX_EMBEDDED_MODE
6369
noinst_LTLIBRARIES = libpmix.la
6470
libpmix_la_SOURCES = $(headers) $(sources)

opal/mca/pmix/pmix112/pmix/NEWS

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Copyright (c) 2015-2016 Intel, Inc. All rights reserved.
2+
Copyright (c) 2016 IBM Corporation. All rights reserved.
23
$COPYRIGHT$
34

45
Additional copyrights may follow
@@ -20,8 +21,27 @@ example, a bug might be fixed in the master, and then moved to the
2021
current release as well as the "stable" bug fix release branch.
2122

2223

23-
Master (not on release branches yet)
24-
------------------------------------
24+
1.2.0
25+
-----
26+
- Add shared memory data storage (dstore) option. Default: enabled
27+
Configure option: --disable-dstore
28+
- PMIx_Commit performance improvements
29+
- Disable errhandler support
30+
- Keep job info in the shared memory dstore
31+
- PMIx_Get performance and memory improvements
32+
33+
34+
35+
1.1.5
36+
-----
37+
- Add pmix_version.h to support direct detection of PMIx library version
38+
- Fix support for Solaris 10 by using abstract version of strnlen
39+
- Fix native security module for Solaris by using getpeerucred in
40+
that environment
41+
- Ensure man pages don't get installed in embedded builds
42+
- Pass temporary directory locations in info keys instead of
43+
the environment
44+
2545

2646
1.1.4
2747
-----

opal/mca/pmix/pmix112/pmix/VERSION

+6-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# Copyright (c) 2013 Mellanox Technologies, Inc.
55
# All rights reserved.
66
# Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
7+
# Copyright (c) 2016 IBM Corporation. All rights reserved.
78

89
# This is the VERSION file for PMIx, describing the precise
910
# version of PMIx in this distribution. The various components of
@@ -14,23 +15,23 @@
1415
# <major>.<minor>.<release>.
1516

1617
major=1
17-
minor=1
18-
release=5
18+
minor=2
19+
release=0
1920

2021
# greek is used for alpha or beta release tags. If it is non-empty,
2122
# it will be appended to the version number. It does not have to be
2223
# numeric. Common examples include a1 (alpha release 1), b1 or (beta release 1).
2324
# The only requirement is that it must be entirely printable ASCII
2425
# characters and have no white space.
2526

26-
greek=a1
27+
greek=
2728

2829
# If repo_rev is empty, then the repository version number will be
2930
# obtained during "make dist" via the "git describe --tags --always"
3031
# command, or with the date (if "git describe" fails) in the form of
3132
# "date<date>".
3233

33-
repo_rev=git9ae61b8
34+
repo_rev=git33736edb
3435

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

4546
# The date when this release was created
4647

47-
date="Aug 23, 2016"
48+
date="Dec 14, 2016"
4849

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

opal/mca/pmix/pmix112/pmix/config/pmix.m4

+32-6
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ dnl Copyright (c) 2009 Los Alamos National Security, LLC. All rights
1717
dnl reserved.
1818
dnl Copyright (c) 2009-2011 Oak Ridge National Labs. All rights reserved.
1919
dnl Copyright (c) 2011-2013 NVIDIA Corporation. All rights reserved.
20-
dnl Copyright (c) 2015-2016 Research Organization for Information Science
2120
dnl Copyright (c) 2013-2016 Intel, Inc. All rights reserved
21+
dnl Copyright (c) 2015 Research Organization for Information Science
22+
dnl and Technology (RIST). All rights reserved.
2223
dnl Copyright (c) 2016 Mellanox Technologies, Inc.
2324
dnl All rights reserved.
2425
dnl Copyright (c) 2016 IBM Corporation. All rights reserved.
@@ -85,7 +86,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
8586
AC_MSG_RESULT([$PMIX_VERSION])
8687

8788
# Save the breakdown the version information
88-
AC_MSG_CHECKING([for pmix major version])
8989
PMIX_MAJOR_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --major`"
9090
if test "$?" != "0"; then
9191
AC_MSG_ERROR([Cannot continue])
@@ -94,7 +94,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
9494
AC_DEFINE_UNQUOTED([PMIX_MAJOR_VERSION], ["$PMIX_MAJOR_VERSION"],
9595
[The library major version is always available, contrary to VERSION])
9696

97-
AC_MSG_CHECKING([for pmix minor version])
9897
PMIX_MINOR_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --minor`"
9998
if test "$?" != "0"; then
10099
AC_MSG_ERROR([Cannot continue])
@@ -103,7 +102,12 @@ AC_DEFUN([PMIX_SETUP_CORE],[
103102
AC_DEFINE_UNQUOTED([PMIX_MINOR_VERSION], ["$PMIX_MINOR_VERSION"],
104103
[The library minor version is always available, contrary to VERSION])
105104

106-
AC_MSG_CHECKING([for pmix release version])
105+
pmixmajor=${PMIX_MAJOR_VERSION}L
106+
pmixminor=${PMIX_MINOR_VERSION}L
107+
AC_SUBST(pmixmajor)
108+
AC_SUBST(pmixminor)
109+
AC_CONFIG_FILES(pmix_config_prefix[include/pmix_version.h])
110+
107111
PMIX_RELEASE_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release`"
108112
if test "$?" != "0"; then
109113
AC_MSG_ERROR([Cannot continue])
@@ -318,7 +322,8 @@ AC_DEFUN([PMIX_SETUP_CORE],[
318322
time.h unistd.h \
319323
crt_externs.h signal.h \
320324
ioLib.h sockLib.h hostLib.h limits.h \
321-
ucred.h])
325+
sys/statfs.h sys/statvfs.h \
326+
netdb.h ucred.h])
322327

323328
# Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
324329
# have both Portland and GNU installed; using pgcc will find GNU's
@@ -495,7 +500,7 @@ AC_DEFUN([PMIX_SETUP_CORE],[
495500
# Darwin doesn't need -lm, as it's a symlink to libSystem.dylib
496501
PMIX_SEARCH_LIBS_CORE([ceil], [m])
497502

498-
AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep getpeereid getpeerucred strnlen])
503+
AC_CHECK_FUNCS([asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep statfs statvfs getpeereid getpeerucred strnlen])
499504

500505
# On some hosts, htonl is a define, so the AC_CHECK_FUNC will get
501506
# confused. On others, it's in the standard library, but stubbed with
@@ -753,6 +758,26 @@ AC_DEFINE_UNQUOTED([PMIX_WANT_PRETTY_PRINT_STACKTRACE],
753758
[$WANT_PRETTY_PRINT_STACKTRACE],
754759
[if want pretty-print stack trace feature])
755760

761+
#
762+
# Do we want the shared memory datastore usage?
763+
#
764+
765+
AC_MSG_CHECKING([if want shared memory datastore])
766+
AC_ARG_ENABLE([dstore],
767+
[AC_HELP_STRING([--disable-dstore],
768+
[Using shared memory datastore (default: enabled)])])
769+
if test "$enable_dstore" == "no" ; then
770+
AC_MSG_RESULT([no])
771+
WANT_DSTORE=0
772+
else
773+
AC_MSG_RESULT([yes])
774+
WANT_DSTORE=1
775+
fi
776+
AC_DEFINE_UNQUOTED([PMIX_ENABLE_DSTORE],
777+
[$WANT_DSTORE],
778+
[if want shared memory dstore feature])
779+
AM_CONDITIONAL([WANT_DSTORE],[test "x$enable_dstore" != "xno"])
780+
756781
#
757782
# Ident string
758783
#
@@ -810,6 +835,7 @@ AC_DEFUN([PMIX_DO_AM_CONDITIONALS],[
810835
AM_CONDITIONAL([PMIX_COMPILE_TIMING], [test "$WANT_TIMING" = "1"])
811836
AM_CONDITIONAL([PMIX_WANT_MUNGE], [test "$pmix_munge_support" = "1"])
812837
AM_CONDITIONAL([PMIX_WANT_SASL], [test "$pmix_sasl_support" = "1"])
838+
AM_CONDITIONAL([WANT_DSTORE],[test "x$enable_dstore" != "xno"])
813839
])
814840
pmix_did_am_conditionals=yes
815841
])dnl

opal/mca/pmix/pmix112/pmix/examples/dynamic.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <stdlib.h>
3131
#include <unistd.h>
3232
#include <time.h>
33+
#include <sys/param.h>
3334

3435
#include <pmix.h>
3536

@@ -45,7 +46,7 @@ int main(int argc, char **argv)
4546
uint32_t nprocs;
4647
char nsp2[PMIX_MAX_NSLEN+1];
4748
pmix_app_t *app;
48-
char hostname[PMIX_MAXHOSTNAMELEN], dir[1024];
49+
char hostname[MAXHOSTNAMELEN], dir[1024];
4950
pmix_proc_t *peers;
5051
size_t npeers, ntmp=0;
5152
char *nodelist;

opal/mca/pmix/pmix112/pmix/include/Makefile.am

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ include_HEADERS = \
1717
include/pmix.h \
1818
include/pmix_server.h \
1919
include/pmi.h \
20-
include/pmi2.h
20+
include/pmi2.h \
21+
include/pmix_version.h.in
2122

2223
include_pmixdir = $(includedir)/pmix
2324
include_pmix_HEADERS = \
24-
include/pmix/rename.h \
2525
include/pmix/pmix_common.h
2626

2727
include_pmix_autogendir = $(includedir)/pmix/autogen
@@ -32,4 +32,7 @@ include_pmix_autogen_HEADERS = \
3232
nodist_include_pmix_autogen_HEADERS = \
3333
include/pmix/autogen/config.h
3434

35+
nodist_include_HEADERS = \
36+
include/pmix_version.h
37+
3538
endif ! PMIX_EMBEDDED_MODE

opal/mca/pmix/pmix112/pmix/include/pmix.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,13 @@
4646
#ifndef PMIx_H
4747
#define PMIx_H
4848

49-
#include <pmix/autogen/config.h>
50-
51-
/* Symbol transforms */
52-
#include <pmix/rename.h>
53-
5449
/* Structure and constant definitions */
5550
#include <pmix/pmix_common.h>
5651

5752

58-
BEGIN_C_DECLS
53+
#if defined(c_plusplus) || defined(__cplusplus)
54+
extern "C" {
55+
#endif
5956

6057
/**** PMIX API ****/
6158

@@ -391,5 +388,8 @@ pmix_status_t PMIx_Resolve_peers(const char *nodename, const char *nspace,
391388
* when done with it */
392389
pmix_status_t PMIx_Resolve_nodes(const char *nspace, char **nodelist);
393390

394-
END_C_DECLS
391+
#if defined(c_plusplus) || defined(__cplusplus)
392+
}
393+
#endif
394+
395395
#endif

opal/mca/pmix/pmix112/pmix/include/pmix/pmix_common.h

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved
2+
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions are
@@ -46,18 +46,18 @@
4646
#ifndef PMIx_COMMON_H
4747
#define PMIx_COMMON_H
4848

49-
#include <pmix/autogen/config.h>
50-
#include <pmix/rename.h>
51-
5249
#include <stdbool.h>
5350
#include <stdlib.h>
5451
#include <stdint.h>
5552
#include <string.h>
5653
#ifdef HAVE_SYS_TIME_H
5754
#include <sys/time.h> /* for struct timeval */
5855
#endif
56+
#include <pmix_version.h>
5957

60-
BEGIN_C_DECLS
58+
#if defined(c_plusplus) || defined(__cplusplus)
59+
extern "C" {
60+
#endif
6161

6262
/**** PMIX CONSTANTS ****/
6363

@@ -92,6 +92,7 @@ BEGIN_C_DECLS
9292
/* identification attributes */
9393
#define PMIX_USERID "pmix.euid" // (uint32_t) effective user id
9494
#define PMIX_GRPID "pmix.egid" // (uint32_t) effective group id
95+
#define PMIX_DSTPATH "pmix.dstpath" // (char*) path to dstore files
9596

9697
/* attributes for the rendezvous socket */
9798
#define PMIX_SOCKET_MODE "pmix.sockmode" // (uint32_t) POSIX mode_t (9 bits valid)
@@ -118,7 +119,7 @@ BEGIN_C_DECLS
118119
#define PMIX_NPROC_OFFSET "pmix.offset" // (uint32_t) starting global rank of this job
119120
#define PMIX_LOCAL_RANK "pmix.lrank" // (uint16_t) rank on this node within this job
120121
#define PMIX_NODE_RANK "pmix.nrank" // (uint16_t) rank on this node spanning all jobs
121-
#define PMIX_LOCALLDR "pmix.lldr" // (uint64_t) opal_identifier of lowest rank on this node within this job
122+
#define PMIX_LOCALLDR "pmix.lldr" // (uint32_t) opal_identifier of lowest rank on this node within this job
122123
#define PMIX_APPLDR "pmix.aldr" // (uint32_t) lowest rank in this app within this job
123124

124125
/* proc location-related info */
@@ -983,5 +984,8 @@ pmix_status_t PMIx_Store_internal(const pmix_proc_t *proc,
983984
#define PMIX_VAL_FREE(_v) \
984985
PMIx_free_value_data(_v)
985986

986-
END_C_DECLS
987+
#if defined(c_plusplus) || defined(__cplusplus)
988+
}
989+
#endif
990+
987991
#endif

opal/mca/pmix/pmix112/pmix/include/pmix_server.h

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved
2+
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved
33
* Copyright (c) 2015 Artem Y. Polyakov <artpol84@gmail.com>.
44
* All rights reserved.
55
* Copyright (c) 2015 Research Organization for Information Science
@@ -59,15 +59,12 @@
5959
#ifndef PMIx_SERVER_API_H
6060
#define PMIx_SERVER_API_H
6161

62-
#include <pmix/autogen/config.h>
63-
64-
/* Symbol transforms */
65-
#include <pmix/rename.h>
66-
6762
/* Structure and constant definitions */
6863
#include <pmix/pmix_common.h>
6964

70-
BEGIN_C_DECLS
65+
#if defined(c_plusplus) || defined(__cplusplus)
66+
extern "C" {
67+
#endif
7168

7269
/**** SERVER FUNCTION-SHIPPED APIs ****/
7370
/* NOTE: for performance purposes, the host server is required to
@@ -420,6 +417,8 @@ pmix_status_t PMIx_server_dmodex_request(const pmix_proc_t *proc,
420417
pmix_dmodex_response_fn_t cbfunc,
421418
void *cbdata);
422419

423-
END_C_DECLS
420+
#if defined(c_plusplus) || defined(__cplusplus)
421+
}
422+
#endif
424423

425424
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) 2016 Mellanox Technologies, Inc.
3+
* All rights reserved.
4+
* $COPYRIGHT$
5+
*
6+
* Additional copyrights may follow
7+
*
8+
* $HEADER$
9+
*/
10+
11+
12+
#ifndef PMIx_VERSION_H
13+
#define PMIx_VERSION_H
14+
15+
/* define PMIx version */
16+
#define PMIX_VERSION_MAJOR @pmixmajor@
17+
#define PMIX_VERSION_MINOR @pmixminor@
18+
19+
#endif

0 commit comments

Comments
 (0)