Out of curiosity, I skip trilinos and install the rest of packages including dealii. However, I got an error when installing dealii:
-- A library with LAPACK API found.
-- Performing Test mpifort_LIBRARY
-- Performing Test mpifort_LIBRARY - Success
-- Performing Test mpi_LIBRARY
-- Performing Test mpi_LIBRARY - Success
-- Performing Test mpigi_LIBRARY
-- Performing Test mpigi_LIBRARY - Success
-- Performing Test dl_LIBRARY
-- Performing Test dl_LIBRARY - Success
-- Performing Test pthread_LIBRARY
-- Performing Test pthread_LIBRARY - Success
-- Performing Test gfortran_LIBRARY
-- Performing Test gfortran_LIBRARY - Success
-- Performing Test m_LIBRARY
-- Performing Test m_LIBRARY - Success
-- Performing Test gcc_s_LIBRARY
-- Performing Test gcc_s_LIBRARY - Success
-- Performing Test gcc_LIBRARY
-- Performing Test gcc_LIBRARY - Success
-- Performing Test quadmath_LIBRARY
-- Performing Test quadmath_LIBRARY - Success
-- Performing Test c_LIBRARY
-- Performing Test c_LIBRARY - Success
-- LAPACK_LIBRARIES: *** Required variable "_lapack_libraries" empty ***
-- LAPACK_LINKER_FLAGS:
-- LAPACK_INCLUDE_DIRS:
-- LAPACK_USER_INCLUDE_DIRS:
-- Could NOT find LAPACK
-- DEAL_II_WITH_LAPACK has unmet external dependencies.
CMake Error at cmake/macros/macro_configure_feature.cmake:112 (MESSAGE):
Could not find the lapack library!
Please ensure that a suitable lapack library is installed on your computer.
If the library is not at a default location, either provide some hints for
autodetection,
$ LAPACK_DIR="..." cmake <...>
$ cmake -DLAPACK_DIR="..." <...>
or set the relevant variables by hand in ccmake.
It seems also happened before (see
here and
here). I tried different setting in MKL and DEAL_CONFOPTS that are mentioned in the posts but none of them work for me. (To link Lapack in stampede2, I referent to
here.)
i.e.
- DEAL_CONFOPTS="-DLAPACK_DIR=${TACC_MKL_DIR}/lib/intel64_lin/libmkl_intel_lp64.so;${TACC_MKL_DIR}/lib/intel64_lin/libmkl_core.so"
- DEAL_CONFOPTS="-DLAPACK_DIR=${TACC_MKL_DIR}"
or in MKL section
- LAPACK_DIR=${TACC_MKL_LIB}
- LAPACK_LIBRARIES="${TACC_MKL_DIR}/lib/intel64_lin/libmkl_intel_lp64.so;${TACC_MKL_DIR}/lib/intel64_lin/libmkl_core.so"
- DLAPACK_LIBRARIES="${TACC_MKL_DIR}/lib/intel64_lin/libmkl_intel_lp64.so;${TACC_MKL_DIR}/lib/intel64_lin/libmkl_core.so"
Any suggestion or comment will be greatly appreciated!
Best,
Jau-Uei Chen