Dear All, I heve succesfull debugged cmake's failure to properly set up my mkl. I use the newest Intel suite there is, and I had lots of errors when trying to link with it.
In config/FindLapack.cmake there was:
SET(MKL_PATHS $ENV{MKL_HOME}/lib/em${QMC_BITS}t $ENV{MKL_HOME}/lib/${QMC_BITS} $ENV{MKL_HOME}/lib ${MKL_PATHS} )
after changing to: $ENV{MKL_HOME}/lib/intel64${QMC_BITS} $ENV{MKL_HOME}/lib/em${QMC_BITS}t $ENV{MKL_HOME}/lib/${QMC_BITS} $ENV{MKL_HOME}/lib ${MKL_PATHS} )
as well as: STRING(REGEX MATCHALL "[-][L]([^ ;])+" MKL_PATH_WITH_PREFIX "$ENV{MKL}") should be modified to make it possible to build successfully when
MKL does not contain "-L" just before the path
First change is needed because new mkl versions contain libs in $MKL/lib/intel64 (here $MKL also does not include -L)
Regards, Mateusz Lacki
On Nov 22, 2011, at 2:23 PM, Mateusz Łącki wrote:
Dear All, I heve succesfull debugged cmake's failure to properly set up my mkl. I use the newest Intel suite there is, and I had lots of errors when trying to link with it.
In config/FindLapack.cmake there was:
SET(MKL_PATHS $ENV{MKL_HOME}/lib/em${QMC_BITS}t $ENV{MKL_HOME}/lib/${QMC_BITS} $ENV{MKL_HOME}/lib ${MKL_PATHS} )
after changing to: $ENV{MKL_HOME}/lib/intel64${QMC_BITS} $ENV{MKL_HOME}/lib/em${QMC_BITS}t $ENV{MKL_HOME}/lib/${QMC_BITS} $ENV{MKL_HOME}/lib ${MKL_PATHS} )
Changed.
as well as: STRING(REGEX MATCHALL "[-][L]([^ ;])+" MKL_PATH_WITH_PREFIX "$ENV{MKL}") should be modified to make it possible to build successfully when
MKL does not contain "-L" just before the path
First change is needed because new mkl versions contain libs in $MKL/lib/intel64 (here $MKL also does not include -L)
Shouldn't that statement match -L only optionally and then remove it if present? How did you have to change it to work?
Matthias
comp-phys-alps-users@lists.phys.ethz.ch