Skip to content

Commit edc877f

Browse files
authored
fix MKL in pyabacus compile according to the newest fix (#4656)
1 parent dbf6cf1 commit edc877f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyabacus/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ if(MKLROOT)
3333
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
3434
add_link_options(${OpenMP_CXX_LIBRARIES})
3535
endif()
36-
find_package(IntelMKL REQUIRED)
36+
find_package(MKL REQUIRED)
3737
add_definitions(-D__MKL)
38-
include_directories(${MKL_INCLUDE_DIRS} ${MKL_INCLUDE_DIRS}/fftw)
38+
include_directories(${MKL_INCLUDE} ${MKL_INCLUDE}/fftw)
3939

4040
# Since libtorch will find its own MKL, the fftw part conflicts with the original one.
4141
# When enable deepks, mkl will be linked within ${TORCH_LIBRARIES}.

0 commit comments

Comments
 (0)