Return if the pointer is a GPU pointer or not.
bRes = isGpuPointer(P)
All Scilab type.
A boolean.
isGpuPointer
return true if the input argument is a Cuda or OpenCL pointer.
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) | ![]() | ![]() |