Dear All
I have found the following code in FindLapack.cmake trying to do installation of new alps:
IF($ENV{MKL} MATCHES "mkl") MESSAGE(STATUS "Using intel/mkl library: $ENV{MKL}") #look for the path where the mkl is installed 43: STRING(REGEX MATCHALL "[-][L]([^ ;])+" MKL_PATH_WITH_PREFIX "$ENV{MKL}") STRING(REGEX REPLACE "[-][L]" "" MKL_PATHS ${MKL_PATH_WITH_PREFIX}) ENDIF($ENV{MKL} MATCHES "mkl")
If I assume correctly this code assumes that there is an environment variable dalled MKL which contains something like
"-L/path/to/mkl"
on my platform it is set by default to
"/path/to/mkl"
If I understand it correctly at the line 43, the $MKL gets stripped of "-L" part and the ${MKL_PATH_WITH_PREFIX} then will contain just "/path/to/mkl".
I think that perhaps some sort of conditional clause could be added so that
both
$MKL = /path/to/mkl and $MKL = -L/path/to/mkl
worked.
Regards, Mateusz Lacki
Dear Mateusz,
Which version of ALPS are you using? The FindLapack has been substantially improved, but it's not yet in an official release. (available in nightly builds)
In case you are using the 2.1.1 official release I redirect you to your previous post:
https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/2012/001919.html
Regards, Michele
-- ETH Zurich Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 25, 2013, at 3:16 PM, Mateusz Łącki mateusz.lacki@gmail.com wrote:
Dear All
I have found the following code in FindLapack.cmake trying to do installation of new alps:
IF($ENV{MKL} MATCHES "mkl") MESSAGE(STATUS "Using intel/mkl library: $ENV{MKL}") #look for the path where the mkl is installed 43: STRING(REGEX MATCHALL "[-][L]([^ ;])+" MKL_PATH_WITH_PREFIX "$ENV{MKL}") STRING(REGEX REPLACE "[-][L]" "" MKL_PATHS ${MKL_PATH_WITH_PREFIX}) ENDIF($ENV{MKL} MATCHES "mkl")
If I assume correctly this code assumes that there is an environment variable dalled MKL which contains something like
"-L/path/to/mkl"
on my platform it is set by default to
"/path/to/mkl"
If I understand it correctly at the line 43, the $MKL gets stripped of "-L" part and the ${MKL_PATH_WITH_PREFIX} then will contain just "/path/to/mkl".
I think that perhaps some sort of conditional clause could be added so that
both
$MKL = /path/to/mkl and $MKL = -L/path/to/mkl
worked.
Regards, Mateusz Lacki
I use version 2.1.1
Oh thank you. I will use the Findlapack from the newest builds.
This also solves my second email.
Regards, Mateusz Lacki
2013/1/25 Michele Dolfi dolfim@phys.ethz.ch
Dear Mateusz,
Which version of ALPS are you using? The FindLapack has been substantially improved, but it's not yet in an official release. (available in nightly builds)
In case you are using the 2.1.1 official release I redirect you to your previous post:
https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/2012/001919.html
Regards, Michele
-- ETH Zurich Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 25, 2013, at 3:16 PM, Mateusz Łącki mateusz.lacki@gmail.com wrote:
Dear All
I have found the following code in FindLapack.cmake trying to do installation of new alps:
IF($ENV{MKL} MATCHES "mkl") MESSAGE(STATUS "Using intel/mkl library: $ENV{MKL}") #look for the path where the mkl is installed 43: STRING(REGEX MATCHALL "[-][L]([^ ;])+" MKL_PATH_WITH_PREFIX "$ENV{MKL}") STRING(REGEX REPLACE "[-][L]" "" MKL_PATHS ${MKL_PATH_WITH_PREFIX}) ENDIF($ENV{MKL} MATCHES "mkl")
If I assume correctly this code assumes that there is an environment variable dalled MKL which contains something like
"-L/path/to/mkl"
on my platform it is set by default to
"/path/to/mkl"
If I understand it correctly at the line 43, the $MKL gets stripped of "-L" part and the ${MKL_PATH_WITH_PREFIX} then will contain just "/path/to/mkl".
I think that perhaps some sort of conditional clause could be added so that
both
$MKL = /path/to/mkl and $MKL = -L/path/to/mkl
worked.
Regards, Mateusz Lacki
Dear Michele, I am still having problems with detecing lapack. I am uging FindLapack.cmake from nightly builds (I have just downlaoded it). I am not sure if this file is "final". If that is the case:
line set(LAPACK_LIBRARY ${MKL_LIBRARY_PATH} ${MKL_INTERFACE} ${MKL_CORE} ${CMAKE_THREAD_LIBS_INIT} -lm)
sets variable LAPACK_LIBRARY to -L/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm
but still I get "MKL was detected but I'm not able to use it."
the folder: /opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64
contains the following files in particular: libmkl_intel_lp64.so libmkl_sequential.so libmkl_core.so
so I think it should work. On the other hand I have:
-- A library with BLAS API found. -- A library with BLAS API found. -- A library with LAPACK API found. -- LAPACK DEBUG::LAPACK_LIBRARY = /opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64/libmkl_gf_lp64.so;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64/libmkl_intel_thread.so;/opt/intel/composer_xe_2011_sp1.7.256/mkl/lib/intel64/libmkl_core.so;/opt/intel/composer_xe_2011_sp1.7.256/compiler/lib/intel64/libiomp5.so;-lpthread;-lm
So at this point this is not bad at all..
nevertheless I wish to report this warning.
Regards, Mateusz Lacki
2013/1/25 Michele Dolfi dolfim@phys.ethz.ch
Dear Mateusz,
Which version of ALPS are you using? The FindLapack has been substantially improved, but it's not yet in an official release. (available in nightly builds)
In case you are using the 2.1.1 official release I redirect you to your previous post:
https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/2012/001919.html
Regards, Michele
-- ETH Zurich Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 25, 2013, at 3:16 PM, Mateusz Łącki mateusz.lacki@gmail.com wrote:
Dear All
I have found the following code in FindLapack.cmake trying to do installation of new alps:
IF($ENV{MKL} MATCHES "mkl") MESSAGE(STATUS "Using intel/mkl library: $ENV{MKL}") #look for the path where the mkl is installed 43: STRING(REGEX MATCHALL "[-][L]([^ ;])+" MKL_PATH_WITH_PREFIX "$ENV{MKL}") STRING(REGEX REPLACE "[-][L]" "" MKL_PATHS ${MKL_PATH_WITH_PREFIX}) ENDIF($ENV{MKL} MATCHES "mkl")
If I assume correctly this code assumes that there is an environment variable dalled MKL which contains something like
"-L/path/to/mkl"
on my platform it is set by default to
"/path/to/mkl"
If I understand it correctly at the line 43, the $MKL gets stripped of "-L" part and the ${MKL_PATH_WITH_PREFIX} then will contain just "/path/to/mkl".
I think that perhaps some sort of conditional clause could be added so that
both
$MKL = /path/to/mkl and $MKL = -L/path/to/mkl
worked.
Regards, Mateusz Lacki
comp-phys-alps-users@lists.phys.ethz.ch