Hi Alex,
How to link MKL tends to change periodically and it is best to start from the recommendation from their link line advisor:
http://software.intel.com/sites/products/mkl/
If BLAS still cannot be linked properly, then the reason will be given towards the bottom of CMakeFiles/CMakeError.log. You will likely need to specify a Fortran library or two.
Jack
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 foundCMake 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_daxpy0000000000113bb0 T cblas_daxpyi0000000000103c30 T daxpy0000000000103c30 T daxpy_0000000000100540 T daxpyi0000000000100540 T daxpyi_U mkl_blas_daxpyU mkl_blas_daxpyiAny ideas why cmake can not find BLAS?Thanks.--
cmake -D MATH_LIBS="/home/yashar/flame/lib/ ;-L/home/yashar/ATLAS3.10/lib -llapack -lblas -lm" CMAKE_INSTALL_PREFIX=/home/yashar ..
cmake -D MATH_LIBS="/home/yashar/flame/lib/ ;-L/home/yashar/Elemental/GotoBLAS2 -llapack -lblas -lm" CMAKE_INSTALL_PREFIX=/home/yashar ..