Skip to content

Commit 500cb84

Browse files
committed
format
Signed-off-by: youkaichao <[email protected]>
1 parent f9ca21b commit 500cb84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ Let's use some code to verify the effectiveness of CUDA core dump.
6161

6262
## Debugging Improper Kernel Launch
6363

64-
```cuda
64+
```cpp
65+
// test.cu
6566
#include <cuda_runtime.h>
6667
#include <stdio.h>
6768
#include <stdlib.h>
@@ -181,6 +182,7 @@ We can clearly see that the exception is caused by `illegalMemoryAccessKernel` a
181182
Here’s a more complex example where an illegal memory access kernel is inserted into a CUDA graph:
182183

183184
```python
185+
# core_dump.py
184186
import torch
185187
import torch.nn as nn
186188

0 commit comments

Comments
 (0)