Skip to content

Commit ae4f310

Browse files
author
Ralph Castain
authored
Merge pull request #4406 from rhc54/topic/update
Sync to PMIx master (now v3.0)
2 parents df48ddd + 5c61a4e commit ae4f310

Some content is hidden

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

55 files changed

+7515
-365
lines changed

opal/mca/event/external/configure.m4

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#
33
# Copyright (c) 2009-2013 Cisco Systems, Inc. All rights reserved.
44
# Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
5-
# Copyright (c) 2015 Research Organization for Information Science
5+
# Copyright (c) 2015-2017 Research Organization for Information Science
66
# and Technology (RIST). All rights reserved.
77
#
8+
# Copyright (c) 2017 Intel, Inc. All rights reserved.
89
# $COPYRIGHT$
910
#
1011
# Additional copyrights may follow
@@ -95,9 +96,17 @@ AC_DEFUN([MCA_opal_event_external_CONFIG],[
9596
AS_IF([test "$with_libevent" != "external" && test "$with_libevent" != "yes"],
9697
[opal_event_dir=$with_libevent
9798
AC_MSG_RESULT([$opal_event_dir])
98-
OPAL_CHECK_WITHDIR([libevent], [$with_libdir],
99+
OPAL_CHECK_WITHDIR([libevent], [$opal_event_dir],
99100
[include/event.h])
100-
],
101+
AS_IF([test -z "$with_libevent_libdir" || test "$with_libevent_libdir" = "yes"],
102+
[AS_IF([test -d "$with_libevent/lib64"],
103+
[opal_event_libdir="$with_libevent/lib64"],
104+
[AS_IF([test -d "$with_libevent/lib"],
105+
[opal_event_libdir="$with_libevent/lib"],
106+
[AC_MSG_WARN([libevent library were neither found under:])
107+
AC_MSG_WARN([ $with_libevent/lib64])
108+
AC_MSG_WARN([ $with_libevent/lib])
109+
AC_MSG_ERROR([Cannot continue])])])])],
101110
[AC_MSG_RESULT([(default search paths)])])
102111
AS_IF([test ! -z "$with_libevent_libdir" && test "$with_libevent_libdir" != "yes"],
103112
[opal_event_libdir="$with_libevent_libdir"])

opal/mca/pmix/pmix3x/configure.m4

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,19 @@ AC_DEFUN([MCA_opal_pmix_pmix3x_CONFIG],[
5353
opal_pmix_pmix3x_timing_flag=--disable-pmix-timing
5454
fi
5555

56-
opal_pmix_pmix3x_args="$opal_pmix_pmix3x_timing_flag --without-tests-examples --disable-pmix-backward-compatibility --disable-visibility --enable-embedded-libevent --with-libevent-header=\\\"opal/mca/event/$opal_event_base_include\\\""
56+
opal_pmix_pmix3x_args="$opal_pmix_pmix3x_timing_flag --without-tests-examples --disable-pmix-binaries --disable-pmix-backward-compatibility --disable-visibility --enable-embedded-libevent --with-libevent-header=\\\"opal/mca/event/$opal_event_base_include\\\""
5757
AS_IF([test "$enable_debug" = "yes"],
5858
[opal_pmix_pmix3x_args="--enable-debug $opal_pmix_pmix3x_args"
5959
CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS -g"],
6060
[opal_pmix_pmix3x_args="--disable-debug $opal_pmix_pmix3x_args"
6161
CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS"])
62-
AS_IF([test "$enable_install_libpmix" != "yes"],
62+
AS_IF([test "$enable_install_libpmix" == "yes"],
63+
[AS_IF([test "$opal_event_external_want" != "yes"],
64+
[AC_MSG_WARN([Installing the embedded PMIx library as a separate])
65+
AC_MSG_WARN([standalone library requires that OMPI be configured])
66+
AC_MSG_WARN([against an external version of libevent.])
67+
AC_MSG_ERROR([Cannot continue])])
68+
opal_pmix_pmix3x_args="--with-pmix-extra-lib=\"$opal_event_libdir/libevent.la $opal_event_libdir/libevent_pthreads.la\" $opal_pmix_pmix3x_args"],
6369
[opal_pmix_pmix3x_args="--with-pmix-symbol-rename=OPAL_MCA_PMIX2X_ --enable-embedded-mode $opal_pmix_pmix3x_args"])
6470
AS_IF([test "$with_devel_headers" = "yes"],
6571
[opal_pmix_pmix3x_args="--with-devel-headers $opal_pmix_pmix3x_args"])

opal/mca/pmix/pmix3x/pmix/NEWS

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,44 @@ Master (not on release branches yet)
2525
------------------------------------
2626

2727

28-
2.0.0
29-
------
28+
2.1.0 -- 26 Oct 2017
29+
----------------------
30+
**** NOTE: This release contains the first implementation of cross-version
31+
**** support. Servers using v2.1.0 are capable of supporting clients using
32+
**** PMIx versions v1.2 and above. Clients using v2.1.0 are able to interact
33+
**** with servers based on v1.2 and above.
34+
- Added cross-version communication support
35+
- Enable reporting of contact URI to stdout, stderr, or file (PR #538)
36+
- Enable support for remote tool connections (PR #540, #542)
37+
- Cleanup libevent configure logi to support default install paths (PR #541)
38+
- Debounce "unreachable" notifications for tools when they disconnect (PR #544)
39+
40+
41+
2.0.2 -- 19 Oct 2017
42+
----------------------
43+
- Update RPM spec file (rpmbuild -ta, and --rebuild fixes) (PR #523)
44+
- Support singletons in PMI-1/PMI-2 (PR #537)
45+
- Provide missing implementation support for arrays of pmix_value_t's (PR #531)
46+
- Remove unsupported assembly code for MIPS and ARM processors
47+
prior to v6 (PR #547)
48+
- Fix path separator for PMIx configuration files (PR #547)
49+
- Add configure option to enable/disable the default value for the
50+
show-load-errors MCA param (PR #547)
51+
52+
53+
2.0.1 -- 24 Aug. 2017
54+
----------------------
55+
- Protect PMIX_INFO_FREE macro from NULL data arrays
56+
- Added attributes to support HWLOC shared memory regions
57+
- Fixed several syntax errors in configure code
58+
- Fixed several visibility errors
59+
- Correctly return status from PMIx_Fence operation
60+
- Restore tool connection support and implement search
61+
operations to discover rendezvous files
62+
63+
64+
2.0.0 -- 22 Jun 2017
65+
----------------------
3066
**** NOTE: This release implements the complete PMIX v2.0 Standard
3167
**** and therefore includes a number of new APIs and features. These
3268
**** can be tracked by their RFC's in the RFC repository at:

opal/mca/pmix/pmix3x/pmix/VERSION

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

33-
repo_rev=gitd74c321
33+
repo_rev=gitffa464b
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="Oct 14, 2017"
47+
date="Oct 26, 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/pmix3x/pmix/autogen.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ (\$\@)
254254

255255
foreach my $framework (@frameworks) {
256256
# There is no common framework object
257-
if ($framework ne "common") {
257+
if ($framework ne "common" and $framework ne "src") {
258258
my $framework_name = "pmix_${framework}_base_framework";
259259
$framework_array_output .= " &$framework_name,\n";
260260
$framework_decl_output .= "extern pmix_mca_base_framework_t $framework_name;\n";
@@ -269,7 +269,7 @@ (\$\@)
269269
#ifndef $ifdef_string
270270
#define $ifdef_string
271271
272-
#include <pmix/mca/base/mca_base_framework.h>
272+
#include <src/mca/base/pmix_mca_base_framework.h>
273273
274274
$framework_decl_output
275275
static pmix_mca_base_framework_t *pmix_frameworks[] = {

opal/mca/pmix/pmix3x/pmix/config/pmix.m4

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,24 @@ AC_DEFUN([PMIX_SETUP_CORE],[
123123
AC_DEFINE_UNQUOTED([PMIX_RELEASE_VERSION], [$PMIX_RELEASE_VERSION],
124124
[The library release version is always available, contrary to VERSION])
125125

126+
PMIX_GREEK_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --greek`"
127+
if test "$?" != "0"; then
128+
AC_MSG_ERROR([Cannot continue])
129+
fi
130+
AC_SUBST(PMIX_GREEK_VERSION)
131+
132+
PMIX_REPO_REV="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --repo-rev`"
133+
if test "$?" != "0"; then
134+
AC_MSG_ERROR([Cannot continue])
135+
fi
136+
AC_SUBST(PMIX_REPO_REV)
137+
138+
PMIX_RELEASE_DATE="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release-date`"
139+
if test "$?" != "0"; then
140+
AC_MSG_ERROR([Cannot continue])
141+
fi
142+
AC_SUBST(PMIX_RELEASE_DATE)
143+
126144
# Debug mode?
127145
AC_MSG_CHECKING([if want pmix maintainer support])
128146
pmix_debug=
@@ -175,6 +193,21 @@ AC_DEFUN([PMIX_SETUP_CORE],[
175193
PMIX_EXTRA_LIB=])
176194
AC_SUBST(PMIX_EXTRA_LIB)
177195

196+
#
197+
# Package/brand string
198+
#
199+
AC_MSG_CHECKING([if want package/brand string])
200+
AC_ARG_WITH([pmix-package-string],
201+
[AC_HELP_STRING([--with-pmix-package-string=STRING],
202+
[Use a branding string throughout PMIx])])
203+
if test "$with_pmix_package_string" = "" || test "$with_pmix_package_string" = "no"; then
204+
with_package_string="PMIx $PMIX_CONFIGURE_USER@$PMIX_CONFIGURE_HOST Distribution"
205+
fi
206+
AC_DEFINE_UNQUOTED([PMIX_PACKAGE_STRING], ["$with_package_string"],
207+
[package/branding string for PMIx])
208+
AC_MSG_RESULT([$with_package_string])
209+
210+
178211
# GCC specifics.
179212
if test "x$GCC" = "xyes"; then
180213
PMIX_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef"
@@ -794,6 +827,10 @@ AC_DEFUN([PMIX_SETUP_CORE],[
794827
pmix_config_prefix[src/Makefile]
795828
pmix_config_prefix[src/util/keyval/Makefile]
796829
pmix_config_prefix[src/mca/base/Makefile]
830+
pmix_config_prefix[src/tools/pevent/Makefile]
831+
pmix_config_prefix[src/tools/pinfo/Makefile]
832+
pmix_config_prefix[src/tools/plookup/Makefile]
833+
pmix_config_prefix[src/tools/pps/Makefile]
797834
)
798835

799836
# publish any embedded flags so external wrappers can use them
@@ -1059,6 +1096,25 @@ else
10591096
fi
10601097

10611098
AM_CONDITIONAL([WANT_INSTALL_HEADERS], [test $WANT_INSTALL_HEADERS -eq 1])
1099+
1100+
#
1101+
# Do we want to install binaries?
1102+
#
1103+
AC_MSG_CHECKING([if want to disable binaries])
1104+
AC_ARG_ENABLE(pmix-binaries,
1105+
AC_HELP_STRING([--enable-pmix-binaries],
1106+
[enable PMIx tools]))
1107+
if test "$enable_pmix_binaries" = "no"; then
1108+
AC_MSG_RESULT([no])
1109+
WANT_PMIX_BINARIES=0
1110+
else
1111+
AC_MSG_RESULT([yes])
1112+
WANT_PMIX_BINARIES=1
1113+
fi
1114+
1115+
AM_CONDITIONAL([PMIX_INSTALL_BINARIES], [test $WANT_PMIX_BINARIES -eq 1])
1116+
1117+
10621118
])dnl
10631119

10641120
# This must be a standalone routine so that it can be called both by

opal/mca/pmix/pmix3x/pmix/config/pmix_check_compiler_version.m4

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ AC_DEFUN([PMIX_CHECK_COMPILER_VERSION_ID],
2222
PMIX_CHECK_COMPILER(FAMILYID)
2323
PMIX_CHECK_COMPILER_STRINGIFY(FAMILYNAME)
2424
PMIX_CHECK_COMPILER(VERSION)
25-
PMIX_CHECK_COMPILER_STRINGIFY(VERSION_STR)
25+
PMIX_CHECK_COMPILER_STRING(VERSION_STR)
2626
])dnl
2727

2828

@@ -31,10 +31,11 @@ AC_DEFUN([PMIX_CHECK_COMPILER], [
3131
AC_CACHE_CHECK([for compiler $lower], pmix_cv_compiler_[$1],
3232
[
3333
CPPFLAGS_orig=$CPPFLAGS
34-
CPPFLAGS="-I${top_pmix_srcdir}/src/include $CPPFLAGS"
34+
CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS"
3535
AC_TRY_RUN([
3636
#include <stdio.h>
3737
#include <stdlib.h>
38+
#include "pmix_portable_platform.h"
3839

3940
int main (int argc, char * argv[])
4041
{
@@ -57,16 +58,51 @@ int main (int argc, char * argv[])
5758
[The compiler $lower which PMIx was built with])
5859
])dnl
5960

61+
AC_DEFUN([PMIX_CHECK_COMPILER_STRING], [
62+
lower=m4_tolower($1)
63+
AC_CACHE_CHECK([for compiler $lower], pmix_cv_compiler_[$1],
64+
[
65+
CPPFLAGS_orig=$CPPFLAGS
66+
CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS"
67+
AC_TRY_RUN([
68+
#include <stdio.h>
69+
#include <stdlib.h>
70+
#include "pmix_portable_platform.h"
71+
72+
int main (int argc, char * argv[])
73+
{
74+
FILE * f;
75+
f=fopen("conftestval", "w");
76+
if (!f) exit(1);
77+
fprintf (f, "%s", PLATFORM_COMPILER_$1);
78+
return 0;
79+
}
80+
], [
81+
eval pmix_cv_compiler_$1=`cat conftestval`;
82+
], [
83+
eval pmix_cv_compiler_$1=UNKNOWN
84+
], [
85+
eval pmix_cv_compiler_$1=UNKNOWN
86+
])
87+
CPPFLAGS=$CPPFLAGS_orig
88+
])
89+
AC_DEFINE_UNQUOTED([PMIX_BUILD_PLATFORM_COMPILER_$1], $pmix_cv_compiler_[$1],
90+
[The compiler $lower which PMIx was built with])
91+
])dnl
92+
93+
94+
6095

6196
AC_DEFUN([PMIX_CHECK_COMPILER_STRINGIFY], [
6297
lower=m4_tolower($1)
6398
AC_CACHE_CHECK([for compiler $lower], pmix_cv_compiler_[$1],
6499
[
65100
CPPFLAGS_orig=$CPPFLAGS
66-
CPPFLAGS="-I${top_pmix_srcdir}/src/include $CPPFLAGS"
101+
CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS"
67102
AC_TRY_RUN([
68103
#include <stdio.h>
69104
#include <stdlib.h>
105+
#include "pmix_portable_platform.h"
70106

71107
int main (int argc, char * argv[])
72108
{

opal/mca/pmix/pmix3x/pmix/config/pmix_functions.m4

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dnl All rights reserved.
1313
dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
1414
dnl Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
1515
dnl Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
16-
dnl Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
16+
dnl Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1717
dnl Copyright (c) 2017 Research Organization for Information Science
1818
dnl and Technology (RIST). All rights reserved.
1919
dnl
@@ -102,21 +102,21 @@ PMIX_CONFIGURE_DATE="`date`"
102102
# Save these details so that they can be used in pmix_info later
103103
#
104104
AC_SUBST(PMIX_CONFIGURE_USER)
105+
AC_DEFINE_UNQUOTED([PMIX_CONFIGURE_USER], "$PMIX_CONFIGURE_USER",
106+
[User who built PMIx])
105107
AC_SUBST(PMIX_CONFIGURE_HOST)
106-
AC_SUBST(PMIX_CONFIGURE_DATE)])dnl
108+
AC_DEFINE_UNQUOTED([PMIX_CONFIGURE_HOST], "$PMIX_CONFIGURE_HOST",
109+
[Hostname where PMIx was built])
110+
AC_SUBST(PMIX_CONFIGURE_DATE)
111+
AC_DEFINE_UNQUOTED([PMIX_CONFIGURE_DATE], "$PMIX_CONFIGURE_DATE",
112+
[Date when PMIx was built])
113+
])dnl
107114

108115
dnl #######################################################################
109116
dnl #######################################################################
110117
dnl #######################################################################
111118

112119
AC_DEFUN([PMIX_BASIC_SETUP],[
113-
#
114-
# Save some stats about this build
115-
#
116-
117-
PMIX_CONFIGURE_USER="`whoami`"
118-
PMIX_CONFIGURE_HOST="`(hostname || uname -n) 2> /dev/null | sed 1q`"
119-
PMIX_CONFIGURE_DATE="`date`"
120120

121121
#
122122
# Make automake clean emacs ~ files for "make clean"
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# -*- shell-script -*-
2+
#
3+
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
5+
# $COPYRIGHT$
6+
#
7+
# Additional copyrights may follow
8+
#
9+
# $HEADER$
10+
#
11+
12+
# PMIX_SET_MCA_PREFIX([mca_prefix]
13+
#
14+
# This macro sets a prefix for the MCA parameter system. Specifically,
15+
# OMPI_MCA_<foo> becomes <mca_prefix>_<foo>
16+
#
17+
# --------------------------------------------------------
18+
AC_DEFUN([PMIX_SET_MCA_PREFIX],[
19+
AS_IF([test "$pmix_mca_prefix_set" = "yes"],
20+
[AC_MSG_WARN([PMIX mca prefix was already set!])
21+
AC_MSG_WARN([This is a configury programming error])
22+
AC_MSG_ERROR([Cannot continue])])
23+
24+
MCA_PREFIX=$1
25+
pmix_mca_prefix_set=yes
26+
AC_DEFINE_UNQUOTED([PMIX_MCA_PREFIX], ["$MCA_PREFIX"], [MCA prefix string for envars])
27+
])dnl
28+
29+
#
30+
# Set the MCA cmd line identifier - i.e., change "-mca" to "-<foo>"
31+
#
32+
AC_DEFUN([PMIX_SET_MCA_CMD_LINE_ID],[
33+
AS_IF([test "$pmix_mca_cmd_id_set" = "yes"],
34+
[AC_MSG_WARN([PMIX mca cmd line id was already set!])
35+
AC_MSG_WARN([This is a configury programming error])
36+
AC_MSG_ERROR([Cannot continue])])
37+
38+
MCA_CMD_LINE_ID=$1
39+
pmix_mca_cmd_id_set=yes
40+
AC_DEFINE_UNQUOTED([PMIX_MCA_CMD_LINE_ID], ["$MCA_CMD_LINE_ID"], [MCA cmd line identifier])
41+
])dnl

0 commit comments

Comments
 (0)