[mpich-discuss] mpich2+slurm compile: misleading wiki doku?

Stefan Friedel stefan.friedel at iwr.uni-heidelberg.de
Thu Dec 22 04:19:17 CST 2011


Hello all,
I tried to compile mpich2 (1.4.1p1) with slurm (2.3.2) pmi process
manager. slurm is installed in /opt/slurm (so libpmi.a is in
/opt/slurm/lib and pmi.h is in /opt/slurm/include/slurm).

According to the wiki faq
(here: http://wiki.mcs.anl.gov/mpich2/index.php/Frequently_Asked_Questions#Q:_How_do_I_use_MPICH2_with_slurm.3FI)
I used this configure command (no CFLAGS/LDFLAGS set):
#####
root at slurmmaster:~/mpich2-1.4.1p1# ./configure --prefix=/opt/mpich2 --with-pmi=slurm --with-pm=no --with-slurm=/opt/slurm --disable-f77 --disable-fc
[...]
checking for stdint.h... yes
checking for unistd.h... yes
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
configure: error: src/pmi/slurm configure failed
#####

After exporting CFLAGS/LDFLAGS:
#####
root at slurmmaster:~/mpich2-1.4.1p1# echo $CFLAGS
-I/opt/slurm/include
root at slurmmaster:~/mpich2-1.4.1p1# echo $LDFLAGS
-L/opt/slurm/lib
root at slurmmaster:~/mpich2-1.4.1p1# ./configure --prefix=/opt/mpich2 --with-pmi=slurm --with-pm=no --disable-f77 --disable-fc
[...]
configure: ===== configuring src/pmi/slurm =====
configure: executing: /root/mpich2-1.4.1p1/src/pmi/slurm/configure  '--prefix=/opt/mpich2' '--with-pmi=slurm' '--with-pm=no' '--disable-f77' '--disable-fc' 'CFLAGS=-I/opt/slurm/include   -O2' 'LDFLAGS=-L/opt/slurm/lib ' --disable-option-checking
RUNNING CONFIGURE FOR THE SLURM PMI
[...]
configure: ===== done with src/pmi/slurm configure =====
[...]
config.status: executing default-3 commands
Configuration completed.
#####
(w/o the --with-slurm=...!).

Do I misread the documentation or should the docu be adapted/changed?

Greetings + merry xmas,
-- 
Stefan Friedel
Zentrale Dienste - Interdisziplinäres Zentrum für Wissenschaftliches
Rechnen der Universität Heidelberg - IWR - INF 368, 69120 Heidelberg
stefan.friedel at iwr.uni-heidelberg.de   +49 6221 54-8240      -5224
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111222/9f3b7131/attachment-0001.pgp>


More information about the mpich-discuss mailing list