File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,16 @@ MK_NVCCFLAGS = -std=c++11
135
135
ifdef LLAMA_FAST
136
136
MK_CFLAGS += -Ofast
137
137
HOST_CXXFLAGS += -Ofast
138
+ ifndef LLAMA_DEBUG
138
139
MK_NVCCFLAGS += -O3
140
+ endif # LLAMA_DEBUG
139
141
else
140
142
MK_CFLAGS += -O3
141
143
MK_CXXFLAGS += -O3
144
+ ifndef LLAMA_DEBUG
142
145
MK_NVCCFLAGS += -O3
143
- endif
146
+ endif # LLAMA_DEBUG
147
+ endif # LLAMA_FAST
144
148
145
149
ifndef LLAMA_NO_CCACHE
146
150
CCACHE := $(shell which ccache)
@@ -201,9 +205,10 @@ ifdef LLAMA_SCHED_MAX_COPIES
201
205
endif
202
206
203
207
ifdef LLAMA_DEBUG
204
- MK_CFLAGS += -O0 -g
205
- MK_CXXFLAGS += -O0 -g
206
- MK_LDFLAGS += -g
208
+ MK_CFLAGS += -O0 -g
209
+ MK_CXXFLAGS += -O0 -g
210
+ MK_LDFLAGS += -g
211
+ MK_NVCCFLAGS += -O0 -g
207
212
208
213
ifeq ($(UNAME_S),Linux)
209
214
MK_CPPFLAGS += -D_GLIBCXX_ASSERTIONS
You can’t perform that action at this time.
0 commit comments