[mvapich-discuss] Intel Xeon Phi support?

Nikoloutsakos Nikolaos nikoloutsa at ceid.upatras.gr
Mon May 12 09:13:27 EDT 2014


Hello again,

Thanks a lot for the hints, it was very helpful !
I need a little more help.

Here is the steps i followed:

1: Configure MVAMPICH with MIC support
./configure --prefix=/opt/mvapich_icc_mic/ --disable-mcast --disable-fc 
--disable-f77 --host=i686-linux-gnu --build=x86_64-k1om-linux CC=icc 
CXX=icpc CFLAGS=-mmic CXXFLAGS=-mmic 
LDFLAGS='-L/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/ 
-Wl,-rpath,/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/'

2: Compile my code on host machine

/opt/mvapich_icc_mic/bin/mpicc -mmic mpi_hello_world.c 
-L/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/ 
-Wl,-rpath,/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/

3: Copy/Mount libraries on MIC
mount host:/opt/mvapich_icc_mic/ /opt/mvapich_icc_mic/

4: Run on MIC

/opt/mvapich_icc_mic/bin/mpiexec -n 1 ./a.out
librdmacm: couldn't read ABI version.
librdmacm: assuming: 4
CMA: unable to get RDMA device list
Hello world from processor cedar-mic0, rank 0 out of 1 processors

So is this a problem with my MVAPICH setup or with my xeon phi 
configuration?

Hope to figure this out, thanks for the help.

Bye,
Nikos

Στις 2014-05-10 20:03, Jonathan Perkins έγραψε:
> Thanks for the note Nikos.  I think this issue can be fixed by adding
> some LDFLAGS to your configure step of mvapich2.  Can you locate the
> mic (k1om) version of libimf.so on your system?  It should be
> somewhere in your intel compiler installation.
> 
> Using the following location as an example:
> /opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/mic/libimf.so
> 
> You should add the following LDFLAGS to configure:
> LDFLAGS='-L/opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/mic
> -Wl,-rpath,/opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/mic'
> 
> Please also note that CPPFLAGS should not contain -mmic.  That
> variable is used by the c pre-processor and should be used for -I and
> -D settings.  Let us know if this helps.
> 
> On Sat, May 10, 2014 at 11:17 AM, Nikoloutsakos Nikolaos
> <nikoloutsa at ceid.upatras.gr> wrote:
>> Hi,
>> 
>> Im trying to use mvapich with the new intel xeon phi coprocessor.
>> Here is my configure:
>> ./configure --prefix=/opt/mvapich_icc_mic/ --disable-mcast 
>> --disable-fc
>> --disable-f77 --host=i686-linux-gnu --build=x86_64-k1om-linux CC=icc
>> CXX=icpc CFLAGS=-mmic CPPFLAGS=-mmic CXXFLAGS=-mmic
>> 
>> If i try to compile anything with mpicc -mmic
>> i get this error:
>> x86_64-k1om-linux-ld: warning: libimf.so, needed by
>> /opt/mvapich_icc_mic/lib/libmpich.so, not found (try using -rpath or
>> -rpath-link)
>> x86_64-k1om-linux-ld: warning: libsvml.so, needed by
>> /opt/mvapich_icc_mic/lib/libmpich.so, not found (try using -rpath or
>> -rpath-link)
>> x86_64-k1om-linux-ld: warning: libirng.so, needed by
>> /opt/mvapich_icc_mic/lib/libmpich.so, not found (try using -rpath or
>> -rpath-link)
>> x86_64-k1om-linux-ld: warning: libintlc.so.5, needed by
>> /opt/mvapich_icc_mic/lib/libmpich.so, not found (try using -rpath or
>> -rpath-link)
>> 
>> without the -mmic , compilation/run is ok on host machine but i cannot 
>> run
>> the binary on xeon phi.
>> -bash: ./a.out: cannot execute binary file
>> 
>> If anyone has any hints please share.
>> 
>> Thank you,
>> Nikos
>> 
>> 
>> _______________________________________________
>> mvapich-discuss mailing list
>> mvapich-discuss at cse.ohio-state.edu
>> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>> 






More information about the mvapich-discuss mailing list