Allow use of OpenCL GPU-based BLAS using ClBlast instead of OpenBLAS for context processing

This commit is contained in:
0cc4m 2023-04-10 09:49:40 +02:00
parent 69b85f5b61
commit c3db99ea32
3 changed files with 134 additions and 9 deletions

View file

@ -96,6 +96,10 @@ ifdef LLAMA_OPENBLAS
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas
LDFLAGS += -lopenblas
endif
ifdef LLAMA_CLBLAST
CFLAGS += -DGGML_USE_CLBLAST
LDFLAGS += -lclblast -lOpenCL
endif
ifdef LLAMA_GPROF
CFLAGS += -pg
CXXFLAGS += -pg