Explorar o código

make: add --device-debug to NVCC debug flags (#7542)

Johannes Gäßler hai 1 ano
pai
achega
10b1e45876
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -441,6 +441,9 @@ endif # JETSON_EOL_MODULE_DETECT
 ifdef LLAMA_DEBUG
 	MK_NVCCFLAGS += -lineinfo
 endif # LLAMA_DEBUG
+ifdef LLAMA_CUDA_DEBUG
+	MK_NVCCFLAGS += --device-debug
+endif # LLAMA_CUDA_DEBUG
 ifdef LLAMA_CUDA_NVCC
 	NVCC = $(CCACHE) $(LLAMA_CUDA_NVCC)
 else