Skip to content

Commit faeea32

Browse files
tamoggerganov
authored andcommitted
Find libopenblas.dll.a on windows
"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 ggml-org/whisper.cpp#89 (comment)
1 parent 4f77100 commit faeea32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ if (APPLE AND NOT WHISPER_NO_ACCELERATE)
9999
endif()
100100

101101
if (WHISPER_SUPPORT_OPENBLAS)
102-
find_library(OPENBLAS_LIB openblas)
102+
find_library(OPENBLAS_LIB
103+
NAMES openblas libopenblas
104+
)
103105
if (OPENBLAS_LIB)
104106
message(STATUS "OpenBLAS found")
105107

0 commit comments

Comments
 (0)