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
5fc16840
Commit
5fc16840
authored
8 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Sanity check to validate the pmix version is the same as the one we are
linking against.
parent
8eb77f66
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/mpi/pmix/mpi_pmix.c
+17
-0
17 additions, 0 deletions
src/plugins/mpi/pmix/mpi_pmix.c
with
17 additions
and
0 deletions
src/plugins/mpi/pmix/mpi_pmix.c
+
17
−
0
View file @
5fc16840
...
@@ -89,6 +89,23 @@ const char plugin_type[] = "mpi/pmix_v2";
...
@@ -89,6 +89,23 @@ const char plugin_type[] = "mpi/pmix_v2";
const
uint32_t
plugin_version
=
SLURM_VERSION_NUMBER
;
const
uint32_t
plugin_version
=
SLURM_VERSION_NUMBER
;
/*
* init() is called when the plugin is loaded, before any other functions
* are called. Put global initialization here.
*/
extern
int
init
(
void
)
{
/* HAVE_PMIX_VER is what we were compiled against PMIX_VERSION_MAJOR is
* found in the pmix source we are dynamically linking against.
*/
if
(
HAVE_PMIX_VER
!=
PMIX_VERSION_MAJOR
)
fatal
(
"pmix_init: Slurm was compiled against PMIx v%d but we are now linking against v%ld. Please check your install."
,
HAVE_PMIX_VER
,
PMIX_VERSION_MAJOR
);
return
SLURM_SUCCESS
;
}
int
p_mpi_hook_slurmstepd_prefork
(
const
stepd_step_rec_t
*
job
,
char
***
env
)
int
p_mpi_hook_slurmstepd_prefork
(
const
stepd_step_rec_t
*
job
,
char
***
env
)
{
{
int
ret
;
int
ret
;
...
...
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