Closed stephen-hqxu closed 3 years ago
Now the copy of the class that is going to be copied to device will be kept at host side, to retain the deivce pointer inside.
There are some more improvements about the usage of pointer. I will try to cut down the number pointer used in-class to avoid troubles of memory leaks and implementations of explicit constructors #3.
Currently
cudaMemcpy
.cudaMemcpy
only makes shallow-copy.Suggestion
cudaMemallocManaged
.