Relative Content

Tag Archive for cudagpu

Understanding use of cudaGetSymbolAddress in CUDA to copy nested structure

I have a nested data structure which is stored on both host and device. I would like to copy the relevant inner field from host to device. Assume I have done all the allocations correct. Then, I would need the address of the innermost member on the device side (which I am obtaining via a kernel launch) and then storing this address into a dummy variable (which I am doing via cudaGetSymbolAddress) and then performing the copy (through cudaMemcpy). However, it doesn’t seem to work. The following is a snippet of the code: