Skip to content

Commit cbc3dd7

Browse files
authored
build : fix OpenBLAS detection under Arch Linux (ggml-org#1173)
1 parent 134ca10 commit cbc3dd7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ if (WHISPER_BLAS)
156156
if(BLAS_FOUND)
157157
message(STATUS "BLAS compatible library found")
158158
message(STATUS "Libraries ${BLAS_LIBRARIES}")
159+
find_path(BLAS_INCLUDE_DIRS cblas.h /usr/include/openblas /usr/local/include/openblas $ENV{BLAS_HOME}/include)
159160
set(WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DGGML_USE_OPENBLAS)
160161
include_directories(${BLAS_INCLUDE_DIRS})
161162
set(WHISPER_EXTRA_LIBS ${WHISPER_EXTRA_LIBS} ${BLAS_LIBRARIES})

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ endif
139139
endif
140140

141141
ifdef WHISPER_OPENBLAS
142-
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas
142+
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas
143143
LDFLAGS += -lopenblas
144144
endif
145145

0 commit comments

Comments
 (0)