troubleshoot rapid accelerator build process

33 views (last 30 days)
Ryan Caveney
Ryan Caveney on 3 Oct 2024
Answered: Supraja on 4 Nov 2024 at 14:38
I have a Simulink model I run routinely in rapid accelerator mode. My problem is the build process is strangely inconsistent. Sometimes, when I call Simulink.BlockDiagram.buildRapidAcceleratorTarget, everything goes smoothly, and builds all in one call. Other times, the same call only builds one sub-model at a time, and raises an error, but eventually succeeds when I up-arrow and hit return on the same build command, 16 times in a row. I am trying to figure out what Simulink and I are doing differently in the two cases, but I am just not seeing it.
My most recent clue is the file build times. When all is well, the overall build process from a blank slate takes about 5 minutes. When I look at the times from a build that went poorly, mexa64 files and slxc files are interleaved, one of each for each sub-model. When I look at the times from a build that went smoothly, all 16 mexa64 files are older than all of the slxc files.
Can anyone tell me what might be causing rapid accelerator to only sometimes build all the mexas first, or how I can convince it to do that every time?

Answers (1)

Supraja
Supraja on 4 Nov 2024 at 14:38
Hello,
I understand that you are observing difference in behavior while using the command '' in MATLAB.
Refer to the documentation here for more info and possible workarounds:
If these does not help, let me know the code which you are using.
I hope this helps!

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!