Skip to content

Commit 8adea50

Browse files
committed
add tldr
Signed-off-by: youkaichao <[email protected]>
1 parent 6a67c3f commit 8adea50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

_posts/2025-08-11-cuda-debugging.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ image: /assets/logos/vllm-logo-text-light.png
88
TL;DR: If you hit `an illegal memory access was encountered` error, you can enable CUDA core dump to debug the issue. Simply set the following environment variables and run your program again to collect the coredump file, then you can use `cuda-gdb` to debug the issue.
99

1010
```bash
11-
CUDA_ENABLE_COREDUMP_ON_EXCEPTION=1 CUDA_COREDUMP_SHOW_PROGRESS=1 CUDA_COREDUMP_GENERATION_FLAGS='skip_nonrelocated_elf_images,skip_global_memory,skip_shared_memory,skip_local_memory,skip_constbank_memory' CUDA_COREDUMP_FILE="/tmp/cuda_coredump_%h.%p.%t"
11+
CUDA_ENABLE_COREDUMP_ON_EXCEPTION=1 \
12+
CUDA_COREDUMP_SHOW_PROGRESS=1 \
13+
CUDA_COREDUMP_GENERATION_FLAGS='skip_nonrelocated_elf_images,skip_global_memory,skip_shared_memory,skip_local_memory,skip_constbank_memory' \
14+
CUDA_COREDUMP_FILE="/tmp/cuda_coredump_%h.%p.%t"
1215
```
1316

1417
# Introduction

0 commit comments

Comments
 (0)