troubleshoot rapid accelerator build process
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?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? 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? rapid accelerator MATLAB Answers — New Questions