Problems builing elemental with Intel MKL

62 views
Skip to first unread message

agra...@gfz-potsdam.de

unread,
Dec 23, 2012, 12:06:13 PM12/23/12
to element...@googlegroups.com
Hello!

I'm trying to build Elemental on cluster using Intel Compiler + Intel MKL + IntelMPI toolchain. 

Using following cmake command:
cmake -D CMAKE_INSTALL_PREFIX=/home/ag/lib/elemental -D CMAKE_CXX_COMPILER=mpiicc -D CMAKE_C_COMPILER=mpiicc -D CMAKE_Fortran_COMPILER=mpiifort -D MATH_LIBS="-L/usr/local/opt/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lm" ..

I end up with error:
-- Using user-defined MATH_LIBS=-L/usr/local/opt/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lm
-- Looking for daxpy
-- Looking for daxpy - not found
-- Looking for daxpy_
-- Looking for daxpy_ - not found
CMake Error at CMakeLists.txt:316 (message):
  Could not determine BLAS format.

At the same time nm tells me there is BLAS:
elemental/build> nm /usr/local/opt/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64/libmkl_intel_lp64.so | grep daxpy                                                                                                                 0000000000113b70 T cblas_daxpy
0000000000113bb0 T cblas_daxpyi
0000000000103c30 T daxpy
0000000000103c30 T daxpy_
0000000000100540 T daxpyi
0000000000100540 T daxpyi_
                 U mkl_blas_daxpy
                 U mkl_blas_daxpyi

Any ideas why cmake can not find BLAS?

Thanks. 

Jeff Hammond

unread,
Feb 7, 2013, 3:36:44 PM2/7/13
to element...@googlegroups.com
Can you post CMakeFiles/CMakeError.log?  I suspect that you just didn't provide a sufficient set of MKL libs, which is easy to do because Intel makes it as hard as possible to link MKL.

Thanks,

Jeff

Jack Poulson

unread,
Feb 7, 2013, 3:50:13 PM2/7/13
to Jeff Hammond, element...@googlegroups.com
Hi Jeff,

This question was actually answered here:
https://groups.google.com/forum/?fromgroups=#!topic/elemental-maint/ghgc_RrZXXg

There was a bit of confusion because I had just created elemental-maint.

Jack

--
You received this message because you are subscribed to the Google Groups "elemental-maint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elemental-mai...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jeff Hammond

unread,
Feb 7, 2013, 3:52:59 PM2/7/13
to Jack Poulson, element...@googlegroups.com
Yeah, I saw that too late. I do not understand why the subject changed.

Jeff
--
Jeff Hammond
jeff.s...@gmail.com
Reply all
Reply to author
Forward
0 new messages