Skip to content

Commit bda4d7c

Browse files
committed
make : fix PERF build with cuBLAS
1 parent 5a5aeb1 commit bda4d7c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ ifeq ($(UNAME_S),Haiku)
7474
CXXFLAGS += -pthread
7575
endif
7676

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+
7786
# Architecture specific
7887
# TODO: probably these flags need to be tweaked on some architectures
7988
# feel free to update the Makefile for your architecture and send a pull request or issue
@@ -135,14 +144,6 @@ ifdef LLAMA_CLBLAST
135144
ggml-opencl.o: ggml-opencl.c ggml-opencl.h
136145
$(CC) $(CFLAGS) -c $< -o $@
137146
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
146147
ifneq ($(filter aarch64%,$(UNAME_M)),)
147148
# Apple M1, M2, etc.
148149
# Raspberry Pi 3, 4, Zero 2 (64-bit)

0 commit comments

Comments
 (0)