Commit 050f302
authored
[PTXAS] Fix ptxas lineinfo option (#5705)
Disabling lineinfo in ptxas can be somewhat tricky. If the input PTX
file contains lineinfo, the generated CUBIN will include lineinfo by
default, regardless of whether the `-lineinfo` option is used. To
disable lineinfo in the generated CUBINs, the `-suppress-debug-info`
option must be used in conjunction with `-lineinfo`.
Here also attached an
[test.txt](https://github.com/user-attachments/files/18550903/test.txt)
file. Please rename it to `test.ptx`.
```
ptxas -lineinfo --gpu-name=sm_86 ./test.ptx
nvdisasm -g ./test.ptx # you will still see the lineinfo
```
```
ptxas -suppress-debug-info -lineinfo --gpu-name=sm_86 ./test.ptx
nvdisasm -g ./test.ptx # lineinfo is gone
```1 parent ad1dc65 commit 050f302
File tree
2 files changed
+20
-1
lines changed- python/test/unit/language
- third_party/nvidia/backend
2 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
0 commit comments