Merge dac938391dbe7c03444a6a49a737b257aab520de into 01985c22c050c8713f143343c4ba603829b7a0a0

This commit is contained in:
Greener-Dalii 2025-04-05 20:04:02 +02:00 committed by GitHub
commit e435f5c480
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,12 @@ if (WHISPER_OPENVINO)
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
endif()
if (WHISPER_MKL)
find_package(MKL REQUIRED)
set(MKL_INCLUDE_DIRS "${MKLROOT}/include")
set(MKL_LIBRARIES "${MKLROOT}/lib/intel64")
endif()
#
# libraries
#
@ -134,7 +140,9 @@ if (WHISPER_OPENVINO)
endif()
if (WHISPER_MKL)
target_link_libraries(whisper PRIVATE MKL::MKL)
include_directories(${MKL_INCLUDE_DIRS})
link_directories(${MKL_LIBRARIES})
target_link_libraries(whisper PRIVATE mkl_rt)
endif()
if (BUILD_SHARED_LIBS)