I am wondering about how to convert host address to device address in CUDA.
This kind of question is asked several times but I didn’t get the answer.
I just get the main issue (i.e., different address between host and device).
I use structure to array. There is a pointer in the structure.
It means the program uses address.
So I think when I copy from host to device, it incurs copying not right memory address.
Is there any copying method to convert from host address to device address?
Thank you for helping, and hoping that you guy are be happy!