Why do all variant models build in accelerator mode when generate preprocessor conditionals is selected?

I want to run my model reference variants in accelerator mode. When I compile the parent model, I only want the variants selected by the variant conditions to be built. However, when 'Generate preprocessor conditionals' is turned on, all the variant models are built. The documentation here
states that this setting should only be relevant for code generation. I do want Simulink to generate all the variant code for code generation, but not for accelerator mode. Is this a bug or does accelerator mode somehow fall under code generation even though it is a different license?
I've tested this with the rtwdemo_preprocessor.mdl example for reference and see this behavior there as well.
Thanks, Chris

 채택된 답변

Update: Mathworks confirmed that this appears to be a bug. They noted one workaround is to set the active model reference to normal mode, which will prevent the other variants from building even if they are in accelerator mode.

추가 답변 (0개)

카테고리

질문:

2014년 2월 27일

답변:

2014년 2월 28일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by