Update Makefile with direct path to openblas for Android devices

the path to openblas libraries within the android file system is located at -I/data/data/com.termux/files/usr/include/openblas
This commit is contained in:
JackJollimore 2023-05-16 10:27:36 -03:00 committed by GitHub
parent 2a5ee023ad
commit 6bc86c95de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ ifndef LLAMA_NO_ACCELERATE
endif endif
endif endif
ifdef LLAMA_OPENBLAS ifdef LLAMA_OPENBLAS
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas -I/data/data/com.termux/files/usr/include/openblas
ifneq ($(shell grep -e "Arch Linux" -e "ID_LIKE=arch" /etc/os-release 2>/dev/null),) ifneq ($(shell grep -e "Arch Linux" -e "ID_LIKE=arch" /etc/os-release 2>/dev/null),)
LDFLAGS += -lopenblas -lcblas LDFLAGS += -lopenblas -lcblas
else else