Heterogeneous hybrid programming-oriented one-stop program compiling method

A hybrid programming and program compilation technology, applied in the field of code compilation, can solve the problems of difficulty in debugging, poor scalability, and complex implementation, and achieve the effect of good scalability

Inactive Publication Date: 2021-03-30
JIANGNAN INST OF COMPUTING TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a one-stop program compilation method oriented to heterogeneous hybrid programming, which solves the problem of generating separated control core source code and computing core source code through source-to-source conversion tools, and then calling different compilation methods. Problems such as complex implementation, difficult debugging, and poor scalability brought about by separate compilation of

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
  • Heterogeneous hybrid programming-oriented one-stop program compiling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0019] Example: such as figure 1 As shown, a one-stop program compilation method for heterogeneous mixed programming includes the following steps,

[0020] S1: Compiler master control adds compilation process and control options, provides keywords to mark the private variables of the computing core and guidance statements that mark the code running on the computing core, adds keywords before the computing core variables, and distinguishes variables as computing core private variables It is still a computing core shared variable. Add a special pragma before the declaration and definition point of the computing core function to distinguish it from the control core function in the program. Core functions are distinguished;

[0021] S2: The front end of the compiler compiles the program according to the extended keywords and guidance statements, and automatically separates the variables and functions of the control core and the calculation core;

[0022] S3: The middle end of th...

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 discloses a heterogeneous hybrid programming-oriented one-stop program compiling method. The method comprises the following steps of: adding an extension keyword and a guidance statementto a compiler master controller, adding a keyword in front of an operation core variable, adding a compiling instruction in front of a function statement and a definition point of an operation core,and adding a compiling instruction before the control core calls a calling point of the operation core function; through front-end compiling, automatically separating variables and functions of the control core and the operation core; enabling the compiler middle end to compile and optimize the separated variables and functions on the control core and the operation core respectively to generate anintermediate representation of a program on the control core and an intermediate representation of a program on the operation core; and compiling results of compiling and optimizing of the control core and the operation core into heterogeneous many-core target codes. According to the invention, separate compiling and fusion compiling of control core and operation core codes are completed in one compiler in a one-stop manner, so that the problems of complex implementation, difficult debugging and poor expandability of a source-to-source mode can be solved.

Description

technical field [0001] The invention belongs to the field of code compilation, in particular to a one-stop program compilation method for heterogeneous mixed programming. Background technique [0002] The heterogeneous many-core system usually adopts the architecture of control core + computing core, in which the control core is responsible for processing complex logic control tasks, and the computing core is responsible for processing large-scale data parallel tasks with high computing density and simple logical branches. Provides an efficient computing platform for applications. Different task divisions lead to differences in the instructions and data types supported by the control core and the computing core, so the source code of the control core program and the source code of the computing core program need to be written separately (that is, distributed in different source files), and then call the control core The compiler compiles and generates the object code runnin...

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 Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/41G06F8/443
Inventor 方燕飞杨小川文延华李雁冰何王全尉红梅
Owner JIANGNAN INST OF COMPUTING TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products