Skip to content

Commit

Permalink
Find libopenblas.dll.a on windows
Browse files Browse the repository at this point in the history
"lib" is needed for windows.

With this change, you can build whisper.cpp with OpenBLAS's prebuilt DLL.
1. extract a zip from https://github.com/xianyi/OpenBLAS/releases
2. copy the headers in (openblas)/include to the root directory of whisper.cpp
3. invoke cmake with -DCMAKE_LIBRARY_PATH=(openblas)\lib -DWHISPER_SUPPORT_OPENBLAS=ON
4. copy (openblas)/bin/libopenblas.dll to the same directory of whisper.dll after msbuild

ggerganov/whisper.cpp#89 (comment)
  • Loading branch information
tamo authored and ggerganov committed Nov 23, 2022
1 parent 4f77100 commit faeea32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ if (APPLE AND NOT WHISPER_NO_ACCELERATE)
endif()

if (WHISPER_SUPPORT_OPENBLAS)
find_library(OPENBLAS_LIB openblas)
find_library(OPENBLAS_LIB
NAMES openblas libopenblas
)
if (OPENBLAS_LIB)
message(STATUS "OpenBLAS found")

Expand Down

0 comments on commit faeea32

Please sign in to comment.