File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,15 @@ ifeq ($(UNAME_S),Haiku)
74
74
CXXFLAGS += -pthread
75
75
endif
76
76
77
+ ifdef LLAMA_GPROF
78
+ CFLAGS += -pg
79
+ CXXFLAGS += -pg
80
+ endif
81
+ ifdef LLAMA_PERF
82
+ CFLAGS += -DGGML_PERF
83
+ CXXFLAGS += -DGGML_PERF
84
+ endif
85
+
77
86
# Architecture specific
78
87
# TODO: probably these flags need to be tweaked on some architectures
79
88
# feel free to update the Makefile for your architecture and send a pull request or issue
@@ -135,14 +144,6 @@ ifdef LLAMA_CLBLAST
135
144
ggml-opencl.o : ggml-opencl.c ggml-opencl.h
136
145
$(CC ) $(CFLAGS ) -c $< -o $@
137
146
endif
138
- ifdef LLAMA_GPROF
139
- CFLAGS += -pg
140
- CXXFLAGS += -pg
141
- endif
142
- ifdef LLAMA_PERF
143
- CFLAGS += -DGGML_PERF
144
- CXXFLAGS += -DGGML_PERF
145
- endif
146
147
ifneq ($(filter aarch64% ,$(UNAME_M ) ) ,)
147
148
# Apple M1, M2, etc.
148
149
# Raspberry Pi 3, 4, Zero 2 (64-bit)
You can’t perform that action at this time.
0 commit comments