Main Content

Acceleration

Accelerate code processing in MATLAB® and Simulink®

To speed up your code while prototyping, you can:

  • Leverage multiple cores or workers by using the parfor function.

  • Transfer data to the GPU by using the gpuArray (Parallel Computing Toolbox) function and then retrieve the output data from the GPU by using the gather (Parallel Computing Toolbox) function. For a list of Communications Toolbox™ features, see Functions and System Objects Supporting GPU Arrays.

  • Run your simulation on a cloud or in a cluster with multiple workers. For more information, see MathWorks Cloud Center (Parallel Computing Toolbox).

Functions

gatherTransfer distributed array, Composite object, or gpuArray object to local workspace
gpuArrayArray stored on GPU
parforParallel for-loop

Topics

Featured Examples