]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Add alternate include path for openblas (#1476)
authorsandyiscool <redacted>
Tue, 16 May 2023 08:30:15 +0000 (14:00 +0530)
committerGitHub <redacted>
Tue, 16 May 2023 08:30:15 +0000 (10:30 +0200)
In some linux distributions (fedora, for example), the include path for openblas is located at '/usr/local/include'

Makefile

index fff4c11d1819580aa8c86ecdb2b12b502f679d2d..f9ec8797a40dcd355d00e18c9d28a0f472db5cb6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -115,7 +115,7 @@ ifndef LLAMA_NO_ACCELERATE
        endif
 endif
 ifdef LLAMA_OPENBLAS
-       CFLAGS  += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas
+       CFLAGS  += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas
        ifneq ($(shell grep -e "Arch Linux" -e "ID_LIKE=arch" /etc/os-release 2>/dev/null),)
                LDFLAGS += -lopenblas -lcblas
        else