GPU Computing
通过运行在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 usegpuArray
to transfer input data to the GPU, and callgather
to retrieve the output data from the GPU. For information about supported features and performance for GPU computing in Parallel Computing Toolbox™, seeGPU Capabilities and Performance.
Frequently Viewed Topics
- GPU Computing in MATLAB
Accelerate your code using basic GPU computing - GPU CUDA and MEX Programming
Further accelerate your code using advanced GPU CUDA and MEX programming
Featured Examples
Was this topic helpful?