[mpich-discuss] Intel Xeon Phi support?

Nikoloutsakos Nikolaos nikoloutsa at ceid.upatras.gr
Fri May 9 19:26:57 CDT 2014


Hi again,

Im trying to follow your steps, (if any documentation or experience 
would be great!)

so here is my configure:
./configure --prefix=/opt/mvapich_icc_mic/ --disable-fc --disable-f77 
--host=i686-linux-gnu --build=x86_64-k1om-linux CC=icc CXX=icpc 
CFLAGS=-mmic CPPFLAGS=-mmic CXXFLAGS=-mmic

now i got a problem with make:

make  all-recursive
make[1]: Entering directory `/home/nikoloutsa/Downloads/mpich-3.1'
Making all in /home/nikoloutsa/Downloads/mpich-3.1/src/mpl
make[2]: Entering directory 
`/home/nikoloutsa/Downloads/mpich-3.1/src/mpl'
   CCLD     libmpl.la
ld: src/.libs/mplstr.o: Relocations in generic ELF (EM: 181)
src/.libs/mplstr.o: could not read symbols: File in wrong format
make[2]: *** [libmpl.la] Error 1
make[2]: Leaving directory 
`/home/nikoloutsa/Downloads/mpich-3.1/src/mpl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nikoloutsa/Downloads/mpich-3.1'
make: *** [all] Error 2


Sorry if my question is very trivial but i have no clue.

Thank you very much.
Nikos


Στις 2014-05-10 01:58, Balaji, Pavan έγραψε:
> Hello,
> 
> You need to build MPICH for the MIC as well, not just the application.
> 
> So CFLAGS need to be set to -mmic for MPICH’s configure too, and that
> copy needs to be installed on the MIC.
> 
> Here’s a rough list of steps:
> 
> 1. Configure MPICH with -mmic.  Build.  Install.
> 
> 2. Copy the install directory to the MIC.
> 
> 3. Configure MPICH without -mmic (for the host).  Build.  Install.
> 
> 4. Make sure the install path for MPICH on both the host and the MIC
> is the same.
> 
>   — Pavan
> 
> On May 9, 2014, at 2:57 PM, Nikoloutsakos Nikolaos
> <nikoloutsa at ceid.upatras.gr> wrote:
> 
>> Yes i am familiar with that, have you ever tried it?
>> I get the following error:
>> $mpicc -mmic -show mpi_hello_world.c
>> $icc -mmic mpi_hello_world.c -o mpi_hello_world 
>> -I/opt/mpich_icc/include -L/opt/mpich_icc/lib -Wl,-rpath 
>> -Wl,/opt/mpich_icc/lib -lmpich -lopa -lmpl -lrt -lpthread
>> 
>> x86_64-k1om-linux-ld: skipping incompatible 
>> /opt/mpich_icc/lib/libmpich.so when searching for -lmpich
>> x86_64-k1om-linux-ld: skipping incompatible 
>> /opt/mpich_icc/lib/libmpich.a when searching for -lmpich
>> x86_64-k1om-linux-ld: cannot find -lmpich
>> x86_64-k1om-linux-ld: skipping incompatible 
>> /opt/mpich_icc/lib/libopa.so when searching for -lopa
>> x86_64-k1om-linux-ld: skipping incompatible 
>> /opt/mpich_icc/lib/libopa.a when searching for -lopa
>> x86_64-k1om-linux-ld: cannot find -lopa
>> x86_64-k1om-linux-ld: skipping incompatible 
>> /opt/mpich_icc/lib/libmpl.so when searching for -lmpl
>> x86_64-k1om-linux-ld: skipping incompatible 
>> /opt/mpich_icc/lib/libmpl.a when searching for -lmpl
>> x86_64-k1om-linux-ld: cannot find -lmp
>> 
>> Without the -mmic argument i dont have any linking problems.
>> 
>> Thanks for the feedback.
>> 
>> Στις 2014-05-09 16:03, Harms, Kevin N. έγραψε:
>>> add -mmic to the CFLAGS/LDFLAGS if you want to run in native mode.
>>> kevin
>>>> Hello,
>>>> I just installed MPICH 3.1 "several improvements to Intel Xeon Phi
>>>> (contributed by Intel and NEC)".
>>>> I used icc to compile mpich.
>>>> I can't figure out how to create an executable for xeon phi.
>>>> Any hints from anyone using mpich with phi?
>>>> Thank you all.
>>>> _______________________________________________
>>>> 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
>> _______________________________________________
>> 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