Skip to content

Commit

Permalink
fix MKL in pyabacus compile according to the newest fix (deepmodeling…
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 authored Jul 11, 2024
1 parent dbf6cf1 commit edc877f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyabacus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down

0 comments on commit edc877f

Please sign in to comment.