Spaces:
Sleeping
Sleeping
Marcin Mielniczuk
commited on
build : fix OpenBLAS detection under Arch Linux (#1173)
Browse files- CMakeLists.txt +1 -0
- Makefile +1 -1
CMakeLists.txt
CHANGED
|
@@ -156,6 +156,7 @@ if (WHISPER_BLAS)
|
|
| 156 |
if(BLAS_FOUND)
|
| 157 |
message(STATUS "BLAS compatible library found")
|
| 158 |
message(STATUS "Libraries ${BLAS_LIBRARIES}")
|
|
|
|
| 159 |
set(WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_USE_OPENBLAS)
|
| 160 |
include_directories(${BLAS_INCLUDE_DIRS})
|
| 161 |
set(WHISPER_EXTRA_LIBS ${WHISPER_EXTRA_LIBS} ${BLAS_LIBRARIES})
|
|
|
|
| 156 |
if(BLAS_FOUND)
|
| 157 |
message(STATUS "BLAS compatible library found")
|
| 158 |
message(STATUS "Libraries ${BLAS_LIBRARIES}")
|
| 159 |
+
find_path(BLAS_INCLUDE_DIRS cblas.h /usr/include/openblas /usr/local/include/openblas $ENV{BLAS_HOME}/include)
|
| 160 |
set(WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_USE_OPENBLAS)
|
| 161 |
include_directories(${BLAS_INCLUDE_DIRS})
|
| 162 |
set(WHISPER_EXTRA_LIBS ${WHISPER_EXTRA_LIBS} ${BLAS_LIBRARIES})
|
Makefile
CHANGED
|
@@ -139,7 +139,7 @@ endif
|
|
| 139 |
endif
|
| 140 |
|
| 141 |
ifdef WHISPER_OPENBLAS
|
| 142 |
-
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas
|
| 143 |
LDFLAGS += -lopenblas
|
| 144 |
endif
|
| 145 |
|
|
|
|
| 139 |
endif
|
| 140 |
|
| 141 |
ifdef WHISPER_OPENBLAS
|
| 142 |
+
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas
|
| 143 |
LDFLAGS += -lopenblas
|
| 144 |
endif
|
| 145 |
|