Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and system for realizing CPU and GPU load balancing

A technology for load balancing and obtaining systems, applied in the computer field, can solve problems such as adjusting the distribution ratio of computing tasks, poor overall efficiency, and large additional costs, and achieve the effect of load balancing

Active Publication Date: 2018-02-02
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, dynamic load balancing means that each computing device adopts the strategy of "capable people do more work" according to their actual computing capabilities, real-time, dynamic, and autonomous task load distribution. Dynamic load balancing is flexible and efficient, but it has strict requirements on algorithms. Computing tasks are required to be completely independent of each other, so that they can be processed in parallel; static load balancing means that each computing device allocates computing tasks according to a preset and fixed task load distribution ratio. Static load balancing is simple to implement, but Lack of flexibility and adaptability
These two load balancing methods have their own limitations and are not suitable for all occasions. For example, in high-performance parallel computing occasions where the input and preprocessing of basic computing tasks overlap and are redundant, complete dynamic load balancing will lead to a large amount of redundancy. Input and preprocessing lead to excessive overhead, resulting in poor overall efficiency; while complete static load balancing can minimize the redundancy of input and preprocessing, but it cannot be dynamically adjusted in real time according to actual operating conditions Calculation task allocation ratio, serious lack of flexibility and adaptability, use effect is not good
[0005] In summary, the algorithmic limitations of complete dynamic load balancing and the lack of flexibility and adaptability of static load balancing affect the performance of CPU and GPU collaborative parallel computing.

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
  • A method and system for realizing CPU and GPU load balancing
  • A method and system for realizing CPU and GPU load balancing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0098] First, after initializing the input parameters of the main thread, the intermediate data memory space, the output data memory space, and other parameters related to job tasks, the computing equipment and physical memory resources of the system are detected, and the system is created based on the detected computing equipment and physical memory resources of the system. Related data structure objects and initialized.

[0099] Obtain the computing device information, physical memory and other related information currently configured by the system according to the data structure object.

[0100] According to the acquired computing device information, physical memory and other resource-related information, determine the type and quantity of the computing device to be started. Assume that the number N of GPU devices to be started and the number of CPU computing cores M are determined;

[0101] According to the type and quantity of the computing devices started, create corres...

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 present application discloses a method and system for realizing CPU and GPU load balancing, including: obtaining computing device information, physical memory and other system resource related information currently configured in the system; according to the obtained computing device information, physical memory and other system resources Relevant information, determine the type and quantity of the computing equipment to be started; according to the type and quantity of the computing equipment to be started, create the control thread of the corresponding computing equipment; to realize independent and parallel operation of each computing equipment; computing equipment includes: central processing unit ( CPU), and / or graphics processing unit (GPU). The present invention records and manages resource-related information such as computing device information and physical memory configured by the system through the data structure of device attribute information, and creates corresponding control threads after determining the type and quantity of the computing device to be started, realizing the cooperation between CPU and GPU Parallel computing; in addition, the task load is distributed through the acceleration ratio of each computing device relative to the CPU, and the load balancing of the CPU and GPU is realized.

Description

technical field [0001] The present application relates to the field of computers, in particular to a method and system for realizing load balancing between a central processing unit (CPU) and a graphics processing unit (GPU). Background technique [0002] Driven by new technologies, hardware systems are undergoing rapid evolution, showing better performance and lower prices. CPU and GPU play an important role in the evolution of hardware systems. CPU is constantly developing from single-core to multi-core to many-core, and with the popularity of multi-core architecture processors, the parallel processing method of multi-thread application software has been paid attention to. In addition to traditional applications (graphics display, mostly used in games), GPU is increasingly used in mathematical calculations due to its super floating-point computing capabilities, and has gradually become the mainstream of mathematical calculations. High-level languages ​​and development to...

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/50
Inventor 吴庆吴韶华张广勇王娅娟
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND