Shared memory between Host and Device How to access the structures


I’ve an 8800 GTX with me and I have 3 kernels running on the card currently, one after the other.

There are number of structures defined in the C code. There are some structures which need to be accessed by both host and device memory.

Is there any shared memory location where I can allocate these structures so that BOTH - host (CPU) and device (GPU) - can access it.

If yes, then kindly mention how to allocate and access that memory.

Tanmay Anjaria

No, there is no ‘shared’ memory accessible both from host and device.