Hello Uwe,

The pmi2 for Slurm is in the contribs/pmi2 of the Slurm source. You must
build it separately, but the makefile is indeed generated during the
regular Slurm configure so the prefix is defined already as you need it to
be.

ex.

cd contribs/pmi2
make && make install



-- 
Jared Baker



On 4/21/15, 3:53 AM, "Uwe Sauter" <[email protected]> wrote:

>
>Hi Trey, all,
>
>I have Slurm 14.11.5 running. It was build with:
>
>./configure --prefix=/opt/slurm/${SLURMVERSION}
>--with-munge=/opt/munge/${MUNGEVERSION} --enable-pam
>make
>make install
>
>I just tried to compile MVAPICH2 2.1 with
>
>./configure --prefix=/opt/mpi/mvapich2/2.1 --with-pmi=pmi2
>--with-pm=slurm --enable-romio --with-file-system=lustre
>--with-slurm-include=/opt/system/default/include/
>--with-slurm-lib=/opt/slurm/default/lib
>
>(where /opt/slurm/default points to the current working
>/opt/slurm/${SLURMVERSION}).
>
>But while running MVAPICH2 ./configure I crash into:
>
>[Š]
>checking lex library... none needed
>checking whether yytext is a pointer... no
>configure: RUNNING CONFIGURE FOR src/pm/slurm
>checking slurm/pmi2.h usability... no
>checking slurm/pmi2.h presence... no
>checking for slurm/pmi2.h... no
>configure: error: could not find slurm/pmi2.h.  Configure aborted
>
>
>Indeed I cannot find any file named pmi2.h for Slurm versions greater
>2.6.4 (latest 2.6 installed on my system) but there are
>
>/opt/slurm/${SLURMVERSION}/include/slurm/pmi.h   for SLURMVERSION== 2.6.4
>... 14.11.5
>
>So my question is: did I configure Slurm incorrectly or does MVAPICH2
>assume a wrong filename while configuring?
>
>
>Regards,
>
>       Uwe
>
>
>
>Am 20.04.2015 um 21:20 schrieb Trey Dockendorf:
>> That's a really unfortunate typo.  MpiDefault=pmi2 will "just work"
>>with MVAPICH2 2.1.  Sorry about that
>> 
>> - Trey
>> 
>> =============================
>> 
>> Trey Dockendorf 
>> Systems Analyst I
>> Texas A&M University
>> Academy for Advanced Telecommunications and Learning Technologies
>> Phone: (979)458-2396
>> Email: [email protected] <mailto:[email protected]>
>> Jabber: [email protected] <mailto:[email protected]>
>> 
>> On Mon, Apr 20, 2015 at 2:13 PM, Uwe Sauter <[email protected]
>><mailto:[email protected]>> wrote:
>> 
>> 
>>     Hi Trey,
>> 
>>     is that a "will NOT just work" or a "will just work"?
>> 
>>     Regards,
>> 
>>             Uwe
>> 
>>     Am 20.04.2015 um 20:14 schrieb Trey Dockendorf:
>>     > Just a heads up to anyone who uses MVAPICH2 with srun.  The 2.1
>>docs for MVAPICH2 have new configure flag values since
>>     > 2.1 supports PMI-2 with SLURM.  If you build MVAPICH2 2.1 with
>>SLURM support and then use srun with "--mpi=none" I've
>>     > found things don't go well.  The steps to use srun with MVAPICH2
>>2.1 appear to be identical to that of OpenMPI.  We have
>>     > set MpiDefault=pmi2 which will not "just work" for MVAPICH2 2.1.
>>     >
>>     > - Trey
>>     >
>>     > =============================
>>     >
>>     > Trey Dockendorf
>>     > Systems Analyst I
>>     > Texas A&M University
>>     > Academy for Advanced Telecommunications and Learning Technologies
>>     > Phone: (979)458-2396
>>     > Email: [email protected] <mailto:[email protected]>
>><mailto:[email protected] <mailto:[email protected]>>
>>     > Jabber: [email protected] <mailto:[email protected]>
>><mailto:[email protected] <mailto:[email protected]>>
>> 
>> 

Reply via email to