ggml : better PERF prints + support "LLAMA_PERF=1 make"

This commit is contained in:
Georgi Gerganov
2023-04-23 18:15:39 +03:00
parent 53c8434398
commit e4422e299c
3 changed files with 9 additions and 3 deletions

View File

@@ -117,6 +117,10 @@ ifdef LLAMA_GPROF
CFLAGS += -pg
CXXFLAGS += -pg
endif
ifdef LLAMA_PERF
CFLAGS += -DGGML_PERF
CXXFLAGS += -DGGML_PERF
endif
ifneq ($(filter aarch64%,$(UNAME_M)),)
CFLAGS += -mcpu=native
CXXFLAGS += -mcpu=native