From 64c2115e6d08dd6104652128a875b25deb5a7ee8 Mon Sep 17 00:00:00 2001 From: maki49 <1579492865@qq.com> Date: Fri, 12 Jul 2024 00:42:56 +0800 Subject: [PATCH] fix MKL in pyabacus compile according to the newest fix --- python/pyabacus/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pyabacus/CMakeLists.txt b/python/pyabacus/CMakeLists.txt index 90096faae0..6f50044137 100644 --- a/python/pyabacus/CMakeLists.txt +++ b/python/pyabacus/CMakeLists.txt @@ -33,9 +33,9 @@ if(MKLROOT) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") add_link_options(${OpenMP_CXX_LIBRARIES}) endif() - find_package(IntelMKL REQUIRED) + find_package(MKL REQUIRED) add_definitions(-D__MKL) - include_directories(${MKL_INCLUDE_DIRS} ${MKL_INCLUDE_DIRS}/fftw) + include_directories(${MKL_INCLUDE} ${MKL_INCLUDE}/fftw) # Since libtorch will find its own MKL, the fftw part conflicts with the original one. # When enable deepks, mkl will be linked within ${TORCH_LIBRARIES}.