Unlock instant, AI-driven research and patent intelligence for your innovation.

MHP analysis method and device for parallel programs

A program and technology to be analyzed, applied in the computer field, can solve the problems of neglect of importance, false positives or false negatives of analysis results, etc., to achieve the effect of improving accuracy and high construction accuracy

Active Publication Date: 2018-12-28
HUAWEI TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the current method of constructing a multi-threaded GFG is too simple, and generally only examines the analysis of creation (creat) primitives and lock (lock) / unlock (unlock) primitives, while ignoring the importance of Happens-Before analysis. As a result, when performing MHP analysis based on CFG, the analysis results have a large number of false positives or false negatives

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • MHP analysis method and device for parallel programs
  • MHP analysis method and device for parallel programs
  • MHP analysis method and device for parallel programs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0051] In the process of compiling the parallel program, when constructing the CFG of the parallel program, it is necessary to match the creation (creat) / join (join) primitives, trigger (signal) / wait (wait) primitives, lock (lock) ) / unlock primitive. Among them, the matching between creat / join primitives and signal / wait primitives constitutes the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides an MHP analysis method and device for a parallel program. The MHP analysis method for the parallel program comprises the following steps: starting from a main thread of the parallel program to be analyzed, and selecting one thread at a time to simulate the execution of the parallel program to be analyzed, wherein, when the thread for simulating the execution cannot continue to execute, jumping to any one thread which can continue to execute to simulate execution until the simulation execution of all threads of the parallel program to be analyzed is finished, wherein the parallel program to be analyzed comprises at least two threads; according to the results of simulation execution of the parallel program to be analyzed, constructing a multithread control flow graph corresponding to the parallel program to be analyzed; processing the multithread control flow graph to obtain a conservative and correct multithread control flow graph, and no missing of possible parallel MHP result of each node of the conservative and correct multithread control flow graph; and performing the MHP analysis on the conservative and correct multithread control flow graph to obtain the MHP analysis result of the parallel program to be analyzed.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a parallel program MHP analysis method and device. Background technique [0002] With the development of computer technology, computers have developed from single-core to multi-core era, from stand-alone processing to large-scale cluster processing. The development of computers has also promoted the development of computer software. Up to now, hundreds of computer programming languages ​​have been created, such as popular C / C++, Java, Python, etc. Various large-scale software programs, such as operating systems, databases, and large-scale software games, often contain millions of lines of code. These large-scale software programs may take years to develop by a team. Then, how to debug software programs more effectively, and how to verify and optimize the correctness of programs has become a research hotspot in computer software development. [00...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3608
Inventor 周卿李炼冯晓兵
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More