Tamotsu Takahashi commited on
Commit
6f7863e
·
1 Parent(s): be06a9b

Find libopenblas.dll.a on windows

Browse files

"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

https://github.com/ggerganov/whisper.cpp/issues/89#issuecomment-1324391258

Files changed (1) hide show
  1. CMakeLists.txt +3 -1
CMakeLists.txt CHANGED
@@ -99,7 +99,9 @@ if (APPLE AND NOT WHISPER_NO_ACCELERATE)
99
  endif()
100
 
101
  if (WHISPER_SUPPORT_OPENBLAS)
102
- find_library(OPENBLAS_LIB openblas)
 
 
103
  if (OPENBLAS_LIB)
104
  message(STATUS "OpenBLAS found")
105
 
 
99
  endif()
100
 
101
  if (WHISPER_SUPPORT_OPENBLAS)
102
+ find_library(OPENBLAS_LIB
103
+ NAMES openblas libopenblas
104
+ )
105
  if (OPENBLAS_LIB)
106
  message(STATUS "OpenBLAS found")
107