Reputation: 1
I've been trying to build ngsolve in WSL and I'm facing the following problem, I've installed intel mkl ONEAPI but while executing cmake -DCMAKE_INSTALL_PREFIX=${BASEDIR}/ngsolve-install ${BASEDIR}/ngsolve-src
I get the following error:
CMake Error at /opt/intel/oneapi/mkl/latest/lib/cmake/mkl/MKLConfig.cmake:325 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
cmake/cmake_modules/FindMKL.cmake:36 (find_package)
cmake/SuperBuild.cmake:203 (find_package)
CMakeLists.txt:52 (include)
CMake Warning at cmake/cmake_modules/FindMKL.cmake:36 (find_package):
Found package configuration file:
/opt/intel/oneapi/mkl/latest/lib/cmake/mkl/MKLConfig.cmake
but it set MKL_FOUND to FALSE so package "MKL" is considered to be NOT
FOUND. Reason given by package:
The required variable MKL_ROOT has an invalid value "".
Call Stack (most recent call first):
cmake/SuperBuild.cmake:203 (find_package)
CMakeLists.txt:52 (include)
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find MKL (missing: MKL_INCLUDE_DIR MKL_LIBRARY
MKL_MINIMAL_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/cmake_modules/FindMKL.cmake:151 (find_package_handle_standard_args)
cmake/SuperBuild.cmake:203 (find_package)
CMakeLists.txt:52 (include)
-- Configuring incomplete, errors occurred!
I've tried many solutions on the internet but the folder /opt/intel/oneapi/mkl/latest/lib/cmake/mkl/MKLConfig.cmake
doesn't exist, I followed that path and ends with an empty .txt
at "latest".
Upvotes: 0
Views: 25