Duplicate a matrix stored in GPU memory.
d_B=gpuClone(d_A)
Pointer on the matrix stored in device memory (GPU).
Pointer on the matrix stored in device memory (GPU).
d_B=gpuClone(d_A)
allow users to duplicate a matrix
stored in GPU memory.
a = rand(3,5); da = gpuSetData(a); db = gpuClone(da); gpuGetData(da) gpuGetData(db) clear da; clear db; | ![]() | ![]() |