Skip to content

Commit

Permalink
Protect against PMIx v4.1.1-only definitions
Browse files Browse the repository at this point in the history
We want to continue to support back to PMIx v4.1.0

Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Nov 2, 2021
1 parent 832e0e4 commit ebac40d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ version 1.0.
+**** NOTE: As of v2.0.1, PRRTE no longer has a dependency on "pandoc"
+**** for building and installing man pages.

PR #1137: Protect against PMIx v4.1.1-only definitions
PR #1135: Final update v2.0.1 for rc3
- Show MCA base params in prte_info
- Silence variety of warnings
Expand Down
4 changes: 2 additions & 2 deletions config/prte_setup_pmix.m4
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ AC_DEFUN([PRTE_CHECK_PMIX],[
AS_IF([test "x`ls $pmix_ext_install_dir/include/pmix_version.h 2> /dev/null`" = "x"],
[AC_MSG_RESULT([not found - assuming pre-v2.0])
AC_MSG_WARN([PRTE does not support PMIx versions])
AC_MSG_WARN([less than v4.01 as only PMIx-based tools can])
AC_MSG_WARN([less than v4.1.0 as only PMIx-based tools can])
AC_MSG_WARN([can connect to the server.])
AC_MSG_ERROR([Please select a newer version and configure again])],
[AC_MSG_RESULT([found])
Expand Down Expand Up @@ -156,7 +156,7 @@ AC_DEFUN([PRTE_CHECK_PMIX],[
AS_IF([test "$prte_external_pmix_version_found" = "0"],
[AC_MSG_WARN([PRTE does not support PMIx versions])
AC_MSG_WARN([less than v4.1 as only PMIx-based tools can])
AC_MSG_WARN([less than v4.1.0 as only PMIx-based tools can])
AC_MSG_WARN([can connect to the server.])
AC_MSG_ERROR([Please select a newer version and configure again])])
Expand Down
11 changes: 11 additions & 0 deletions src/pmix/pmix-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,17 @@ PRTE_EXPORT int prte_pmix_register_cleanup(char *path, bool directory, bool igno
#define PMIX_ERROR_LOG(r) \
prte_output(0, "[%s:%d] PMIx Error: %s", __FILE__, __LINE__, PMIx_Error_string((r)))

#ifndef PMIX_DATA_BUFFER_STATIC_INIT
#define PMIX_DATA_BUFFER_STATIC_INIT \
{ \
.base_ptr = NULL, \
.pack_ptr = NULL, \
.unpack_ptr = NULL, \
.bytes_allocated = 0, \
.bytes_used = 0 \
}
#endif

END_C_DECLS

#endif
2 changes: 2 additions & 0 deletions src/prted/pmix/pmix_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ int pmix_server_init(void)
}
}

#ifdef PMIX_SINGLETON
/* if we were started to support a singleton, then let the server library know */
if (NULL != prte_pmix_server_globals.singleton) {
PMIX_INFO_LIST_ADD(prc, ilist, PMIX_SINGLETON,
Expand All @@ -685,6 +686,7 @@ int pmix_server_init(void)
return rc;
}
}
#endif

/* if we are the MASTER, then we are the scheduler
* as well as a gateway */
Expand Down

0 comments on commit ebac40d

Please sign in to comment.