Hi all
I have a problem using the cuda-gdb debugger for an OptiX code running on a RTX3090.
The code execution stops at the breakpoints as expected, but i don’t see any values of the variables in the __device__
kernels.
This is some output from the Debug Console, maybe it’s useful:
random_sample=<error reading variable: Unable to access DWARF register number 21041>
I can also continue the execution and the code stops at the next breakpoint. But if i only step to the next line, i get an error and the code crashes:
cuda-gdb has received a SIGSEGV and will attempt to get its own backtrace.
...bin/cuda-gdb| ?????
...nu/libc.so.6| ?????
This is the launch.json
:
{
"name": "OptiX: Build/Launch",
"type": "cuda-gdb",
"request": "launch",
"program": "${workspaceFolder}/build/bin/optixPlanetaryRaytracer",
"preLaunchTask": "Build",
}
The binaries i compile run both in Debug and Release builds without issues.
Any idea how i can debug this?
I run Driver Version: 560.35.03 CUDA Version: 12.6
on Ubuntu 22.04.05 LTS.
Thanks in advance
Rafael