Update Makefile var + add comment

This commit is contained in:
Georgi Gerganov 2023-03-11 12:26:16 +02:00
parent a5c5ae2f54
commit 7211862c94
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
2 changed files with 10 additions and 4 deletions

View file

@ -125,18 +125,18 @@ ifneq ($(filter ppc64%,$(UNAME_M)),)
CXXFLAGS += -std=c++23 -DGGML_BIG_ENDIAN
endif
endif
ifndef WHISPER_NO_ACCELERATE
ifndef LLAMA_NO_ACCELERATE
# Mac M1 - include Accelerate framework
ifeq ($(UNAME_S),Darwin)
CFLAGS += -DGGML_USE_ACCELERATE
LDFLAGS += -framework Accelerate
endif
endif
ifdef WHISPER_OPENBLAS
ifdef LLAMA_OPENBLAS
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas
LDFLAGS += -lopenblas
endif
ifdef WHISPER_GPROF
ifdef LLAMA_GPROF
CFLAGS += -pg
CXXFLAGS += -pg
endif