Did you remember to build the Slurm pmi and pmi2 libraries?  They aren't built 
by default - IIRC, you have to manually go into a subdirectory and do a "make 
install" to have them built and installed. You might check the Slurm 
documentation for details.

You also might need to add a --with-pmi-libdir=... to the OMPI configure line - 
IIRC, Slurm puts those libraries in some subdirectory that may not be 
immediately obvious.


> On Dec 20, 2020, at 6:52 AM, Philipp Heckmann via users 
> <users@lists.open-mpi.org> wrote:
> 
> Hello everyone,
> 
> 
> I'm new to this list and as well to OpenMPI. I hope this is not a stupid
> question:
> 
> I use following machine:
> Operating System: CentOS Linux 7 (Core)
> CPE OS Name: cpe:/o:centos:centos:7
> Kernel: Linux 3.10.0-1127.19.1.el7.x86_64
> Architecture: x86-64
> 
> In the FAQ I found this post:
> 
> Does Open MPI support "srun -n X my_mpi_application"?
> 
> This is exactly what I want to achieve, starting MPI-Jobs using slurms
> run or sbatch without the mpirun command. So I installed slurm 20.02.5
> and now I tried to configure OpenMPI 3.1.6 with ./configure ./configure
> —with-pmi=/usr
> 
> 
> and this is the output:
> 
> checking if user requested PMI support... yes
> checking for pmi.h in /usr... not found
> checking for pmi.h in /usr/include... found
> checking pmi.h usability... yes
> checking pmi.h presence... yes
> checking for pmi.h... yes
> checking for libpmi in /usr/lib... checking for libpmi in /usr/lib64...
> not found
> checking for pmi2.h in /usr... not found
> checking for pmi2.h in /usr/include... found
> checking pmi2.h usability... yes
> checking pmi2.h presence... yes
> checking for pmi2.h... yes
> checking for libpmi2 in /usr/lib... checking for libpmi2 in
> /usr/lib64... 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
> configure: WARNING:     /usr/slurm
> configure: WARNING: Specified path: /usr
> configure: WARNING: OR neither libpmi nor libpmi2 were found under:
> configure: WARNING:     /lib
> configure: WARNING:     /lib64
> configure: WARNING: Specified path: 
> configure: error: Aborting
> 
> So it finds the pmi.h and pmi2.h but not the libpmi and libpmi2. Is
> there a way to install pmi2 first? Where do I find this? Slurm is
> installed in /usr/local but I don't find the files libpmi or libpmi2
> anywhere on the machine. 
> Pmix is not necessary because the cluster is quite small with 5 nodes
> with 64 cpus in total.
> 
> Any help is appreciated. Thanks in advance and all the Best!
> 
> Philipp Heckmann
> 
> 
> 
> 
> 
> 
> 


Reply via email to