Noam -- I believe we fixed this issue after v4.0.0 was released. Can you try the v4.0.1rc3 tarball that was just released today?
https://www.open-mpi.org/software/ompi/v4.0/ > On Mar 22, 2019, at 6:07 PM, Noam Bernstein via users > <users@lists.open-mpi.org> wrote: > > Hi - I'm trying to compile openmpi 4.0.0 with srun support, so I'm trying to > tell openmpi's configure where to find the relevant files by doing > $ ./configure --with-verbs --with-ofi --with-pmi=/usr/include/slurm > --with-pmi-libdir=/usr/lib64 --prefix=/share/apps/mpi/openmpi/4.0.0/ib/gnu > verbs and ofi are there from past versions (recycling the commands from > openmpi 3.1.X), although I think it's actually using ucx for our IB > interfaces. > > The directories I'm specifying are correct: > [bernadm@tin openmpi-4.0.0]$ ls /usr/include/slurm/pmi2.h > /usr/include/slurm/pmi2.h > [bernadm@tin openmpi-4.0.0]$ ls /usr/lib64/libpmi2* > /usr/lib64/libpmi2.so /usr/lib64/libpmi2.so.0 /usr/lib64/libpmi2.so.0.0.0 > > but when I try to compile, it fails with error: > > make[2]: Entering directory > `/home_tin/bernadm/configuration/110_compile_mpi/OpenMPI/openmpi-4.0.0/opal/mca/pmix/s1' > CC mca_pmix_s1_la-pmix_s1.lo > pmix_s1.c:29:17: fatal error: pmi.h: No such file or directory > #include <pmi.h> > ^ > compilation terminated. > make[2]: *** [mca_pmix_s1_la-pmix_s1.lo] Error 1 > make[2]: Leaving directory > `/home_tin/bernadm/configuration/110_compile_mpi/OpenMPI/openmpi-4.0.0/opal/mca/pmix/s1' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home_tin/bernadm/configuration/110_compile_mpi/OpenMPI/openmpi-4.0.0/opal' > make: *** [all-recursive] Error 1 > [bernadm@tin openmpi-4.0.0]$ less Makefile > [bernadm@tin openmpi-4.0.0]$ pwd > /home_tin/bernadm/configuration/110_compile_mpi/OpenMPI/openmpi-4.0.0 > [bernadm@tin openmpi-4.0.0]$ head config.log > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > It was created by Open MPI configure 4.0.0, which was > generated by GNU Autoconf 2.69. Invocation command line was > > > ## --------- ## > ## Platform. ## > > poking around config.log and Makefile, I don't see any evidence of anything > like "-I/usr/local/slurm", so maybe it's not surprising that compilation > fails, but am I supposed to be doing something different/additional to get > this to work? > > thanks, > Noam > > _______________________________________________ > users mailing list > users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/users -- Jeff Squyres jsquy...@cisco.com _______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users