[mpich-discuss] problem on configuring MPI with slurm

Balaji, Pavan balaji at anl.gov
Tue May 20 01:24:44 CDT 2014


We should just get rid of the --with-slurm option in MPICH.  It’s pretty useless for two reasons:

1. You don’t need to configure mpich with slurm at all, unless you are planning to use srun/salloc directly.  You can just build mpich normally and run with mpiexec.  mpiexec will internally detect that you are using a slurm environment and use srun internally.

2. If you really want to use srun/salloc, you can just build your application with mpicc -L/path/to/slurm foo.c -lpmi and it’ll pick up slurm’s PMI library.  Then you can use srun/salloc.

Xueming,

My suggestion is, forget the slurm option.  Just build mpich normally and run it with mpiexec.  It’ll automatically use slurm internally.

  — Pavan

On May 19, 2014, at 9:28 PM, Kenneth Raffenetti <raffenet at mcs.anl.gov> wrote:

> configure expects a directory named slurm under the location you specify. Try using '--with-slurm=/usr/local' in your configure line instead.
> 
> Ken
> 
> On 05/19/2014 07:06 PM, 朱学明 wrote:
>> Hello,
>> 
>>     I am trying to install MPICH-3.1 on our linux server with Slurm
>> 1.2.25. I configured it with the command as follow,
>> 
>> 
>> ./configure --prefix=/zhuxm/mpich-3.1 CC=icc CXX=icpc F77=ifort
>> FC=ifort -enable-fast=all,O3 -enable-shared --with-rdma=gen2
>> --with-pmi=slurm --with-pm=no --with-slurm=/usr/local/slurm
>> --with-ib-include=/usr/local/ib_hpc/include
>> --with-ib-libpath=/usr/local/ib_hpc/lib64 --with-ch3-rank-bits=32
>> --without-mpe --without-hwloc --disable-rdma-cm -disable-fuse 2>&1 |tee
>> config-min.log
>> 
>> 
>> Then I have got the error messages as follow,
>> 
>> 
>> Checking slurm/pmi.h usability ... no
>> 
>> Checking slurm/pmi.h presence... no
>> 
>> Checking for slurm/pmi.h... no
>> 
>> configure: error: could not find slurm/pmi.h. Configure aborted
>> 
>> 
>> Can you give mu any suggestion how to figure out the issue? Thanks.
>> 
>> 
>> --
>> *Xueming Zhu 朱学明*
>> Key Laboratory of Research on Marine Hazards Forecasting (*LoMF*), SOA
>> National Marine Environmental Forecasting Center (*NMEFC*)
>> No.8 Dahuisi Road, Haidian District, Beijing, 100081
>> People's Republic of China
>> Tel: +86-10-82481923
>> 
>> 
>> _______________________________________________
>> discuss mailing list     discuss at mpich.org
>> To manage subscription options or unsubscribe:
>> https://lists.mpich.org/mailman/listinfo/discuss
>> 
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss



More information about the discuss mailing list