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

OpenCL (Open Computing Language) program-compiling 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 goal of reducing program execution time consumption, improving program execution efficiency, and ensuring execution efficiency. Effect

Active Publication Date: 2015-03-18
HUAWEI TECH CO LTD +1
View PDF3 Cites 2 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 (Open Computing Language) program-compiling method and compiler
  • OpenCL (Open Computing Language) program-compiling method and compiler
  • OpenCL (Open Computing Language) program-compiling 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

An Open Computing Language (OpenCL) program compilation method and compiler, said method comprising: obtaining OpenCL source files and determining a first data transmission mode for operation data defined in said source files; calculating the execution time of said operation data in said first data transmission mode and in second data transmission mode, said second data transmission mode being different from said first data transmission mode, and said execution time comprising the data transmission time of the operation data as well as the device program execution time; selecting the data transmission mode having a shorter execution time to serve as the compiled data transmission mode for said operation data when said source files are compiled; generating a compile execution code file according to said compiling data transmission mode. The invention effectively ensures 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, which provides a unified programming environment for software developers to facilitate high-performance computing servers, desktops 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 transmiss...

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): 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