Loop optimization method with multiple condition discrimination
A technology with multiple conditions and multiple loops, which is applied in the computer field, can solve the problems of inconvenient program parallel debugging and optimization, negative impact growth, and increased model calculation time, etc., to achieve the goal of reducing dependency on multiple conditions, improving performance, and reducing the amount of loops Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0027] Embodiment: a kind of loop optimization method with multiple condition discrimination, multiple loop refers to more than or equal to 4 heavy loops, multiple condition C X 、C Y 、C Z , ... are logical variables;
[0028] The original method is: in the innermost loop of multiple loops, when C X 、C Y 、C Z 、 When the three conditions are judged to be "true" at the same time, the core calculation is performed, and C X The calculation of the value is only relevant for the first heavy cycle, C Y The calculation of the value is only relevant for the second cycle, C Z Calculation of values is only relevant for the third cycle;
[0029] The inventive method comprises the following steps:
[0030] S1. Use performance analysis tools (such as: vtune, gprof) or printout information to analyze the time hotspot function when the program is running, and find out one or more time-consuming program segments in the time hotspot function;
[0031] S2. If the cycle segment found in...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com