Method and system for obtaining image co-processing program of CPU/GPU heterogeneous environment

An image processing and collaborative processing technology, applied in the computer field, can solve problems such as poor parallelism, inability to provide image processing program conversion methods, and poor program versatility of image processing algorithms, so as to achieve the effect of improving versatility

Pending Publication Date: 2017-07-14
SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI
View PDF2 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The object of the present invention is to provide a method and system for obtaining image cooperative processing programs in a CPU / GPU heterogeneous environment, aiming at solving the problem of using image processing algorithms because the existing technology cannot provide an effective image processing program conversion method. Problems of poor versatility and poor runtime parallelism

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
  • Method and system for obtaining image co-processing program of CPU/GPU heterogeneous environment
  • Method and system for obtaining image co-processing program of CPU/GPU heterogeneous environment
  • Method and system for obtaining image co-processing program of CPU/GPU heterogeneous environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 It shows the implementation process of the method for acquiring an image cooperative processing program in a CPU / GPU heterogeneous environment provided by the first embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:

[0024] In step S101, a digital image processing algorithm input by the user is received.

[0025] The embodiment of the present invention is suitable for a program compiler or an image processing program automatic generation system. The digital image processing algorithm describes a method for processing digital images, and the digital image processing algorithm can be expressed in pseudo-code, flowchart, or language-like methods.

[0026] In step S102, the digital image processing algorithm is analyzed to obtain parallel executable steps for image block processing in the digital image processing algorithm.

[0027] In the embod...

Embodiment 2

[0033] figure 2 The implementation process of the method for obtaining an image cooperative processing program in a CPU / GPU heterogeneous environment provided in the second embodiment of the present invention is shown. For ease of description, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:

[0034] In step S201, a first image processing program running on a CPU using a digital image processing algorithm is acquired, and a second image processing program running on a GPU using a digital image processing algorithm is acquired.

[0035] In step S202, the first and second image processing programs are executed, and the preset test images are respectively processed to obtain the running time of the first and second image processing programs to process the test images.

[0036] In the embodiment of the present invention, the first image processing program is a pre-written image processing program that runs on a CPU, an...

Embodiment 3

[0050] image 3 The structure of the image cooperative processing program acquisition system for the CPU / GPU heterogeneous environment provided in the third embodiment of the present invention is shown. For ease of description, only the parts related to the embodiment of the present invention are shown, including:

[0051] The algorithm receiving unit 31 is configured to receive a digital image processing algorithm input by a user;

[0052] The algorithm analysis unit 32 is configured to analyze the digital image processing algorithm to obtain parallel running steps for image block processing in the digital image processing algorithm;

[0053] The step mapping unit 33 is configured to map the parallel runnable steps into computer program code segments that can run in parallel on the CPU and GPU according to the preset image block distribution method on the CPU and GPU; and

[0054] The first program acquisition unit 34 is configured to acquire an image collaborative processing program ...

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 is suitable for the technical field of computers and provides a method and a system for obtaining an image co-processing program of a CPU / GPU heterogeneous environment. The method comprises the steps of receiving a digital image processing algorithm input by a user; analyzing the digital image processing algorithm to obtain steps capable of running in parallel and used for image block segmentation processing in the digital image processing algorithm; according to preset image block segmentation allocation modes in a CPU and a GPU, mapping the steps capable of running in parallel to computer program code segments capable of running in parallel in the CPU and the GPU; and according to the computer program code segments, obtaining the image co-processing program using the digital image processing algorithm. Therefore, the conversion from the digital image processing algorithm to the image co-processing program is realized, and the universality of the program using the image processing algorithm and the parallelism of program running are improved.

Description

Technical field [0001] The invention belongs to the field of computer technology, and in particular relates to a method and system for acquiring an image cooperative processing program in a CPU / GPU heterogeneous environment. Background technique [0002] With the continuous development of Moore’s Law, the number of transistors integrated in the Graphics Processing Unit (GPU) has exceeded the number of transistors integrated in the Central Processing Unit (CPU). The general computing of GPU Capabilities are constantly developing, and its parallel computing capabilities are constantly being explored and applied. At present, heterogeneous multi-core processors including multiple cores (for example, multiple CPUs, GPUs) are widely used in modern computer systems. Because the GPUs in these systems have efficient parallel computing capabilities, high-speed memory bandwidth and parallelism The programming model can be widely used in computationally intensive programs. Nowadays, whethe...

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): G06F9/50G06F9/38G06T1/20
CPCG06F9/38G06F9/5055G06T1/20
Inventor 杨洪余姜青山李成明单小红
Owner SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI
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