whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Fix MKL build issue by correctly finding and linking MKL libraries

Open green-dalii opened this issue 7 months ago • 4 comments

Fix MKL Build Issue

Description

This pull request fixes an issue with building whisper.cpp using Intel MKL. The changes ensure that CMake correctly finds and links the MKL libraries.

Changes Made

  • Added find_package(MKL REQUIRED) to locate MKL.
  • Set MKL_INCLUDE_DIRS and MKL_LIBRARIES to ensure proper include and link paths.
  • Included MKL headers and libraries only if WHISPER_MKL is enabled.

Testing

Successfully built whisper.cpp with the MKL option enabled on an Intel Xeon CPU without GPU.

Related Issues

Fixes # (if applicable)

green-dalii avatar Jul 01 '24 08:07 green-dalii