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

Method, device and processor for allocating kernel resources in different types of threads

A processor and thread technology, applied in the field of processors, can solve problems such as load imbalance

Active Publication Date: 2018-07-24
SHENZHEN ZHONGWEIDIAN TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This makes it load unbalanced between different types of threads

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, device and processor for allocating kernel resources in different types of threads
  • Method, device and processor for allocating kernel resources in different types of threads
  • Method, device and processor for allocating kernel resources in different types of threads

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0024] Such as figure 1 As shown, in the method and device for allocating kernel resources in different types of processor threads of the present invention and its processor embodiment, the method for allocating kernel resources in different types of processor threads includes the following steps:

[0025] Step S101 The processor is powered on and booted, and the operating system controls all core resources: in this embodiment, the processor has multiple independent cores (cores composed of hardware and used to calculate or process threads), these Cores can be assigned to different threads (threading) and run concurrently. In this embodiment, there may be two kinds of threads in the processor, one is the thread obtained by the task processed by the CPU in the traditional sense, called CPU thread; the other is obtained by the task processed by the GPU in...

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 invention relates to a method for allocating kernel resources in different types of threads of a processor, the method further comprising the following steps: judging whether the number of threads registered in the hardware thread management unit is greater than the number of threads registered in the hardware by the operating system The number of threads in the thread management unit, if yes, perform step B); otherwise, return; allocate idle kernels to process the GPU threads registered in the hardware thread management unit, when the idle threads are allocated and there are CPU threads to release their When a kernel is used, the kernel is directly controlled by the hardware thread management unit, and configured to the GPU thread waiting in the hardware thread management unit. The present invention also relates to a device for implementing the above method and a processor thereof. The method and device for distributing kernel resources among different types of processor threads and the processor thereof implemented in the present invention have the following beneficial effects: dynamic load balance can be achieved among different types of threads.

Description

technical field [0001] The present invention relates to a processor, and more specifically relates to a method and a device for allocating kernel resources in different types of threads of the processor and the processor thereof. Background technique [0002] In a typical multifunctional computer platform (processor), the CPU and GPU are separate hardware, connected by a parallel bus, and driven by their own software. There is no shared component for one or more tasks between the two pieces of hardware. This is due to the fact that the two pieces of hardware are separate. When executing a CPU task (these tasks will be decomposed into threads for execution in the end), it will be operated by the operating system of the CPU; when executing a GPU task (these tasks will also be decomposed into threads for execution in the end), by the internal Hardware control execution. Therefore, on a traditional multi-function computer platform, any one of the above-mentioned CPU and GPU m...

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 SHENZHEN ZHONGWEIDIAN TECH