Skip to content

Conversation

rhc54
Copy link
Contributor

@rhc54 rhc54 commented Feb 21, 2019

When Slurm is built against PMIx, some installations place a copy of the
PMIx library that Slurm is linking against in the Slurm PMI location.
Current configury ignores that location. The desired behavior is to look
for a PMIx lib in that location when --with-pmi is given. If the user
also specifies --with-pmix and gives a different location, then override
anything previously found and look for it where the user directed.

Signed-off-by: Ralph Castain [email protected]

When Slurm is built against PMIx, some installations place a copy of the
PMIx library that Slurm is linking against in the Slurm PMI location.
Current configury ignores that location. The desired behavior is to look
for a PMIx lib in that location when --with-pmi is given. If the user
also specifies --with-pmix and gives a different location, then override
anything previously found and look for it where the user directed.

Signed-off-by: Ralph Castain <[email protected]>
@rhc54
Copy link
Contributor Author

rhc54 commented Feb 21, 2019

Refs spack/spack#10492

@rhc54
Copy link
Contributor Author

rhc54 commented Feb 21, 2019

@jsquyres This appears to be working as desired - you care to give it a once-over?

@HaoZeke
Copy link

HaoZeke commented Feb 26, 2019

So is this a fix for errors of the type:

checking if user requested PMI support... yes                                        
checking for pmi.h in /usr/include/slurm... found                                    
checking pmi.h usability... yes                                                      
checking pmi.h presence... yes                                      
checking for pmi.h... yes                       
checking for libpmi in /usr... not found    
checking for pmi2.h in /usr/include/slurm... not found
checking for pmi2.h in /usr/include/slurm/include... not found
checking for pmi2.h in /usr/include/slurm/include/slurm... not found
checking for libpmi2 in /usr... not found     
checking can PMI support be built... no              
configure: WARNING: PMI support requested (via --with-pmi) but neither pmi.h
configure: WARNING: nor pmi2.h were found under locations:
configure: WARNING:     /usr/include/slurm     
configure: WARNING:     /usr/include/slurm/slurm
configure: WARNING: Specified path: /usr/include/slurm     
configure: WARNING: OR neither libpmi nor libpmi2 were found under:
configure: WARNING:     /usr/lib            
configure: WARNING:     /usr/lib64        
configure: WARNING: Specified path: /usr  
configure: error: Aborting    

As discussed in #4338 ?

@rhc54
Copy link
Contributor Author

rhc54 commented Feb 26, 2019

Not sure - give it a try and see 😄

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this does what you say in the commit message: --with-pmi=DIR -- it'll check for both PMI and PMIX in DIR.

@rhc54 rhc54 merged commit 8fd6107 into open-mpi:master Feb 27, 2019
@rhc54 rhc54 deleted the topic/slurm branch February 27, 2019 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants