Verify supported GPU is available for computation
returns a logical value
indicating if there is a GPU available for computation. The function returns logical
tf
= canUseGPU()1
(true
) if there is a supported GPU available, a
recent GPU driver is present, and Parallel
Computing Toolbox™ is installed and licensed for use. Otherwise, the function returns logical
0
(false
).
Using a GPU requires Parallel Computing Toolbox and a CUDA® enabled NVIDIA® GPU with compute capability 3.0 or higher. For more information on supported GPUs, see GPU Support by Release (Parallel Computing Toolbox).