Dear All,
I would like to ask about the lapack library used by alps:

I have a following output:

-- Using intel/mkl library: -L/opt/intel/composer_xe_2011_sp1.7.256/mkl
MKL_PATH_WITH_PREFIX -L/opt/intel/composer_xe_2011_sp1.7.256/mkl
-- Looking for intel/mkl library in /opt/intel/composer_xe_2011_sp1/mkl//lib/intel64;/opt/intel/composer_xe_2011_sp1/mkl//lib/emt;/opt/intel/composer_xe_2011_sp1/mkl//lib/;/opt/intel/composer_xe_2011_sp1/mkl//lib;/opt/intel/composer_xe_2011_sp1.7.256/mkl
Falling back to CMake provied LAPACK/BLAS detection.
-- A library with BLAS API found.
-- A library with BLAS API found.
-- A library with LAPACK API not found. Please specify library location.

(i have uncommented debug messages)

so my mkl is located in: /opt/intel/composer_xe_2011_sp1/mkl//lib/intel64
which is btw the default localtion of mkl library in newer versions of the compiler

in the FindLapack.cmake the lines 61-65 are:

STRING(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" MKL_VERSION "$ENV{MKL_HOME}")
SET(LINK_LAPACK_DEFAULT 1)
IF(${MKL_VERSION} MATCHES "10\\.0\\.[0-2]")
  SET(LINK_LAPACK_DEFAULT 0)
ENDIF(${MKL_VERSION} MATCHES "10\\.0\\.[0-2]")

I think (but I have never ever used cmake in my project) that this lines assume that mkl s installed in a directory that that contains specific version:

/opt/intel/Compiler/11.5.6/mkl  (then MKL_Version becomes 11.5.6)

which is often not the case.

I will try to fix this cmake file as well as I can...

Regards,
Mateusz Lacki