Skip to content

Commit 56b1e10

Browse files
author
rhc54
authored
Merge pull request #2649 from rhc54/topic/foot2
Update to latest PMIx master
2 parents a161628 + 08c76a4 commit 56b1e10

Some content is hidden

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

50 files changed

+766
-683
lines changed

opal/mca/hwloc/base/hwloc_base_maffinity.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
3+
* Copyright (c) 2016 Intel, Inc. All rights reserved.
34
* $COPYRIGHT$
45
*
56
* Additional copyrights may follow
@@ -31,7 +32,7 @@ int opal_hwloc_base_set_process_membind_policy(void)
3132

3233
/* Make sure opal_hwloc_topology has been set by the time we've
3334
been called */
34-
if (NULL == opal_hwloc_topology) {
35+
if (OPAL_SUCCESS != opal_hwloc_base_get_topology()) {
3536
return OPAL_ERR_BAD_PARAM;
3637
}
3738

@@ -82,7 +83,7 @@ int opal_hwloc_base_memory_set(opal_hwloc_base_memory_segment_t *segments,
8283
hwloc_cpuset_t cpuset = NULL;
8384

8485
/* bozo check */
85-
if (NULL == opal_hwloc_topology) {
86+
if (OPAL_SUCCESS != opal_hwloc_base_get_topology()) {
8687
msg = "hwloc_set_area_membind() failure - topology not available";
8788
return opal_hwloc_base_report_bind_failure(__FILE__, __LINE__,
8889
msg, rc);
@@ -137,7 +138,7 @@ int opal_hwloc_base_membind(opal_hwloc_base_memory_segment_t *segs,
137138
hwloc_cpuset_t cpuset = NULL;
138139

139140
/* bozo check */
140-
if (NULL == opal_hwloc_topology) {
141+
if (OPAL_SUCCESS != opal_hwloc_base_get_topology()) {
141142
msg = "hwloc_set_area_membind() failure - topology not available";
142143
return opal_hwloc_base_report_bind_failure(__FILE__, __LINE__,
143144
msg, rc);

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=
26+
greek=a1
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=gitb9778a7
33+
repo_rev=git8ed98a0
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="Dec 19, 2016"
47+
date="Dec 30, 2016"
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/config/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# University of Stuttgart. All rights reserved.
1313
# Copyright (c) 2004-2005 The Regents of the University of California.
1414
# All rights reserved.
15-
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
15+
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
1616
# Copyright (c) 2010 Oracle and/or its affiliates. All rights
1717
# reserved.
1818
# Copyright (c) 2016 Intel, Inc. All rights reserved.
@@ -41,7 +41,7 @@ EXTRA_DIST = \
4141
pmix.m4 \
4242
pmix_search_libs.m4 \
4343
pmix_setup_cc.m4 \
44-
pmix_setup_hwloc.m4 \
44+
pmix_setup_zlib.m4 \
4545
pmix_setup_libevent.m4 \
4646
pmix_mca_priority_sort.pl
4747

opal/mca/pmix/pmix2x/pmix/config/pmix.m4

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ AC_DEFUN([PMIX_SETUP_CORE],[
358358
#endif
359359
])
360360

361-
362361
# Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
363362
# have both Portland and GNU installed; using pgcc will find GNU's
364363
# <stdbool.h>, which all it does -- by standard -- is define "bool" to
@@ -641,11 +640,11 @@ AC_DEFUN([PMIX_SETUP_CORE],[
641640
PMIX_LIBEVENT_CONFIG
642641

643642
##################################
644-
# HWLOC
643+
# ZLIB COMPRESSION
645644
##################################
646-
pmix_show_title "HWLOC"
645+
pmix_show_title "ZLIB"
647646

648-
PMIX_HWLOC_CONFIG
647+
PMIX_ZLIB_CONFIG
649648

650649
##################################
651650
# MCA

opal/mca/pmix/pmix2x/pmix/config/pmix_setup_hwloc.m4

Lines changed: 0 additions & 123 deletions
This file was deleted.
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# -*- shell-script -*-
2+
#
3+
# Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved.
4+
# Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
5+
# Copyright (c) 2013-2016 Intel, Inc. All rights reserved
6+
# $COPYRIGHT$
7+
#
8+
# Additional copyrights may follow
9+
#
10+
# $HEADER$
11+
#
12+
13+
# MCA_zlib_CONFIG([action-if-found], [action-if-not-found])
14+
# --------------------------------------------------------------------
15+
AC_DEFUN([PMIX_ZLIB_CONFIG],[
16+
PMIX_VAR_SCOPE_PUSH([pmix_zlib_dir pmix_zlib_libdir])
17+
18+
AC_ARG_WITH([zlib],
19+
[AC_HELP_STRING([--with-zlib=DIR],
20+
[Search for zlib headers and libraries in DIR ])])
21+
22+
AC_ARG_WITH([zlib-libdir],
23+
[AC_HELP_STRING([--with-zlib-libdir=DIR],
24+
[Search for zlib libraries in DIR ])])
25+
26+
pmix_zlib_support=0
27+
if test "$with_zlib" != "no"; then
28+
AC_MSG_CHECKING([for zlib in])
29+
if test ! -z "$with_zlib" && test "$with_zlib" != "yes"; then
30+
pmix_zlib_dir=$with_zlib
31+
pmix_zlib_standard_header_location=no
32+
if test -d $with_zlib/lib; then
33+
pmix_zlib_libdir=$with_zlib/lib
34+
elif test -d $with_zlib/lib64; then
35+
pmix_zlib_libdir=$with_zlib/lib64
36+
else
37+
AC_MSG_RESULT([Could not find $with_zlib/lib or $with_zlib/lib64])
38+
AC_MSG_ERROR([Can not continue])
39+
fi
40+
AC_MSG_RESULT([$pmix_zlib_dir and $pmix_zlib_libdir])
41+
else
42+
AC_MSG_RESULT([(default search paths)])
43+
pmix_zlib_standard_header_location=yes
44+
fi
45+
AS_IF([test ! -z "$with_zlib_libdir" && test "$with_zlib_libdir" != "yes"],
46+
[pmix_zlib_libdir="$with_zlib_libdir"
47+
pmix_zlib_standard_lib_location=no],
48+
[pmix_zlib_standard_lib_location=yes])
49+
50+
PMIX_CHECK_PACKAGE([pmix_zlib],
51+
[zlib.h],
52+
[z],
53+
[deflate],
54+
[-lz],
55+
[$pmix_zlib_dir],
56+
[$pmix_zlib_libdir],
57+
[pmix_zlib_support=1],
58+
[pmix_zlib_support=0])
59+
if test $pmix_zlib_support == "1"; then
60+
LIBS="$LIBS -lz"
61+
if test "$pmix_zlib_standard_header_location" != "yes"; then
62+
CPPFLAGS="$CPPFLAGS $pmix_zlib_CPPFLAGS"
63+
fi
64+
if test "$pmix_zlib_standard_lib_location" != "yes"; then
65+
LDFLAGS="$LDFLAGS $pmix_zlib_LDFLAGS"
66+
fi
67+
fi
68+
fi
69+
70+
if test ! -z "$with_zlib" && test "$with_zlib" != "no" && test "$pmix_zlib_support" != "1"; then
71+
AC_MSG_WARN([ZLIB SUPPORT REQUESTED AND NOT FOUND])
72+
AC_MSG_ERROR([CANNOT CONTINUE])
73+
fi
74+
75+
AC_MSG_CHECKING([will zlib support be built])
76+
if test "$pmix_zlib_support" != "1"; then
77+
AC_MSG_RESULT([no])
78+
else
79+
AC_MSG_RESULT([yes])
80+
fi
81+
82+
AC_DEFINE_UNQUOTED([PMIX_HAVE_ZLIB], [$pmix_zlib_support],
83+
[Whether or not we have zlib support])
84+
PMIX_VAR_SCOPE_POP
85+
])dnl

opal/mca/pmix/pmix2x/pmix/contrib/make_dist_tarball

100644100755
File mode changed.

opal/mca/pmix/pmix2x/pmix/contrib/perf_tools/README

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@ make sure that both MPI and PMIx libraries are visible for the loader.
2424

2525
For PMIx testing "convenience" there is a `run.sh` script that can be used to
2626
ensure that environment is set properly (not a production grade so may not work
27-
for all environments)
27+
for all environments). To use it open it and fix:
28+
- OMPI_BASE to point to your MPI installation
29+
- PMIX_LIB to point to your PMIx installation
30+
31+
If you are running inside the supported batch system you shoud be fine to
32+
just run fixed `run.sh` with the first argument defining how many processes
33+
needs to be launched and all other parameters will be passed to the performance
34+
tool. For example:
35+
$ ./run.sh 10 -d

opal/mca/pmix/pmix2x/pmix/contrib/perf_tools/pmi_intra_perf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ int main(int argc, char **argv)
493493
fprintf(stderr,"get: max loc %lf rem %lf (loc: %d, rem: %d)\n",
494494
max_get_loc_time, max_get_rem_time, max_get_loc_idx, max_get_rem_idx);
495495
fprintf(stderr,"total: max %lf min %lf\n", max_total_time, min_total_time);
496-
fprintf(stderr,"mem: loc %0.2lf rem %0.2lf min %0.2lf max %0.2lf total %0.2lf Kb\n",
496+
fprintf(stderr,"mem: loc %0.2lf avg %0.2lf min %0.2lf max %0.2lf total %0.2lf Kb\n",
497497
mem_pss, cum_mem_pss / nproc, min_mem_pss, max_mem_pss, cum_mem_pss);
498498

499499

opal/mca/pmix/pmix2x/pmix/contrib/perf_tools/pmix.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pmix_proc_t this_proc;
1717
void pmi_init(int *rank, int *size)
1818
{
1919
pmix_value_t value, *val = &value;
20+
pmix_proc_t job_proc;
2021
int rc;
2122

2223
/* init us */
@@ -30,8 +31,12 @@ void pmi_init(int *rank, int *size)
3031
abort();
3132
}
3233

34+
job_proc = this_proc;
35+
#if (PMIX_VERSION_MAJOR > 1 )
36+
job_proc.rank = PMIX_RANK_WILDCARD;
37+
#endif
3338
/* get our job size */
34-
if (PMIX_SUCCESS != (rc = PMIx_Get(&this_proc, PMIX_JOB_SIZE, NULL, 0, &val))) {
39+
if (PMIX_SUCCESS != (rc = PMIx_Get(&job_proc, PMIX_JOB_SIZE, NULL, 0, &val))) {
3540
fprintf(stderr, "Client ns %s rank %d: PMIx_Get job size failed: %d", this_proc.nspace, this_proc.rank, rc);
3641
abort();
3742
}
@@ -45,9 +50,13 @@ void pmi_get_local_ranks(int **local_ranks, int *local_cnt)
4550
pmix_value_t value, *val = &value;
4651
char *ptr;
4752
int i, rc;
53+
pmix_proc_t job_proc = this_proc;
54+
#if (PMIX_VERSION_MAJOR > 1 )
55+
job_proc.rank = PMIX_RANK_WILDCARD;
56+
#endif
4857

4958
/* get our job size */
50-
if (PMIX_SUCCESS != (rc = PMIx_Get(&this_proc, PMIX_LOCAL_SIZE, NULL, 0, &val))) {
59+
if (PMIX_SUCCESS != (rc = PMIx_Get(&job_proc, PMIX_LOCAL_SIZE, NULL, 0, &val))) {
5160
fprintf(stderr, "Client ns %s rank %d: PMIx_Get PMIX_LOCAL_SIZE failed: %d", this_proc.nspace, this_proc.rank, rc);
5261
abort();
5362
}
@@ -56,7 +65,7 @@ void pmi_get_local_ranks(int **local_ranks, int *local_cnt)
5665

5766
*local_ranks = calloc(*local_cnt, sizeof(int));
5867
/* get our job size */
59-
if (PMIX_SUCCESS != (rc = PMIx_Get(&this_proc, PMIX_LOCAL_PEERS, NULL, 0, &val))) {
68+
if (PMIX_SUCCESS != (rc = PMIx_Get(&job_proc, PMIX_LOCAL_PEERS, NULL, 0, &val))) {
6069
fprintf(stderr, "Client ns %s rank %d: PMIx_Get PMIX_LOCAL_PEERS failed: %d", this_proc.nspace, this_proc.rank, rc);
6170
abort();
6271
}
Binary file not shown.

opal/mca/pmix/pmix2x/pmix/contrib/whitespace-purge.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)