摘要 |
PROBLEM TO BE SOLVED: To provide a technique that can accelerate execution parallelized on multi processors or multiple cores, by well-balanced segmentation of a code of a model.SOLUTION: Blocks with internal states and blocks without any outputs among functional blocks included in a block diagram describing a model are focused on, and segments consisting of sets of blocks needed to calculate inputs to each block with an internal state and each block without any outputs are extracted by traversing a graph from the blocks with internal states and the blocks without any outputs in the opposite direction of the dependencies, where blocks can be duplicated among segments. Next, the segments are merged to reduce duplication, and the number of segments is reduced to a number for parallel execution. Here, the duplication between the segments is reduced by merging segments with many of the same blocks, and the number for parallel execution is typically the number of available cores or processors. |