Page 1 of 1
Intel mkl library
Posted: Tue Mar 27, 2012 5:45 am
by paulfons
I have compiled abinit under opensuse 11.4 using the intel compilers and openmpi without error. I would like to use the intel mpi libraries I have (they are more efficient when used with Wien2K at least in my experience), but I am unsure how to go about doing so. The problem stems from the intel naming convention for its mkl libraries. The "usual" naming mpif90 and mpicc point within the intel mpi system use the gcc compilers. There are alternative version of the mpi command for intel's mpi wrappers, namely mpiifort and mpiicc. How can I get abinit to use these wrappers instead of the usual mpif90 wrappers which use the gcc compiler?
Re: Intel mkl library
Posted: Tue Mar 27, 2012 9:00 pm
by jbeuken
Hi,
I have not yet the opportunity to test the version of mph with Intel Composer XE 2011...
but, in the "IntelĀ® Math Kernel Library Link Line Advisor" (
http://software.intel.com/en-us/article ... e-advisor/),
you can find all infos needed and among other things, the compilation option to use with fort to activate the mph
you must set the environment with :
Code: Select all
source /opt/intel/bin/compilervars.sh intel64
to link with the right libraries and you can even find the mpiexec :
[beuken@tikal intel]# which mpiexec
/opt/intel/composer_xe_2011_sp1.7.256/mpirt/bin/intel64/mpiexec
good luck...
regards
jmb
Re: Intel mkl library
Posted: Wed Mar 28, 2012 4:08 am
by paulfons
Thank you for your comments on use of the Intel mpi library. I am afraid I was a little unclear, I am using the Intel already successfully (in particular with the Wien2K code -- and it appears to be more efficient than openmpi 1.4.3). I thus know the correct flags (obtained from the linker helper you forwarded). The problem I am facing is the configure of abinit. How do I get it to use the ifort and icc compilers with mpi and not the gcc ones -- e.g. if one uses the ./configure --with-mpi-prefix=/opt/intel/impi/4.0.4/ option, abinit will compile with the gcc compilers (it doesn't know to use the mpiifort and mpiicc versions of the wrappers). Is there a straightforward way to fix this with ./configure options?
Thanks,
Paul Fons
Re: Intel mkl library
Posted: Wed Mar 28, 2012 4:55 pm
by pouillon
From Abinit 6.12.2, you may set --with-mpi-prefix and CC, CXX, FC at the same time. Just set the compilers to the executables you want the MPI wrappers to use. If your MPI installation allows it, which you can easily check by typing:
, you'll be able to build Abinit with any kind of compiler.
This new feature of the build system still lacks robustness, but I'm already using it successfully with the MPI implementation of Bull (I originally implemented this feature for this particular case).
Re: Intel mkl library
Posted: Thu Mar 29, 2012 1:16 am
by paulfons
Thank you for your post. I shall give it a try.
Paul
Re: Intel mkl library compiled
Posted: Thu Mar 29, 2012 8:56 am
by paulfons
I tried the switches as suggested to specify the ifort and icc compilers and abinit 6.12.12 compiled without problems and passed all of the tests I have run so far. Now if I could get the version for the mac working I would be happy.