Skip to content
Snippets Groups Projects
Commit 5fc16840 authored by Danny Auble's avatar Danny Auble
Browse files

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
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment