From: sandyiscool Date: Tue, 16 May 2023 08:30:15 +0000 (+0530) Subject: Add alternate include path for openblas (#1476) X-Git-Tag: gguf-v0.4.0~752 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2a5ee023ad3022bc0b505343394b9754587fb731;p=pkg%2Fggml%2Fsources%2Fllama.cpp Add alternate include path for openblas (#1476) In some linux distributions (fedora, for example), the include path for openblas is located at '/usr/local/include' --- diff --git a/Makefile b/Makefile index fff4c11d..f9ec8797 100644 --- 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