aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-05-13 17:25:09 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-05-13 17:25:09 +0300
commitbda4d7c215aa16b2a78e522521dfc0e1c2e8b194 (patch)
treee71acfe7707f0a017a01176ff0dd200744874394 /Makefile
parent5a5aeb1e91009c72bf816400b758bb8a305616d7 (diff)
make : fix PERF build with cuBLAS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 0ddff99..fff4c11 100644
--- a/Makefile
+++ b/Makefile
@@ -74,6 +74,15 @@ ifeq ($(UNAME_S),Haiku)
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
@@ -135,14 +144,6 @@ ifdef LLAMA_CLBLAST
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)