发明名称 Automatic generation of domain-aware phase ordering for effective optimization of code for a model
摘要 A device receives a model, in a technical computing environment, that includes blocks and lines, and determines an application domain associated with the model. The device determines code generation optimizations for the model, determines dependencies of the code generation optimizations, and determines performance characteristics for the device. The device determines capabilities of a target compiler for the code generated based on the model, and determines a profile for target hardware to be used to execute the code. The device identifies an order for the code generation optimizations based on the determined information, generates optimal code for the model based on the identified order for the code generation optimizations, and outputs and/or store the optimal code.
申请公布号 US9268537(B1) 申请公布日期 2016.02.23
申请号 US201514629663 申请日期 2015.02.24
申请人 The MathWorks, Inc. 发明人 Zhang Yuchen;Biswas Partha;Lin Xiaocang
分类号 G06F9/44 主分类号 G06F9/44
代理机构 Harrity & Harrity, LLP 代理人 Harrity & Harrity, LLP
主权项 1. A method, comprising: receiving a model in a technical computing environment, the model including a plurality of blocks and a plurality of lines, andthe receiving the model being performed by a device; determining an application domain associated with the model, the application domain corresponding to a physical system, a component, a modeling pattern, or a region of operations associated with the model, andthe determining the application domain being performed by the device; determining a plurality of code generation optimizations for the model, the determining the plurality of code generation optimizations being performed by the device; determining dependencies of the plurality of code generation optimizations, the determining the dependencies of the plurality of code generation optimizations being performed by the device; identifying an order for the plurality of code generation optimizations based on one or more of the application domain of the model or the dependencies of the plurality of code generation optimizations, the identifying the order for the plurality of code generation optimizations being performed by the device; generating optimal code for the model based on the identified order for the plurality of code generation optimizations, the generating the optimal code being performed by the device; and outputting or storing the optimal code, the outputting or storing the optimal code being performed by the device.
地址 Natick MA US