Main Content

GPU Capabilities and Performance

Capabilities

Parallel Computing Toolbox™ enables you to program MATLAB to use your computer’s graphics processing unit (GPU) for matrix operations. In many cases, execution in the GPU is faster than in the CPU, so this feature might offer improved performance.

Toolbox capabilities with the GPU let you:

Performance Benchmarking

You can usegputimeitto measure the execution time of functions that run on the GPU. For more details, seeMeasure and Improve GPU Performance.

The MATLAB®Central file exchange offers a function called gpuBench, which measures the execution time for various MATLAB GPU tasks and estimates the peak performance of your GPU. See//www.tianjin-qmedu.com/matlabcentral/fileexchange/34080-gpubench.