<< gpuBuild sciGPGPU gpuComplex >>

sciGPGPU >> sciGPGPU > gpuClone

gpuClone

Duplicate a matrix stored in GPU memory.

Call sequence

d_B=gpuClone(d_A)

Parameters

d_A

Pointer on the matrix stored in device memory (GPU).

d_B

Pointer on the matrix stored in device memory (GPU).

Description

d_B=gpuClone(d_A)

d_B=gpuClone(d_A) allow users to duplicate a matrix stored in GPU memory.

Exemples

a  = rand(3,5);
da = gpuSetData(a);

db = gpuClone(da);

gpuGetData(da)
gpuGetData(db)

gpuFree(da);
gpuFree(db);

See Also


Report an issue
<< gpuBuild sciGPGPU gpuComplex >>