Skip to content

Commit 10b1e45

Browse files
make: add --device-debug to NVCC debug flags (#7542)
1 parent 197c006 commit 10b1e45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,9 @@ endif # JETSON_EOL_MODULE_DETECT
441441
ifdef LLAMA_DEBUG
442442
MK_NVCCFLAGS += -lineinfo
443443
endif # LLAMA_DEBUG
444+
ifdef LLAMA_CUDA_DEBUG
445+
MK_NVCCFLAGS += --device-debug
446+
endif # LLAMA_CUDA_DEBUG
444447
ifdef LLAMA_CUDA_NVCC
445448
NVCC = $(CCACHE) $(LLAMA_CUDA_NVCC)
446449
else

0 commit comments

Comments
 (0)