Primary and secondary data structure-based CPU-GPU cooperative computing method

A technology of data structure and calculation method, which is applied in the computer field, can solve problems such as difficulty, thread load balance problem on GPU, and difficulty in determining the amount of parallel calculation, and achieve high utilization rate

Inactive Publication Date: 2010-11-24
UNIV OF SCI & TECH OF CHINA
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] GPGPU faces two problems: 1) thread load balancing problem on GPU
In fact, the effective workload of each thread may not be the same, so it will cause unbalanced GPU load
2) CPU and GPU utilization issues
In the synchronous call mode, after the CPU calls the GPU, it must wait for its calculation to complete before proceeding to the next step, so that the utilization rate of the CPU is relatively low; Parallel computing is performed at the same time, but the size of this parallel computing amount is difficult to determine
If the amount of CPU parallel computing is too small, the CPU utilization rate is still very low; if the CPU parallel computing amount is too large, so that after the GPU calculation is completed, it needs to wait for the CPU to assign new computing tasks to it, resulting in low GPU utilization; Only when the CPU parallel computing time is exactly the same as the GPU computing time, high CPU and GPU utilization can be obtained at the same time, but it is very difficult to accurately determine the CPU parallel computing amount

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
  • Primary and secondary data structure-based CPU-GPU cooperative computing method
  • Primary and secondary data structure-based CPU-GPU cooperative computing method
  • Primary and secondary data structure-based CPU-GPU cooperative computing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0033] In order to achieve the purpose of the present invention, the present invention discloses a CPU-GPU cooperative calculation method of a primary and secondary data structure, comprising the following steps: determining the primary and secondary data structure and initializing it according to the object to be processed; reading in the data to be processed, until there is no more data, and send a data reading end signal RF to the CPU computing thread and the GPU computing thread; the CPU computing thread and the GPU computing thread p...

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 invention provides a primary and secondary data structure-based CPU-GPU cooperative computing method, which comprises the following steps: according to an object to be processed, determining primary and secondary data contents and initializing the primary and secondary data contents; starting a CUP computing thread and a GPU computing thread; reading data to be processed, storing the pre-processed data in a primary and secondary data structure, and processing the data in the primary and secondary data structure by using the CUP computing thread and the GPU computing thread till no data exists. According to a scheme provided by the invention, parallel data can be managed effectively, and the balance of the loads on the threads of a GPU can be ensured when a GPGPU platform processes databases with unbalance effective computation distribution; and a CPU and the GPU can perform complete parallel calculation and keep high utilization rate by simply-designed and reusable thread dividing method.

Description

technical field [0001] The present invention relates to the computer field, and in particular, the present invention relates to a CPU-GPU cooperative computing method based on a primary and secondary data structure. Background technique [0002] In the field of high-performance computing, to achieve extremely high-efficiency output, it is usually necessary to connect a large number of CPUs. The CPU (Central Processing Unit, central processing unit) is the core that controls the operation of the computer, and uses parallel distributed processing to perform calculations. However, this structure not only Program development is difficult, the hardware is bulky, and the power consumption is even more astonishing. The rise of the concept of GPGPU (General-Purpose Computing on Graphics Processing Units, general-purpose computing graphics processor) is also to make up for the weaknesses of these traditional CPU architectures. [0003] Generally, a single GPU (Graphics Processing Un...

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/50G06F15/16
Inventor 安虹姚平刘谷徐光许牧李小强韩文廷张倩徐恒阳
Owner UNIV OF SCI & TECH OF CHINA
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