Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Graph calculation method and system based on dynamic code generation

A dynamic code and graph algorithm technology, applied in the field of graph computing and analysis, can solve problems such as high algorithm preprocessing overhead, graph structure that cannot be reused, and inline optimization, etc., to increase cache, eliminate overhead, and avoid preprocessing overhead Effect

Active Publication Date: 2019-09-27
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 2. The overhead of external code calls is introduced: when the graph algorithm obtains the required attributes and other data, the generated graph calculation code needs to be accessed through the external code interface, which not only introduces the overhead of external calls, but also makes the related external codes need to Exported symbols cannot be optimized inline;
[0007] 3. The graph structure cannot be reused, and the preprocessing cost of the algorithm is high: the graph algorithm needs to build the dependent graph structure data at runtime, and the same graph structure cannot be directly reused between different algorithms
At the same time, due to the introduction of complex code generation logic, the difficulty of developing graph algorithms has increased

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
  • Graph calculation method and system based on dynamic code generation
  • Graph calculation method and system based on dynamic code generation
  • Graph calculation method and system based on dynamic code generation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention comprises following 3 invention points:

[0036] 1. If figure 1 As shown, the main body of the graph computing system is implemented using local language, the graph data is stored in its original structure, and passed to the dynamically generated code space through the memory sharing mechanism, which realizes zero copy of data and avoids data exchange overhead ;

[0037] 2. If figure 2 As shown, the basic operation code of the graph is precompiled to form an intermediate graph structure that can be recompiled, and it is combined with the graph algorithm for recompilation, eliminating the overhead of external calls;

[0038] 3. If image 3 As shown, on this basis, the caching mechanism of the intermediate graph structure and graph algorithm is realized, so that different graph algorithms can reuse the same graph data, reducing the preprocessing time of the algorithm, and at the same time, based on the intermediate graph structure, a general-purp...

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 invention provides a graph calculation method and system based on dynamic code generation, and the method comprises the steps of constructing an intermediate graph structure containing a graph operation primitive according to a graph building request, enabling the intermediate graph structure to be associated with a graph name, and then storing the associated intermediate graph structure into an intermediate graph buffer; according to the graph algorithm request, generating a graph algorithm structure composed of the external code byte codes, and sending the graph algorithm structure to a graph algorithm buffer; retrieving the intermediate graph buffer and the graph algorithm buffer according to the execution request to obtain a triple composed of the intermediate graph structure to be executed, the graph algorithm structure to be executed and the parameter list, and retrieving the triple in the local code buffer to obtain an execution object in the local code buffer so as to obtain a result through execution. According to the present invention, the generated codes are injected into a local code space, so that the overhead of data exchange is eliminated; the intermediate graph structure capable of being secondarily compiled is constructed, so that access codes of the graph data can be compiled and optimized; meanwhile, the intermediate graph structure cache and the graph algorithm cache are added, so that the preprocessing expenditure of the graph calculation is avoided.

Description

technical field [0001] The invention relates to the field of graph calculation and analysis in computer technology, and in particular to a graph calculation method and system based on dynamic code generation. Background technique [0002] Graph computing is an important technology for analyzing and mining associations in data. Due to the nonlinear characteristics of the graph structure, the development of graph algorithms is difficult, and at the same time, the performance is poor, and the code is not easy to optimize. In order to support efficient graph computing requirements, corresponding computing frameworks emerged as the times require. The graph computing framework encapsulates the graph into a unified data structure and provides basic operators to assist in the development of graph algorithms. [0003] The current graph computing framework is mainly divided into two categories: (1) Provide a fixed graph operator library and use an interpreted language to combine ope...

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
IPC IPC(8): G06F16/901G06F16/2458
CPCG06F16/2465G06F16/9024
Inventor 郑天祺程学旗冯吕王征张志斌刘悦赵鹏郭嘉丰
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products