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

Method, device and processor of device for distributing core resources in different types of threads of processor

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

Active Publication Date: 2014-03-05
SHENZHEN ZHONGWEIDIAN TECH
View PDF6 Cites 21 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 of device for distributing core resources in different types of threads of processor
  • Method, device and processor of device for distributing core resources in different types of threads of processor
  • Method, device and processor of device for distributing core resources in different types of threads of processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

[0025] Step S101: The processor is powered on and booted, and the operating system controls all kernel resources: In this embodiment, the processor has multiple independent cores (cores composed of hardware and used for computing or processing threads). Kernels can be assigned to different threads (for thread processing) and run simultaneously. In this embodiment, there may be two kinds of threads in the processor, one is the thread obtained from the task processed by the CPU in the traditional sense, called CPU thread; the other is the thread obtained from the ...

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 relates to a method for distributing core resources in different types of threads of a processor. The method comprises the following steps that whether the number of threads registered in a hardware thread managing unit is larger than the number of threads registered in the hardware thread managing unit by an operation system is judged, if yes, the step B) is executed, and if not, a return program is carried out; unoccupied cores are distributed to process GPU threads registered in the hardware thread managing unit, and when unoccupied threads are all distributed and some GPU threads release cores of the GPU threads, the cores are directly controlled by the hardware thread managing unit and configured to GPU threads which wait for cores in the hardware thread managing unit. The invention further relates to a device and the processor of the device for achieving the method. The method, device and processor of the device for distributing core resources in different types of threads of the processor have the advantage that different type of threads can achieve dynamic load balance.

Description

Technical field [0001] The present invention relates to a processor, and more specifically, to a method, a device and a processor for allocating kernel resources in different types of threads of the processor. Background technique [0002] In a typical multi-function computer platform (processor), the CPU and GPU are separate hardware, which are connected by parallel buses and are driven by their respective software. Between these two pieces of hardware, there is no shared component for one or more tasks. This is because the two hardware are separate. When a CPU task is executed (these tasks will finally be decomposed into threads for execution), the operating system of the CPU will operate on it; when a GPU task is executed (these tasks will also be decomposed into threads for execution at the end), the GPU internal Hardware control execution. Therefore, on a traditional multi-function computer platform, any one of the aforementioned CPU and GPU may be busy while the othe...

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/50
Inventor 梅思行廖畅卢佳文冀谦祥
Owner SHENZHEN ZHONGWEIDIAN TECH