Search code examples
cudaconstantscuda-gdb

Cuda gdb print constant


I am in cuda-gdb, I can use ((@global float *)array)[0]

but how to use constant memory in gdb ?

I try ((@parameter float *)const_array)

I declared const_array like this : __constant__ float const_array[1 << 14]

I tried with 1 << 5, and it's the same problem.


Solution

  • Try putting you __constant__ into .cuh, then use as a classic C global variable.