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

Opencl program compilation method and compiler

A program compilation and source program technology, applied in the field of OpenCL program compilation methods and compilers, can solve problems such as the inability to effectively guarantee the execution efficiency of OpenCL programs, and achieve the goals of reducing program execution time consumption, improving program execution efficiency, and ensuring execution efficiency Effect

Active Publication Date: 2017-10-17
HUAWEI TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] This application provides an OpenCL program compilation method and a compiler to solve the technical problem that the OpenCL program execution efficiency cannot be effectively guaranteed in the prior art

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
  • Opencl program compilation method and compiler
  • Opencl program compilation method and compiler
  • Opencl program compilation method and compiler

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0056] One of the main ideas of the embodiments of the present application includes:

[0057] The compiler obtains the source program file of the OpenCL program, and determines the first data transfer mode of the operation data defined in the source program file; calculates the operation data in the first data transfer mode and the second data transfer mode respectively select the data transmission mode with less execution time consumption as the compilation data transmission mode o...

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 present application provides a method for compiling an open computing language OpenCL program and a compiler, the method comprising: obtaining the source program file of the OpenCL program, and determining the first data transmission mode of the operation data defined in the source program file ; Calculate the execution time consumption of the operation data in the first data transmission mode and the second data transmission mode respectively, the second data transmission mode is different from the first data transmission mode, and the execution consumption time includes The data transmission time of the operation data and the execution time of the device program; select the data transmission mode that consumes less execution time as the compilation data transmission mode of the operation data when the source program file is compiled; transmit the compiled data according to the Mode generates compiled executable code files. The embodiment of the present application effectively guarantees the program execution efficiency.

Description

technical field [0001] The present application relates to the technical field of computer processing, and more specifically relates to an OpenCL program compiling method and a compiler. Background technique [0002] OpenCL (Open Computing Language, Open Computing Language) is the first general-purpose parallel programming open and free standard language for heterogeneous systems. Write efficient and lightweight code for computing systems, handheld devices, and more. [0003] The OpenCL program is mainly divided into two parts: the device program and the host program. For example, when a heterogeneous system is composed of a CPU and a GPU, when the program running on the CPU is a host program, the program running on the GPU is a device program. The execution process of the OpenCL program mainly includes: the host program controls data transmission from the host side to the device side, the device side executes the device program to process the data, and the host program con...

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/45
CPCG06F8/41
Inventor 刘颖
Owner HUAWEI TECH CO LTD
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