Specify how to initialize MATLAB® workers for parallel builds.
Category: Model Referencing
Default: None
None
Simulink® software takes no action. Specify this value if the child models in the model reference hierarchy do not rely on anything in the base workspace beyond what they explicitly set up (for example, with a model load function).
Copy base workspace
Simulink attempts to copy the base workspace to each MATLAB worker. Specify this value if you use a setup script to prepare the base workspace for all models to use.
Load top model
Simulink loads the top model on each MATLAB worker. Specify this value if the top model in the model reference hierarchy handles all of the base workspace setup (for example, with a model load function).
For values other than None
, limitations
apply to global variables in the base workspace. Global variables
are not propagated across parallel workers and do not reflect changes
made by top and child model scripts.
Selecting the option Enable parallel model reference builds enables this parameter. Parallel building requires Parallel Computing Toolbox™.
Parameter: ParallelModelReferenceMATLABWorkerInit |
Value: 'None' | 'Copy
Base Workspace' | 'Load Top Model' |
Default: 'None' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |