IP Library › Granted Patent US 10,977,076
Granted Patent B2
US 10,977,076 · App. 16/116,624 · Granted Apr 13, 2021

Method and apparatus for processing a heterogeneous cluster-oriented task

Inventors: Shengzhao Wen (Beijing, CN); Hanqing Zhou (Beijing, CN); Chuanxiu Liu (Beijing, CN); Jiajun Zhang (Beijing, CN)
Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
G06F9/4881G06F8/41G06F9/5027G06F9/5072
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,977,076
App. No.
16/116,624
Granted
Apr 13, 2021
Kind
B2
Abstract

The present disclosure provides a method and apparatus for processing a heterogeneous cluster-oriented task. The method comprises: receiving a task request and a basic execution environment; scheduling a heterogeneous device according to the task request; compiling the basic execution environment into an execution environment corresponding to the scheduled heterogeneous device, and deploying on the scheduled heterogeneous device; triggering the scheduled heterogeneous device to execute the task request. It is only necessary for the user to provide the basic execution environment with respect to the task, and unnecessary for the user to respectively write a version of execution environment for each type of hardware platform, thereby implementing quick development of the heterogeneous device code and reducing the development and maintenance costs.

Claims (38)

1. A method for processing a heterogeneous cluster-oriented task, wherein the method comprises:

receiving a task request and a basic execution environment; wherein the basic execution environment is based on a CPU-type heterogeneous high-performance repository;

scheduling a heterogeneous device according to the task request;

compiling the basic execution environment into an execution environment corresponding to the scheduled heterogeneous device, and deploying the execution environment corresponding to the scheduled heterogeneous device on the scheduled heterogeneous device; wherein the execution environment corresponding to the scheduled heterogeneous device comprises at least one type of GPU, FPGA or ARM; and

triggering the scheduled heterogeneous device to execute the task request,

wherein the compiling the basic execution environment into an execution environment corresponding to the scheduled heterogeneous device comprises:

according to the type of the heterogeneous device scheduled for the task request, switching the CPU-type heterogeneous high-performance repository into the heterogeneous high-performance repository corresponding to the scheduled heterogeneous device, to generate the execution environment corresponding to the scheduled heterogeneous device.

2. The method according to claim 1 , wherein

the task request comprises: an identity of the basic execution environment, configuration information of the task, and data information of the task.

3. The method according to claim 2 , wherein the triggering the scheduled heterogeneous device to execute the task request comprises:

sending to the scheduled heterogeneous device a task instruction including data information of the task, so that the scheduled heterogeneous device performs distributed computation according to the task instruction.

4. The method according to claim 1 , wherein the scheduling a heterogeneous device according to the task request comprises:

scheduling the heterogeneous device for the task request in accordance with the data information of the task in the task request and a sum of available resources of the heterogeneous cluster.

5. A computer device, comprising a memory, a processor and a computer program which is stored on the memory and runnable on the processor, wherein the processor, upon executing the program, implements a method for processing a heterogeneous cluster-oriented task, wherein the method comprises:

receiving a task request and a basic execution environment; wherein the basic execution environment is based on a CPU-type heterogeneous high-performance repository;

scheduling a heterogeneous device according to the task request;

compiling the basic execution environment into an execution environment corresponding to the scheduled heterogeneous device, and deploying the execution environment corresponding to the scheduled heterogeneous device on the scheduled heterogeneous device; wherein the execution environment corresponding to the scheduled heterogeneous device comprises at least one type of GPU, FPGA or ARM; and

triggering the scheduled heterogeneous device to execute the task request,

wherein the compiling the basic execution environment into an execution environment corresponding to the scheduled heterogeneous device comprises:

according to the type of the heterogeneous device scheduled for the task request, switching the CPU-type heterogeneous high-performance repository into the heterogeneous high-performance repository corresponding to the scheduled heterogeneous device, to generate the execution environment corresponding to the scheduled heterogeneous device.

6. The computer device according to claim 5 , wherein

the task request comprises: an identity of the basic execution environment, configuration information of the task, and data information of the task.

7. The computer device according to claim 6 , wherein the triggering the scheduled heterogeneous device to execute the task request comprises:

sending to the scheduled heterogeneous device a task instruction including data information of the task, so that the scheduled heterogeneous device performs distributed computation according to the task instruction.

8. The computer device according to claim 5 , wherein the scheduling a heterogeneous device according to the task request comprises:

scheduling the heterogeneous device for the task request in accordance with the data information of the task in the task request and a sum of available resources of the heterogeneous cluster.

9. A non-transitory computer-readable storage medium on which a computer program is stored, wherein the program, when executed by a processor, implements a method for processing a heterogeneous cluster-oriented task, wherein the method comprises:

receiving a task request and a basic execution environment; wherein the basic execution environment is based on a CPU-type heterogeneous high-performance repository; scheduling a heterogeneous device according to the task request;

compiling the basic execution environment into an execution environment corresponding to the scheduled heterogeneous device, and deploying the execution environment corresponding to the scheduled heterogeneous device on the scheduled heterogeneous device; wherein the execution environment corresponding to the scheduled heterogeneous device comprises at least one type of GPU, FPGA or ARM; and

triggering the scheduled heterogeneous device to execute the task request,

wherein the compiling the basic execution environment into an execution environment corresponding to the scheduled heterogeneous device comprises:

according to the type of the heterogeneous device scheduled for the task request, switching the CPU-type heterogeneous high-performance repository into the heterogeneous high-performance repository corresponding to the scheduled heterogeneous device, to generate the execution environment corresponding to the scheduled heterogeneous device.

10. The non-transitory computer-readable storage medium according to claim 9 , wherein

the task request comprises: an identity of the basic execution environment, configuration information of the task, and data information of the task.

11. The non-transitory computer-readable storage medium according to claim 10 , wherein the triggering the scheduled heterogeneous device to execute the task request comprises:

sending to the scheduled heterogeneous device a task instruction including data information of the task, so that the scheduled heterogeneous device performs distributed computation according to the task instruction.

12. The non-transitory computer-readable storage medium according to claim 9 , wherein the scheduling a heterogeneous device according to the task request comprises:

scheduling the heterogeneous device for the task request in accordance with the data information of the task in the task request and a sum of available resources of the heterogeneous cluster.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 29, 2018
From: WEN, SHENGZHAO; ZHOU, HANQING; LIU, CHUANXIU; ZHANG, JIAJUN
To: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
Reel/Frame 046744/0619 →
Priority Claims (1)
CN 201710772904.X · Aug 31, 2017 · national
Continuity (1)
Related Publication 20190065251A1 · Feb 28, 2019