CXXFLAGS += -pthread
endif
+ifdef LLAMA_GPROF
+ CFLAGS += -pg
+ CXXFLAGS += -pg
+endif
+ifdef LLAMA_PERF
+ CFLAGS += -DGGML_PERF
+ CXXFLAGS += -DGGML_PERF
+endif
+
# Architecture specific
# TODO: probably these flags need to be tweaked on some architectures
# feel free to update the Makefile for your architecture and send a pull request or issue
ggml-opencl.o: ggml-opencl.c ggml-opencl.h
$(CC) $(CFLAGS) -c $< -o $@
endif
-ifdef LLAMA_GPROF
- CFLAGS += -pg
- CXXFLAGS += -pg
-endif
-ifdef LLAMA_PERF
- CFLAGS += -DGGML_PERF
- CXXFLAGS += -DGGML_PERF
-endif
ifneq ($(filter aarch64%,$(UNAME_M)),)
# Apple M1, M2, etc.
# Raspberry Pi 3, 4, Zero 2 (64-bit)