metal : add option to disable debug logs (close #2764)

This commit is contained in:
Georgi Gerganov 2023-08-29 11:33:46 +03:00
parent 611363ac79
commit 3a007648f2
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
3 changed files with 35 additions and 40 deletions

View file

@ -305,7 +305,7 @@ ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
endif # LLAMA_HIPBLAS
ifdef LLAMA_METAL
CFLAGS += -DGGML_USE_METAL -DGGML_METAL_NDEBUG
CFLAGS += -DGGML_USE_METAL #-DGGML_METAL_NDEBUG
CXXFLAGS += -DGGML_USE_METAL
LDFLAGS += -framework Foundation -framework Metal -framework MetalKit
OBJS += ggml-metal.o