Main Content

GPU Algorithm Acceleration

Accelerate your code using basic GPU computing

To speed up your code, you can try using your computer’s GPU. If all the functions that you want to use are supported on the GPU, you can simply use the gpuArray function to transfer input data to the GPU, and call the gather function to retrieve the output data from the GPU. For deep learning, MATLAB® provides automatic parallel support for multiple GPUs. You need Parallel Computing Toolbox™ to enable GPU support.

For a list of functions that accept GPU arrays, see Function List (GPU Arrays).

Topics

Featured Examples