Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
20f08241
Commit
20f08241
authored
2 years ago
by
Isaías A. Comprés Ureña
Committed by
Danny Auble
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add PMIX v5 functionality to Slurm
Bug 12396
parent
4182b6dc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
auxdir/x_ac_pmix.m4
+33
-2
33 additions, 2 deletions
auxdir/x_ac_pmix.m4
src/plugins/mpi/pmix/Makefile.am
+17
-0
17 additions, 0 deletions
src/plugins/mpi/pmix/Makefile.am
src/plugins/mpi/pmix/mpi_pmix.c
+2
-0
2 additions, 0 deletions
src/plugins/mpi/pmix/mpi_pmix.c
with
53 additions
and
2 deletions
NEWS
+
1
−
0
View file @
20f08241
...
...
@@ -192,6 +192,7 @@ documents those changes that are of interest to users and administrators.
'scontrol delete/update NodeName=ALL' or 'scontrol delete/update
NodeName=ns1,nodes[1-3]').
-- Add support for PMIx v4
-- Add support for PMIx v5
* Changes in Slurm 21.08.8
==========================
...
...
This diff is collapsed.
Click to expand it.
auxdir/x_ac_pmix.m4
+
33
−
2
View file @
20f08241
...
...
@@ -2,6 +2,7 @@
# AUTHOR:
# Artem Polyakov <artpol84@gmail.com>
# Ralph Castain <ralph.h.castain@intel.com>
# Isaias Compres <isaias.compres@tum.de>
#
# SYNOPSIS:
# X_AC_PMIX
...
...
@@ -18,6 +19,7 @@ AC_DEFUN([X_AC_PMIX],
_x_ac_pmix_v2_found="0"
_x_ac_pmix_v3_found="0"
_x_ac_pmix_v4_found="0"
_x_ac_pmix_v5_found="0"
AC_ARG_WITH(
[pmix],
...
...
@@ -59,6 +61,13 @@ AC_DEFUN([X_AC_PMIX],
_x_ac_pmix_version="0"
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
#include <pmix_version.h>
#if (PMIX_VERSION_MAJOR != 5L)
#error "not version 5"
#endif
], [ ] )],
[ _x_ac_pmix_version="5" ],
[ AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
#include <pmix_version.h>
#if (PMIX_VERSION_MAJOR != 4L)
#error "not version 4"
...
...
@@ -81,6 +90,7 @@ AC_DEFUN([X_AC_PMIX],
[ _x_ac_pmix_version="2" ] )
])
])
])
CPPFLAGS="$_x_ac_pmix_cppflags_save"
LIBS="$_x_ac_pmix_libs_save"
...
...
@@ -140,6 +150,24 @@ AC_DEFUN([X_AC_PMIX],
# symlink of lib.
break
fi
if [test "$_x_ac_pmix_version" = "5"]; then
if [test "$_x_ac_pmix_v5_found" = "1" ]; then
m4_define([err_pmix_v5],[error processing $x_ac_cv_pmix_libdir: PMIx v5.x])
AC_MSG_ERROR(err_pmix_v5 err_pmix)
fi
_x_ac_pmix_v5_found="1"
PMIX_V5_CPPFLAGS="-I$x_ac_cv_pmix_dir/include"
if test "$ac_with_rpath" = "yes"; then
PMIX_V5_LDFLAGS="-Wl,-rpath -Wl,$x_ac_cv_pmix_libdir -L$x_ac_cv_pmix_libdir"
else
PMIX_V5_CPPFLAGS=$PMIX_V5_CPPFLAGS" -DPMIXP_V5_LIBPATH=\\\"$x_ac_cv_pmix_libdir\\\""
fi
# We don't want to search the other lib after we found it in
# one place or we might report a false duplicate if lib64 is a
# symlink of lib.
break
fi
done
done
])
...
...
@@ -152,9 +180,11 @@ AC_DEFUN([X_AC_PMIX],
AC_SUBST(PMIX_V3_LDFLAGS)
AC_SUBST(PMIX_V4_CPPFLAGS)
AC_SUBST(PMIX_V4_LDFLAGS)
AC_SUBST(PMIX_V5_CPPFLAGS)
AC_SUBST(PMIX_V5_LDFLAGS)
if test $_x_ac_pmix_v2_found = 0 &&
test $_x_ac_pmix_v
3
_found = 0 && test $_x_ac_pmix_v
4
_found = 0; then
if test $_x_ac_pmix_v2_found = 0 &&
test $_x_ac_pmix_v3_found = 0 &&
test $_x_ac_pmix_v
4
_found = 0 && test $_x_ac_pmix_v
5
_found = 0; then
if test -z "$with_pmix"; then
AC_MSG_WARN([unable to locate pmix installation])
else
...
...
@@ -169,4 +199,5 @@ AC_DEFUN([X_AC_PMIX],
AM_CONDITIONAL(HAVE_PMIX_V2, [test $_x_ac_pmix_v2_found = "1"])
AM_CONDITIONAL(HAVE_PMIX_V3, [test $_x_ac_pmix_v3_found = "1"])
AM_CONDITIONAL(HAVE_PMIX_V4, [test $_x_ac_pmix_v4_found = "1"])
AM_CONDITIONAL(HAVE_PMIX_V5, [test $_x_ac_pmix_v5_found = "1"])
])
This diff is collapsed.
Click to expand it.
src/plugins/mpi/pmix/Makefile.am
+
17
−
0
View file @
20f08241
...
...
@@ -63,6 +63,22 @@ mpi_pmix_v4_la_CPPFLAGS = $(AM_CPPFLAGS) $(PMIX_V4_CPPFLAGS) -DHAVE_PMIX_VER=4
endif
if
HAVE_PMIX_V5
pkglib_v5dir
=
$(
pkglibdir
)
pkglib_v5_LTLIBRARIES
=
mpi_pmix_v5.la
mpi_pmix_v5_la_SOURCES
=
$(
pmix_src
)
pmixp_client_v2.c
mpi_pmix_v5_la_LIBADD
=
$(
pmix_libadd
)
mpi_pmix_v5_la_LDFLAGS
=
$(
pmix_ldflags
)
$(
PMIX_V5_LDFLAGS
)
mpi_pmix_v5_la_CPPFLAGS
=
$(
AM_CPPFLAGS
)
$(
PMIX_V5_CPPFLAGS
)
-DHAVE_PMIX_VER
=
5
endif
if
HAVE_PMIX_V5
mpi_pmix_so
:=
mpi_pmix_v5.so
else
if
HAVE_PMIX_V4
mpi_pmix_so
:=
mpi_pmix_v4.so
else
...
...
@@ -77,6 +93,7 @@ mpi_pmix_so := mpi_pmix_v2.so
endif
endif
endif
endif
install-exec-hook
:
rm
-rf
$(
DESTDIR
)$(
pkglibdir
)
/mpi_pmix.so
...
...
This diff is collapsed.
Click to expand it.
src/plugins/mpi/pmix/mpi_pmix.c
+
2
−
0
View file @
20f08241
...
...
@@ -86,6 +86,8 @@ const char plugin_type[] = "mpi/pmix_v2";
const
char
plugin_type
[]
=
"mpi/pmix_v3"
;
#elif (HAVE_PMIX_VER == 4)
const
char
plugin_type
[]
=
"mpi/pmix_v4"
;
#elif (HAVE_PMIX_VER == 5)
const
char
plugin_type
[]
=
"mpi/pmix_v5"
;
#endif
const
uint32_t
plugin_version
=
SLURM_VERSION_NUMBER
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment