Movatterモバイル変換


[0]ホーム

URL:


CN108121433B - Task scheduling method of GPU (graphics processing Unit) multiprocessor system - Google Patents

Task scheduling method of GPU (graphics processing Unit) multiprocessor system
Download PDF

Info

Publication number
CN108121433B
CN108121433BCN201711281085.5ACN201711281085ACN108121433BCN 108121433 BCN108121433 BCN 108121433BCN 201711281085 ACN201711281085 ACN 201711281085ACN 108121433 BCN108121433 BCN 108121433B
Authority
CN
China
Prior art keywords
processor
bit
processors
busy
idle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711281085.5A
Other languages
Chinese (zh)
Other versions
CN108121433A (en
Inventor
何嘉文
魏美荣
杜斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Aeronautics Computing Technique Research Institute of AVICfiledCriticalXian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN201711281085.5ApriorityCriticalpatent/CN108121433B/en
Publication of CN108121433ApublicationCriticalpatent/CN108121433A/en
Application grantedgrantedCritical
Publication of CN108121433BpublicationCriticalpatent/CN108121433B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention belongs to the electronic field, and relates to a task scheduling method of a GPU multiprocessor system, which comprises 3 steps: user configuration, task scheduling method initialization and task scheduling. The scheduling method is suitable for the working conditions of the GPU in different working modes (high-performance mode-low-power-consumption mode), ensures that as few processors as possible participate in processing operation in the low-power-consumption mode, ensures that as many processors as possible participate in processing operation in the high-performance mode, is low in difficulty in realization, and ensures that the system works stably.

Description

Task scheduling method of GPU (graphics processing Unit) multiprocessor system
Technical Field
The invention belongs to the field of electronics, and relates to a task scheduling method of a GPU (graphics processing unit) multiprocessor system.
Background
Currently, a plurality of processors are generally used as a system for data processing in a GPU, and a task scheduling method of a GPU multiprocessor system is required in order to exert the functions of all the processors and adapt to different working modes (high performance mode — low power consumption mode) of the GPU.
Disclosure of Invention
The invention aims to provide a task scheduling method of a GPU multiprocessor system, which can schedule the GPU multiprocessor system according to a GPU working mode and ensure the normal operation of the system.
The technical solution of the invention is as follows:
a task scheduling method of a GPU multiprocessor system comprises the following steps:
(1) the following bit segments are provided to the user: the processor comprises a simple-complex mode selection bit, a high-performance-low-power-consumption mode selection bit, a processor starting number bit, current busy-idle state bits of all processors, and starting-closing positions of all processors, wherein a processor user can configure the simple-complex mode selection bit, the high-performance-low-power-consumption mode selection bit and the processor starting number bit by configuring a high bit section;
(2) task scheduling method initialization
(2-1) when the simple-complex mode selection bit is set to be a simple mode, the GPU multiprocessor system is bypassed, the current busy-idle state bits of all processors are set to be idle, and the opening-closing positions of all processors are set to be closed;
(2-2) when the simple-complex mode selection bit is set to be a complex mode, the high-performance-low-power-consumption mode selection bit is set to be a high-performance mode, the opening-closing positions of all processors are set to be opened, and the current busy-idle state bits of all processors are idle;
(2-3) when the simple-complex mode selection bit is set to be the complex mode, the high-performance-low power consumption mode selection bit is set to be the low power consumption mode, and the setting of the starting number bits of the processors is completed, at the moment, the GPU multiprocessor system only sets the current starting-closing state bits of the starting number bits of the processors to be started, and the current starting-closing state bits of the other processors are set to be closed;
(3) task scheduling, when a processor usage request is received,
(3-1) if the setting mode is as in (2-1), the processor use request is not sent to the processor and is directly sent to the next-stage module;
(3-2) if the mode is set as in (2-2), when a processor use request is received, performing task mapping in a high-performance mode, firstly inquiring current busy-idle state bits of all processors, and when the first current busy-idle state bit is found to be an idle processor, sending data to the processor, and then setting the current busy-idle state bit of the processor to be busy; if all processors are busy at present-the idle state bit is busy, waiting for a period to continue inquiring; when a signal of finishing the calculation of the processor is received, setting the current busy-idle state bit of the register to be idle;
(3-3) if the mode is set as in (2-3), when a processor use request is received, performing task mapping in a low power consumption mode, firstly inquiring current busy-idle state bits of all open state processors, if any processor with a current busy-idle state bit being idle is found, sending data to the processor, then setting the current busy-idle state bit of the processor to be busy, if all open processors are busy, inquiring whether the processor with the current open-close state bit being close state exists, if not, waiting for a period to continue inquiring, and if so, setting the open-close state bit of the processor to be open, and setting the current busy-idle state bit of the processor to be busy; when a processor count complete signal is received, the current busy-idle status bit of this register is set to idle.
The invention has the advantages that:
the performance of all processors can be exerted, the working conditions of the GPU in different working modes (high-performance mode-low-power-consumption mode) are adapted, the situation that as few processors as possible participate in processing operation in the low-power-consumption mode is guaranteed, and as many processors as possible participate in processing operation in the high-performance mode is guaranteed.
Drawings
Fig. 1 is a block diagram of a task scheduling method of a GPU multiprocessor system.
Detailed Description
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and the specific embodiments. It is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than the whole embodiments, and that all other embodiments, which can be derived by a person skilled in the art without inventive step based on the embodiments of the present invention, belong to the scope of protection of the present invention.
As shown in fig. 1, a task scheduling method of a GPU multiprocessor system is characterized by comprising 3 steps: user configuration, task scheduling method initialization, task scheduling, and providing the following bit segments to the user: the method comprises the following steps of (1) selecting a simple-complex mode (determining that a current system works in a simple or complex mode), selecting a high-performance-low-power mode (determining that the current system works in the high-performance-low-power mode), starting a processor number (determining how many processors the current system can be started at most), currently busy-idle state bits (indicating whether all processors are currently used or not), starting-closing states (indicating whether the processors are currently started or not) of all processors, and configuring a processor user by configuring a bit section to enable a task scheduling module to work under the condition of user needs, wherein the scheduling method comprises the following working steps:
(1) the user configures simple-complex mode selection bits, high-performance-low power consumption mode selection bits and processor starting number bits;
(2) the task scheduling method is initialized, i.e.
1) When the simple-complex mode selection bit is set to be a simple mode, the GPU multiprocessor system is bypassed, the current busy-idle state bits of all the processors are set to be idle, and the opening-closing positions of all the processors are set to be closed;
2) when the simple-complex mode selection bit is set to be a complex mode, the high-performance-low-power-consumption mode selection bit is set to be a high-performance mode, the opening-closing positions of all processors are set to be opened, and the current busy-idle state bits of all processors are idle;
3) when the simple-complex mode selection bit is set to be the complex mode, the high-performance-low power consumption mode selection bit is set to be the low power consumption mode, and the setting of the starting number bits of the processors is completed, at the moment, the GPU multiprocessor system only sets the current starting-closing state bits of the starting number bits of the processors to be started, and sets the current starting-closing state bits of the other processors to be closed;
(3) task scheduling, i.e. when a processor usage request is received,
1) if the setting mode is 2-1, the processor use request is not sent to the processor and is directly sent to the next set of modules;
2) if the mode is set as 2-2, when a processor use request is received, task mapping in a high-performance mode is carried out, namely current busy-idle state bits of all processors are firstly inquired, when the first current busy-idle state bit is found to be an idle processor, data are sent to the processors, and then the current busy-idle state bits of the processors are set to be busy; if all processors are busy at present-the idle state bit is busy, waiting for a period to continue inquiring; when a signal of finishing the calculation of the processor is received, setting the current busy-idle state bit of the register to be idle;
3) if the mode is set as 2-3, when a processor use request is received, task mapping in a low power consumption mode is carried out, namely, current busy-idle state bits of all open state processors are firstly inquired, if any processor with the current busy-idle state bit being idle is found, data are sent to the processor, then the current busy-idle state bit of the processor is set to be busy, if the current busy-idle state bits of all open processors are busy, whether the processor with the current open-close state bit being close state exists is inquired, if not, a period is waited for continuous inquiry, if yes, the open-close state bit of the processor is set to be open, and the current busy-idle state bit of the processor is set to be busy; when a processor count complete signal is received, the current busy-idle status bit of this register is set to idle.

Claims (1)

(3-3) if the mode is set as in (2-3), when a processor use request is received, performing task mapping in a low power consumption mode, firstly inquiring current busy-idle state bits of all open state processors, if any processor with a current busy-idle state bit being idle is found, sending data to the processor, then setting the current busy-idle state bit of the processor to be busy, if all open processors are busy, inquiring whether the processor with the current open-close state bit being close state exists, if not, waiting for a period to continue inquiring, and if so, setting the open-close state bit of the processor to be open, and setting the current busy-idle state bit of the processor to be busy; when a processor count complete signal is received, the current busy-idle status bit of this register is set to idle.
CN201711281085.5A2017-12-062017-12-06Task scheduling method of GPU (graphics processing Unit) multiprocessor systemActiveCN108121433B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711281085.5ACN108121433B (en)2017-12-062017-12-06Task scheduling method of GPU (graphics processing Unit) multiprocessor system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711281085.5ACN108121433B (en)2017-12-062017-12-06Task scheduling method of GPU (graphics processing Unit) multiprocessor system

Publications (2)

Publication NumberPublication Date
CN108121433A CN108121433A (en)2018-06-05
CN108121433Btrue CN108121433B (en)2021-10-15

Family

ID=62229729

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711281085.5AActiveCN108121433B (en)2017-12-062017-12-06Task scheduling method of GPU (graphics processing Unit) multiprocessor system

Country Status (1)

CountryLink
CN (1)CN108121433B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108897416A (en)*2018-06-282018-11-27郑州云海信息技术有限公司It is a kind of to control method, apparatus and computer readable storage medium electric under GPU
CN109992385B (en)*2019-03-192021-05-14四川大学GPU internal energy consumption optimization method based on task balance scheduling
CN110716805A (en)*2019-09-272020-01-21上海依图网络科技有限公司Task allocation method and device of graphic processor, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101281639A (en)*2008-05-302008-10-08华硕电脑股份有限公司Method for controlling operation mode of graphics processor and graphics processor
CN101403982A (en)*2008-11-032009-04-08华为技术有限公司Task distribution method, system and equipment for multi-core processor
WO2010137233A1 (en)*2009-05-282010-12-02パナソニック株式会社Power saving control device for multiprocessor system, and mobile terminal
CN102866921A (en)*2012-08-292013-01-09惠州Tcl移动通信有限公司Method and system for regulating and controlling multi-core central processing unit (CPU)
CN104424156A (en)*2013-09-092015-03-18中兴通讯股份有限公司Core processing method and device of processor and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101387952B (en)*2008-09-242011-12-21上海大学Single-chip multi-processor task scheduling and managing method
US8695008B2 (en)*2011-04-052014-04-08Qualcomm IncorporatedMethod and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
KR102110812B1 (en)*2013-05-302020-05-14삼성전자 주식회사Multicore system and job scheduling method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101281639A (en)*2008-05-302008-10-08华硕电脑股份有限公司Method for controlling operation mode of graphics processor and graphics processor
CN101403982A (en)*2008-11-032009-04-08华为技术有限公司Task distribution method, system and equipment for multi-core processor
WO2010137233A1 (en)*2009-05-282010-12-02パナソニック株式会社Power saving control device for multiprocessor system, and mobile terminal
CN102866921A (en)*2012-08-292013-01-09惠州Tcl移动通信有限公司Method and system for regulating and controlling multi-core central processing unit (CPU)
CN104424156A (en)*2013-09-092015-03-18中兴通讯股份有限公司Core processing method and device of processor and terminal

Also Published As

Publication numberPublication date
CN108121433A (en)2018-06-05

Similar Documents

PublicationPublication DateTitle
CN108121433B (en)Task scheduling method of GPU (graphics processing Unit) multiprocessor system
US11792264B2 (en)Multiple sensor data processor interface and relay
EP2580657B1 (en)Information processing device and method
EP2360548A2 (en)Method and device for clock gate controlling
US9250690B2 (en)Low-power modes of microcontroller operation with access to configurable input/output connectors
EP4086776A1 (en)Syncronization of interrupt processing to reduce power consumption
KR20120096858A (en)Remote wakeup of application processor of mobile device
US9519338B2 (en)Task processing apparatus and method including scheduling current and next-level task processing apparatus
EP2746957B1 (en)Intelligent interrupt distributor
KR20110126407A (en) System-on-Chip and How It Works
CN105022469B (en)Portable electronic device and kernel exchange method thereof
US11552892B2 (en)Dynamic control of latency tolerance reporting values
US20150227187A1 (en)Data storage device, method thereof, and data processing system including the same
US9841804B2 (en)Clocking a processor
CN204066009U (en)A kind of system of fingerprints reducing power consumption and complicacy
CN104516477A (en)Techniques for entering a low power state
CN106063304B (en) System and method for message-based fine-grained system-on-chip power gating
US11399344B2 (en)System and method for SoC idle power state control based on I/O operation characterization
CN105468549A (en)Chip device and electronic system thereof
CN120122799A (en) A method and system for realizing low power consumption of PCIe encryption card based on ASPM
CN105468128A (en)Management method and management device for internal power consumption of SOC (System on Chip)
EP3019952A1 (en)Method and apparatus for controlling an operating mode of a processing module
CN103455367B (en) Management unit and method for implementing multi-task scheduling in reconfigurable systems
US10082858B2 (en)Peripheral device assistance in reducing CPU power consumption
US8954622B1 (en)Embedded programmable logic for logic stacking on application processor

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp