]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
make: add --device-debug to NVCC debug flags (#7542)
authorJohannes Gäßler <redacted>
Mon, 27 May 2024 17:34:40 +0000 (19:34 +0200)
committerGitHub <redacted>
Mon, 27 May 2024 17:34:40 +0000 (19:34 +0200)
Makefile

index fe63cbd6063aa6e0a63ee6558a14ece27aa0b7f8..5caf31cdf37374c3ed6003b0c6eddbde479d10b3 100644 (file)
--- a/Makefile
+++ b/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