issp-center-dev / TeNeS

Massively parallel tensor network solver
http://www.pasums.issp.u-tokyo.ac.jp/tenes/en
GNU General Public License v3.0
46 stars 11 forks source link

Comment : Intel MKL error #33

Open TakafumiSuzuki opened 3 years ago

TakafumiSuzuki commented 3 years ago

Old Intel MKL libraries include some bugs for treating complex values, although all tests for the scalapck library can pass. Thus, TeNeS test fails at AF_HFM_complex. It is better to recompile the lapack and blas libraries without the MKL libraries. Then,

modify TeNeS/CMakefile.txt find_package(ScaLAPACK REQUIRED) string(REGEX REPLACE ";" " " SCALAPACK_LIBS "${SCALAPACK_LIBRARIES}") -> find_package(ScaLAPACK REQUIRED) string(REGEX REPLACE ";" " " SCALAPACK_LIBS "${SCALAPACK_LIBRARIES}") set(SCALAPACK_LIBS ${SCALAPACK_LIBRARIES})

and add -DSCALAPACK_LIBRARIES="-L/ -lscalapack [-lgfortran -lifcore]", when you execute cmake.