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.
Since it happens in an OptiX application it is a little bit harder to provide a mini-repro code because the OptiX headers are needed. However, the problem occurs in the OptiX Examples that are shipped with the OptiX SDK by NVIDIA. For example, the optixTriangle example when built in Debug mode.
In this example, I set a breakpoint in the __raygen_rg() program in the optixTriangle.cu file.
I cannot inspect any variables.
Thanks for reporting this. We have identified it is the same issue as an internal bug we tracked.
And this requires support from compiler.
Our dev will work on it. Anything update, I will let you know.
@agontarek I just updated to Driver Version: 570.86.15 CUDA Version: 12.8 and OptiX SDK 9.0.0. The issue of the missing local variables when debugging device code with cuda-gdb still persists.