I am wondering about the allocation of class.
I want to use the class on the GPU memory.
I allocate space of class on CPU.
And then, I also allocate space of class on GPU.
Finally, copy the class’s data on CPU to GPU.
but there is no class data on GPU… Space of class on GPU is valid.
but after copying from CPU class to GPU class, data is garbage value.
How to use class (CUDA C++) on GPU memory?