User`s guide

10 Objects — Alphabetical List
10-14
GPUDevice
Graphics processing unit (GPU)
Constructor
gpuDevice
Description
A GPUDevice object represents a graphic processing unit (GPU) in your computer. You
can use the GPU to execute CUDA kernels or MATLAB code.
Methods
The following functions let you identify, select, reset, or wait for a GPU device:
Methods of the class include the following:
Method Name Description
parallel.gpu.GPUDevice.isAvailable(idx) True if the GPU specified by index idx is
supported and capable of being selected.
idx can be an integer or a vector of
integers; the default index is the current
device.
parallel.gpu.GPUDevice.getDevice(idx) Returns a GPUDevice object without
selecting it.
For the complete list, use the methods function on the GPUDevice class:
methods('parallel.gpu.GPUDevice')
You can get help on any of the class methods with the command
help parallel.gpu.GPUDevice.methodname