For models with large model reference hierarchies, you can increase the speed of diagram updates by building in parallel referenced models that are configured to run in accelerator mode. With Parallel Computing Toolbox™ software, you can distribute the code generation and compilation for referenced models across a parallel pool of MATLAB® workers. If you also have MATLAB Parallel Server™ software, you can distribute the code generation and compilation across remote workers in your MATLAB Parallel Server configuration.
To configure parallel building of referenced models:
Open the Configuration Parameters dialog box for the top model of the model hierarchy.
Select the Enable parallel model reference builds check box.
For each MATLAB worker, you can set up a MATLAB environment that is consistent with the MATLAB environment of the client. From the MATLAB worker initialization for builds drop-down list, select one of these values:
None –– Simulink® does not initialize workers.
Copy base workspace –– Simulink attempts to copy the base workspace to each MATLAB worker.
Load top model –– Simulink loads the top model onto each MATLAB worker.
If a parallel pool of MATLAB workers is not running when you update your model, MATLAB automatically opens a parallel pool of workers using the default cluster
profile. To change the default behaviour of the worker cluster, you can modify properties of
the cluster profile. If you have not touched your parallel preferences, the default profile
local. Control parallel behavior with the parallel preferences,
including scaling up to a cluster, automatic pool creation, and preferred number of workers.
For more information, see Discover Clusters and Use Cluster Profiles (Parallel Computing Toolbox).
For more general information about parallel computing, see Run MATLAB Functions with Automatic Parallel Support (Parallel Computing Toolbox).