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

A method and device for detecting data dependence between instructions

A technology of data dependence and instructions, applied in the computer field, can solve problems such as high space requirements, large extra time and space, uncertain data dependence, etc., to achieve the effect of improving overall performance and speeding up execution speed

Active Publication Date: 2021-09-07
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the polyhedron model can only analyze loops whose iterative domain and data domain are all affine functions, and there are still a large proportion of non-affine dynamic loops in the iterative domain or data domain that exist in a variety of existing programs
Since such loops may have compile-time indeterminate data dependencies, they are difficult to parallelize using polyhedral models or other static means
[0003] However, judging the data dependencies between iterations at runtime may consume a lot of extra time and space, resulting in the entire loop being placed on the GPU without a good speedup ratio, and even because the space requirement is too high, it cannot be placed in the memory. Execution on scarce GPU

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
  • A method and device for detecting data dependence between instructions
  • A method and device for detecting data dependence between instructions
  • A method and device for detecting data dependence between instructions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The embodiment of the present invention can detect the data dependency existing in the instruction to be detected by comparing the access operation of the same variable with the information of the historical access operation, especially the non-affine data dependency existing between the instructions. In the computing system, for loop instructions detected without data dependence, they can be executed in parallel by a Graphics Processing Unit (GPU), thereby improving the overall performance of the system. The invention can quickly determine the unclear dependency relationship during compilation through the light-weight data dependency detection technology, and decide whether to hand it over to the GPU for execution.

[0035] It should be understood that although the embodiment of the present invention is described in a scenario of a heterogeneous computing system, the embodiment of the present invention does not limit a specific usage scenario. The embodiments of the pr...

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 discloses a method and device for detecting data dependence between instructions. The method includes: when a detection thread is accessing the variable, detecting whether there is a historical access operation to the variable, if there is no historical access operation to the variable, recording the thread number of this access operation, otherwise, if This access operation is a write operation. Compare the thread number of the historical access operation with the thread number of this access operation. If the thread number of this access operation is smaller than the thread number of the historical access operation, it indicates that the instruction to be detected has data dependence and terminates. Detection, if this access operation is a read operation and the historical access operation includes historical write access operations, compare the thread number of the historical write access operation with the thread number of this access operation, if the thread number of this access operation is less than the historical write access operation The thread number of the operation indicates that there is data dependence in the instruction to be detected, and the detection is terminated.

Description

technical field [0001] Embodiments of the present invention relate to the field of computers, and in particular, to a method and device for detecting data dependence between instructions. Background technique [0002] In recent years, many-core computing is not only applied to high-performance computing, but also many-core computing technology represented by Graphics Processing Unit (GPU) can be found everywhere on mobile devices and personal computers. However, accelerating existing programs using heterogeneous many-core processors remains a challenging task. Since loops often consume a large proportion of execution time in serial programs, loop parallelization is a scheme to accelerate existing programs by using many-core accelerators. Among loop parallelization schemes, the polyhedron model is a powerful solution for analyzing loops and converting loops to many-core processors, and compilers based on the polyhedron model are emerging in an endless stream. However, the p...

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): G06F9/38
CPCG06F16/215G06F8/456G06F8/445G06F16/00
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