File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,11 @@ ifndef LLAMA_NO_ACCELERATE
107
107
endif
108
108
ifdef LLAMA_OPENBLAS
109
109
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas
110
- LDFLAGS += -lopenblas
110
+ ifneq ($(shell grep -e "Arch Linux" -e "ID_LIKE=arch" /etc/os-release 2>/dev/null),)
111
+ LDFLAGS += -lopenblas -lcblas
112
+ else
113
+ LDFLAGS += -lopenblas
114
+ endif
111
115
endif
112
116
ifdef LLAMA_CUBLAS
113
117
CFLAGS += -DGGML_USE_CUBLAS -I/usr/local/cuda/include -I/opt/cuda/include -I$(CUDA_PATH)/targets/x86_64-linux/include
Original file line number Diff line number Diff line change @@ -216,7 +216,6 @@ Building the program with BLAS support may lead to some performance improvements
216
216
` ` ` bash
217
217
make LLAMA_OPENBLAS=1
218
218
` ` `
219
- Note: In order to build on Arch Linux with OpenBLAS support enabled you must edit the Makefile adding at the end of the line 105: ` -lcblas`
220
219
221
220
- On Windows:
222
221
You can’t perform that action at this time.
0 commit comments