existsOnGPU
R2026bDetermine if gpuArray or CUDAKernel is available
on GPU
Syntax
Description
tf = existsOnGPU( returns
data)1 (true) if the
gpuArray or CUDAKernel object
data is present on the GPU and available from your
MATLAB® session. Otherwise, it returns 0
(false).
If data is not present on the GPU, data
is no longer valid and cannot be used. Such arrays and kernels are invalidated
when the GPU device has been reset with any of the following:
reset(dev), wheredevis the currentgpuDevice.gpuDevice(ind), whereindis an index in the range1togpuDeviceCount.gpuDevice([]), with an empty argument (as opposed to no argument).
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2012a
See Also
gpuDevice | gpuArray | CUDAKernel | reset