Main Content

GPU Computing

通过运行在GPU加速您的代码

To speed up your code, first try profiling and vectorizing it. For information, seePerformance and Memory. After profiling and vectorizing, you can also try using 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 usegpuArray来交易nsfer input data to the GPU, and callgatherto retrieve the output data from the GPU. To get started with GPU computing, seeRun MATLAB Functions on a GPU.

For deep learning, MATLAB®provides automatic parallel support for multiple GPUs. SeeDeep Learning with MATLAB on Multiple GPUs(Deep Learning Toolbox).

Categories