GPU Computing

Accelerate your code by running it on a GPU

If your code is still too slow after you have profiled and vectorized it, you can try to use your computer’s GPU to speed up your calculations. If all the functions that you want to use are supported on the GPU, you can simply use gpuArray to transfer input data to the GPU, and call gather to retrieve the output data from the GPU. For information about supported features and performance for GPU computing in Parallel Computing Toolbox™, see GPU Capabilities and Performance.

Featured Examples

Was this topic helpful?