Parallelism detection model-based serial program parallelism detection method and system, terminal and readable storage medium
A technology for detecting models and serial programs, applied in the computer field, can solve problems such as strong professionalism, program analysis limitations, and large time overhead, and achieve the effects of money cost savings, extremely high stability requirements, and equipment cost savings.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0066] like figure 1 As shown, this embodiment provides a parallelism detection method for serial programs based on the parallelism detection model, which is mainly divided into two stages. The first stage is the processing from the source program data set to the source program embedded representation. This stage receives source code as input and converts it into a context flow chart, including four steps of refactoring, classification, compilation and construction. The second stage is to preprocess the graph structure constructed from the first stage to obtain a vector representation space named inst2vec and the node classification information obtained by using the analogy test, and combine the graph structure and classification labels constructed in the first stage Collaboratively input the graph neural network, and obtain the parallelism detection model through the automatic learning of the graph neural network model. Specifically, the method provided in this embodiment in...
Embodiment 2
[0101] Based on the parallelism detection method of a serial program based on the parallelism detection model provided in Embodiment 1, this embodiment provides a system based on the method, including: a source code acquisition module, an extraction module, and a program sample acquisition module , a classification module, a graph structure generation module, and a parallelism detection model generation module.
[0102] Wherein, the source code acquisition module is used to obtain the source code; the extraction module is used to extract each loop segment in the source code, and retain the remaining segments; the program sample acquisition module converts the loop segment to the original segment for each loop segment The position is inserted into the remaining fragments to reconstruct the program to obtain the program sample. The classification module is used to determine the classification label of the program sample; the graph structure generation module is used to construct...
Embodiment 3
[0106] This embodiment provides a terminal, which includes one or more processors; a memory for storing one or more programs;
[0107] When the one or more programs are executed by the one or more processors, the one or more processors are made to implement: the steps of a parallelism detection method for serial programs based on a parallelism detection model.
[0108] The terminal also includes: a communication interface, which is used for communicating with external devices and performing interactive data transmission.
[0109] Wherein, the memory may include a high-speed RAM memory, and may also include a non-volatile defibrillator, such as at least one disk memory.
[0110] If the memory, processor, and communication interface are implemented independently, the memory, processor, and communication interface can be connected to each other through a bus to complete mutual communication. The bus may be an industry standard architecture bus, a peripheral device interconnectio...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



