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

@ -301,7 +301,7 @@ if (LLAMA_METAL)
set(GGML_SOURCES_METAL ggml-metal.m ggml-metal.h)
add_compile_definitions(GGML_USE_METAL)
add_compile_definitions(GGML_METAL_NDEBUG)
#add_compile_definitions(GGML_METAL_NDEBUG)
# get full path to the file
#add_compile_definitions(GGML_METAL_DIR_KERNELS="${CMAKE_CURRENT_SOURCE_DIR}/")