If I want to make a deep copy of A from Host Ram to Device Ram, I encountered a problem:
cudaMalloc((void**)&a, xxx); //after this line, I can not access “a->b” anymore in my host code, since “a” now is already a device pointer.
Then how can I assign the pointer of the dynamic array on Device Ram to “a->b” ??
Thanks in advance.