IP Library Granted Patent US 10,698,699
Granted Patent B2
US 10,698,699 · App. 16/025,569 · Granted Jun 30, 2020

Method and apparatus for configuring accelerator

Inventors: Zhiping Chen (Shenzhen, CN); Chaofei Tang (Shenzhen, CN); Zhiming Yao (Shenzhen, CN)
Assignee: HUAWEI TECHNOLOGIES., LTD.
G06F9/445G06F9/5044G06F15/76G06F15/7871G06F9/4401
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,698,699
App. No.
16/025,569
Granted
Jun 30, 2020
Kind
B2
Abstract

A method for configuring an accelerator, applied to a server including at least one bare accelerator. The at least one bare accelerator is an accelerator that is generated after a basic logic function is loaded for accelerator hardware, and the basic logic function includes a communications interface function and a loading function. The method includes determining, by the server, a target service type and a target bare accelerator, determining, by the server, a service logic function corresponding to the target service type, and loading, by the server, the service logic function corresponding to the target service type for the target bare accelerator to generate a target service accelerator, where the target service accelerator is capable of providing an acceleration service for a service of the target service type.

Claims (37)

1. A method for configuring an accelerator, applied to a server comprising a bare accelerator, a slave CPU, and a master CPU, wherein the bare accelerator is an accelerator that is generated after a basic logic function is loaded for accelerator hardware, wherein the basic logic function comprises a communications interface function and a loading function, and wherein the method comprises:

determining, by the server, a target service type and a target bare accelerator;

determining, by the master CPU, a service logic function corresponding to the target service type;

loading, by the slave CPU, the service logic function corresponding to the target service type for the target bare accelerator to generate a target service accelerator, wherein the target service accelerator is capable of providing an acceleration service for a service of the target service type;

allocating, by the slave CPU, an identifier to the target service accelerator;

reporting the identifier of the target service accelerator to the master CPU; and

unloading, by the server, the service logic function corresponding to the target service type loaded in the target service accelerator to generate the bare accelerator.

2. The method of claim 1 , wherein determining the target service type and the target bare accelerator comprises:

receiving, by the server, the target service type from a user equipment; and

selecting, by the server, the bare accelerator as the target bare accelerator when the server does not comprise the accelerator for providing the acceleration service for the service of the target service type.

3. The method of claim 1 , further comprising updating, by the server, at least one of a set constituted by identifiers of bare accelerators and a set constituted by identifiers of service accelerators.

4. The method of claim 1 , further comprising sending, by the server, at least one of a set constituted by identifiers of bare accelerators and a set constituted by identifiers of service accelerators to a user equipment.

5. The method of claim 1 , further comprising displaying, by the server, at least one of a set constituted by identifiers of bare accelerators and a set constituted by identifiers of service accelerators.

6. The method of claim 1 , further comprising

sending, by the slave CPU, a first indication message and a second indication message to the master CPU.

7. The method of claim 6 , wherein the first indication message comprises the identifier of the target service accelerator, and the first indication message is used to instruct the master CPU to add the identifier of the target service accelerator into a set constituted by identifiers of service accelerators.

8. The method of claim 6 , wherein the second indication message comprises the identifier of the target bare accelerator, and the second indication message is used to instruct the master CPU to delete the identifier of the target bare accelerator from a set constituted by identifiers of bare accelerators.

9. An apparatus for configuring an accelerator, applied to a server comprising a bare accelerator, a slave CPU, and a master CPU, wherein the bare accelerator is an accelerator that is generated after a basic logic function is loaded for accelerator hardware, wherein the basic logic function comprises a communications interface function and a loading function, and wherein the apparatus comprises:

a memory comprising instructions; and

a processor coupled to the memory, the instructions causing the processor to be configured to:

determine a target service type and a target bare accelerator;

determine a service logic function corresponding to the target service type;

load the service logic function corresponding to the target service type for the target bare accelerator to generate a target service accelerator, wherein the target service accelerator is capable of providing an acceleration service for a service of the target service type;

allocate an identifier to the target service accelerator;

report the identifier of the target service accelerator to the master CPU; and

unload the service logic function corresponding to the target service type loaded in the target service accelerator to generate the bare accelerator.

10. The apparatus of claim 9 , wherein the instructions further cause the processor to be configured to:

receive the target service type from a user equipment; and

select the bare accelerator as the target bare accelerator when the server does not comprise the accelerator for providing the acceleration service for the service of the target service type.

11. The apparatus of claim 9 , wherein the instructions further cause the processor to be configured to update at least one of a set constituted by identifiers of bare accelerators and a set constituted by identifiers of service accelerators.

12. The apparatus of claim 9 , wherein the instructions further cause the processor to be configured to send at least one of a set constituted by identifiers of bare accelerators and a set constituted by identifiers of service accelerators to a user equipment.

13. The apparatus of claim 9 , wherein the instructions further cause the processor to be configured to display at least one of a set constituted by identifiers of bare accelerators and the set constituted by identifiers of service accelerators.

14. The method of claim 1 , wherein determining the target service type and the target bare accelerator comprises receiving, by the server, the target service type and an identifier of the target bare accelerator from a user equipment.

15. The apparatus of claim 9 , wherein the instructions further cause the processor to be configured to receive the target service type and an identifier of the target bare accelerator from a user equipment.

16. The apparatus of claim 9 , wherein the instructions further cause the processor to be configured to send a first indication message and a second indication message to the master CPU.

17. The apparatus of claim 16 , wherein the first indication message comprises the identifier of the target service accelerator, and wherein the first indication message is used to instruct the master CPU to add the identifier of the target service accelerator into a set constituted by identifiers of service accelerators.

18. The apparatus of claim 16 , wherein the second indication message comprises the identifier of the target bare accelerator, and the second indication message is used to instruct the master CPU to delete the identifier of the target bare accelerator from a set constituted by identifiers of bare accelerators.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 31, 2018
From: CHEN, ZHIPING; TANG, CHAOFEI; YAO, ZHIMING
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 046514/0317 →
Priority Claims (2)
CN 2015 1 1032133 · Dec 31, 2015 · national
CN 2016 1 0227605 · Apr 13, 2016 · national
Continuity (2)
Continuation PCTCN2016112143 · Dec 26, 2016
Related Publication 20180307499A1 · Oct 25, 2018