<< gpuUseCuda sciGPGPU

sciGPGPU >> sciGPGPU > isGpuPointer

isGpuPointer

Return if the pointer is a GPU pointer or not.

Call sequence

bRes = isGpuPointer(P)

Parameters

P

All Scilab type.

bRes

A boolean.

Description

bRes = isGpuPointer(P)

isGpuPointerreturn true if the input argument is a Cuda or OpenCL pointer.

Exemples

dA = gpuSetData(rand(3,3));
dB = gpuAlloc(5,12);

C = sparse( [ 2  3  0  0  0;
          3  0  4  0  6;
          0 -1 -3  2  0;
          0  0  1  0  0;
          0  4  2  0  1] );
Lup = umf_lufact(C);

isGpuPointer(dA)
isGpuPointer(dB)
isGpuPointer(rand(2,5))
isGpuPointer(list("a","r"))
isGpuPointer(Lup)

dA = gpuFree(dA)
dB = gpuFree(dB)

See Also

<< gpuUseCuda sciGPGPU