Hardware accelerator device management method, device, electronic device and storage medium

By creating a resource pool and managing hardware accelerator devices in the cloud platform, the problems of accelerator device reservation and flexible scheduling in the existing technology are solved, and the utilization rate of the hardware accelerator and the computing power of the cloud platform are improved.

CN113674131BActive Publication Date: 2024-09-13SHANDONG HAILIANG INFORMATION TECH RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110825190.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-21
Publication Date
2024-09-13
Estimated Expiration
2041-07-21

AI Technical Summary

Technical Problem

Existing intelligent accelerator device management technology cannot achieve reservation and flexible scheduling of accelerator devices, resulting in low utilization of hardware accelerator devices and the inability to customize and schedule accelerator devices according to needs.

Method used

Create a resource pool in the cloud platform, allocate hardware accelerator devices to the corresponding resource pool, and obtain and store the basic information, status information and resource pooling information of the device through the resource manager, support the management of virtualization accelerator devices, and realize Reservation and flexible allocation of accelerator equipment.

Benefits of technology

The flexibility and utilization of accelerator equipment are improved, hardware accelerator equipment can be reserved and scheduled according to needs, and the computing power of the cloud platform is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113674131B
    Figure CN113674131B
Patent Text Reader

Abstract

The present application discloses a method and apparatus for managing a hardware accelerator device, an electronic device, and a computer-readable storage medium, the method comprising: creating a resource pool in a cloud platform, and allocating the hardware accelerator device in the cloud platform to the corresponding resource pool; obtaining basic information, status information, and resource pooling information of the hardware accelerator device in the cloud platform; wherein the status information comprises an available status, an in-use status, and a maintenance status, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs; storing the basic information, status information, and resource pooling information of the hardware accelerator device in a database and reporting it to a resource manager; and displaying the basic information, status information, and resource pooling information of the hardware accelerator device through the resource manager. The hardware accelerator device management method provided by the present application improves the flexibility, maintainability, and operability of the accelerator device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a hardware accelerator device management method and apparatus, an electronic device, and a computer-readable storage medium. Background Art

[0002] In the era of cloud computing, artificial intelligence and 5G technology, accelerator devices such as GPU (graphics processing unit), FPGA (Field Programmable Gate Array), SmartNIC (smart network card) have emerged. At present, the management of smart accelerator devices by cloud platforms is at the basic stage. The core technology is to directly bind the physical device of the host to the cloud host through the PCI-passthrough technology of the virtualization platform. Of course, with the rapid development of hardware devices and the continuous enhancement of virtualization hardware acceleration technology, hardware accelerator devices have realized that a physical accelerator device can derive multiple virtual devices. For example, GPU graphics cards that support virtualization can generally be divided into time slices of different specifications as needed, and can be provided to multiple cloud hosts on the cloud platform at the same time, thereby improving the utilization rate of hardware accelerator devices and greatly improving the computing power of the cloud platform.

[0003] Cyborg is a very active intelligent accelerator device management project in the OpenStack international open source community. The current functions mainly include the discovery, resource reporting and display of acceleration device resources such as GPU, FPGA, SSD (Solid State Disk), and the interaction between the Nova project and the Cyborg project. In related technologies, it is impossible to reserve and protect accelerator devices, and it is impossible to reserve accelerator devices on the cloud platform. In addition, when creating a cloud host through Nova, accelerator device resources must be specified, and it is impossible to customize the scheduling of accelerator devices according to needs.

[0004] Therefore, how to achieve the reservation of accelerator equipment and improve the flexibility of accelerator equipment is a technical problem that those skilled in the art need to solve. Summary of the invention

[0005] The purpose of the present application is to provide a hardware accelerator device management method, apparatus, electronic device and computer-readable storage medium, which realize the reservation of accelerator devices and improve the flexibility of accelerator devices.

[0006] To achieve the above objectives, the present application provides a hardware accelerator device management method, comprising:

[0007] Creating a resource pool in a cloud platform, and allocating hardware accelerator devices in the cloud platform to corresponding resource pools; wherein the hardware accelerator devices include physical accelerator devices and / or virtualized accelerator devices;

[0008] Obtaining basic information, status information, and resource pooling information of the hardware accelerator device in the cloud platform; wherein the status information includes available status, in-use status, and maintenance status, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs;

[0009] The basic information, status information and resource pooling information of the hardware accelerator device are stored in a database and reported to a resource manager;

[0010] The resource manager displays basic information, status information and resource pooling information of the hardware accelerator device.

[0011] The resource pool has a device virtualization attribute, and the device virtualization attribute is used to indicate whether the hardware accelerator device in the resource pool supports virtualization. If the device virtualization attribute is turned on, the resource pool includes a physical accelerator device and a corresponding virtualized accelerator device.

[0012] The step of allocating the hardware accelerator device to a corresponding resource pool includes:

[0013] Assign hardware accelerators of the same type to the same resource pool.

[0014] The step of allocating the hardware accelerator device to a corresponding resource pool includes:

[0015] Allocate hardware accelerators configured on the same physical host to the same resource pool.

[0016] Among them, it also includes:

[0017] Receive a creation request of a cloud host; wherein the creation request includes a requested target accelerator device type, and the target accelerator device type includes a target physical accelerator device type and / or a target virtualized accelerator device type;

[0018] Determine a target physical host that meets the target accelerator type, and obtain performance parameters of the target physical host through information displayed by the resource manager;

[0019] Determine the best target physical host by using a preset scheduling algorithm based on the performance parameters of the target physical host;

[0020] The cloud host is started on the optimal target physical host to complete the creation operation of the cloud host.

[0021] Wherein, determining a target physical host that meets the target accelerator type includes:

[0022] A target resource pool that matches the target accelerator type is determined, and a target physical host to which the hardware accelerator contained in the target resource pool belongs is determined.

[0023] The basic information, status information and resource pooling information of the hardware accelerator device are stored in a database and reported to a resource manager, including:

[0024] Storing basic information, status information and resource pooling information of the hardware accelerator device in a database;

[0025] Reporting the basic information, status information and resource pooling information of the hardware accelerator device whose status information is in an available state and in a using state to the resource manager;

[0026] Correspondingly, displaying the basic information, status information and resource pooling information of the hardware accelerator device through the resource manager includes:

[0027] The resource manager displays the status information as basic information, status information and resource pooling information of the hardware accelerator device in an available state and in a using state.

[0028] To achieve the above objectives, the present application provides a hardware accelerator device management device, including:

[0029] An allocation module, used to create a resource pool in the cloud platform, and allocate the hardware accelerator devices in the cloud platform to the corresponding resource pool; wherein the hardware accelerator devices include physical accelerator devices and / or virtualized accelerator devices;

[0030] An acquisition module, used to acquire basic information, status information and resource pooling information of the hardware accelerator device in the cloud platform; wherein the status information includes available status, in-use status and maintenance status, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs;

[0031] A reporting module, used to store the basic information, status information and resource pooling information of the hardware accelerator device in a database and report it to a resource manager;

[0032] The display module is used to display the basic information, status information and resource pooling information of the hardware accelerator device through the resource manager.

[0033] To achieve the above objectives, the present application provides an electronic device, including:

[0034] Memory for storing computer programs;

[0035] The processor is used to implement the steps of the hardware accelerator device management method as described above when executing the computer program.

[0036] To achieve the above objectives, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the hardware accelerator device management method as described above are implemented.

[0037] It can be seen from the above scheme that a hardware accelerator device management method provided by the present application includes: creating a resource pool in a cloud platform, and allocating the hardware accelerator devices in the cloud platform to the corresponding resource pool; wherein the hardware accelerator devices include physical accelerator devices and / or virtualized accelerator devices; obtaining basic information, status information and resource pooling information of the hardware accelerator devices in the cloud platform; wherein the status information includes an available status, an in-use status and a maintenance status, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs; storing the basic information, status information and resource pooling information of the hardware accelerator device in a database and reporting it to a resource manager; and displaying the basic information, status information and resource pooling information of the hardware accelerator device through the resource manager.

[0038] The hardware accelerator device management method provided by the present application performs resource pooling management on the hardware accelerator device and maintains the status information of a single hardware accelerator, including the usable status, the in-use status and the maintenance status. By setting the hardware accelerator device to the maintenance status, effective hardware device resources can be reserved for the user's special business at all times, effectively improving the flexibility, maintainability and operability of the accelerator device. The present application also discloses a hardware accelerator device management device, an electronic device and a computer-readable storage medium, which can also achieve the above-mentioned technical effects.

[0039] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific implementation methods, they are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the drawings:

[0041] Figure 1 The present invention is a flowchart of a method for managing a hardware accelerator device according to an exemplary embodiment;

[0042] Figure 2 Schematic diagram of the database table before and after the modification of Cyborg devices;

[0043] Figure 3 is a diagram showing an architecture of a Cyborg accelerator device management module according to an exemplary embodiment;

[0044] Figure 4 is a flowchart of another method for managing a hardware accelerator device according to an exemplary embodiment;

[0045] Figure 5 is a diagram of a Nova and Cyborg interaction architecture according to an exemplary embodiment;

[0046] Figure 6 is a structural diagram of a hardware accelerator device management apparatus according to an exemplary embodiment;

[0047] Figure 7 The figure is a structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0049] The embodiment of the present application discloses a method for managing a hardware accelerator device, which realizes the reservation of the accelerator device and improves the flexibility of the accelerator device.

[0050] See also Figure 1 , according to an exemplary embodiment, a flowchart of a method for managing a hardware accelerator device is shown, such as Figure 1 As shown, including:

[0051] S101: creating a resource pool in a cloud platform, and allocating a hardware accelerator device in the cloud platform to a corresponding resource pool; wherein the hardware accelerator device includes a physical accelerator device and / or a virtualized accelerator device;

[0052] This embodiment can be applied to the OpenStack cloud platform. After the cloud platform is deployed, the user needs to configure the hardware acceleration device resource pool on the server carrying the accelerator device. The hardware accelerator device in the cloud platform can include physical accelerator devices and virtualized accelerator devices. If the hardware accelerator device is divided into the corresponding resource pool, it can no longer be displayed independently.

[0053] Taking GPU and virtual GPU devices as an example, initialize the physical GPU device:

[0054] [devices]

[0055] enabled_gpu_types=gpu-device-driver

[0056] Initialize a single virtualized device:

[0057] [devices]

[0058] enabled_vgpu_types=vgpu-device-1

[0059] Initialize multiple virtualized devices:

[0060] [devices]

[0061] enabled_vgpu_types=vgpu-device-1,vgpu-device-2

[0062] pool_name = <resource pool name>

[0063] [vgpu_gpu-device-1]

[0064] device_addresses=0000:58:00.0,0000:76:00.0

[0065] [vgpu_gpu-device-2]

[0066] device_addresses=0000:89:00.0

[0067] The resource pool name pool_name is optional. If the resource pool name is set, it means that the two virtual GPU accelerator devices vgpu-device-1 and vgpu-device-2 will be assigned to the resource pool for management.

[0068] As a feasible implementation, allocating the hardware accelerator device to the corresponding resource pool includes: allocating the same type of hardware accelerators to the same resource pool. In a specific implementation, the same type of hardware accelerator devices can be centrally managed in the same resource pool, such as GPU devices from Intel and NVDIA.

[0069] As another feasible implementation, allocating the hardware accelerator device to the corresponding resource pool includes: allocating the hardware accelerators configured on the same physical host to the same resource pool. In a specific implementation, different types of hardware accelerators configured on the same physical host can be managed through the same resource pool, such as from Inspur NVMe SSD devices and Intel GPU devices.

[0070] Further, as a preferred implementation, the resource pool has a device virtualization attribute, and the device virtualization attribute is used to indicate whether the hardware accelerator device in the resource pool supports virtualization. If the device virtualization attribute is turned on, the resource pool contains a physical accelerator device and a corresponding virtualized accelerator device. In a specific implementation, the resource pool has a device virtualization attribute, which is used to indicate whether the hardware accelerator device in the resource pool supports virtualization. If the device virtualization attribute is turned on, the devices in the resource pool all support virtualization, for example, the resource pool may contain GPU virtualization and SmartNIC virtualization.

[0071] S102: Obtain basic information, status information, and resource pooling information of the hardware accelerator device in the cloud platform; wherein the status information includes available status, in-use status, and maintenance status, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs;

[0072] In this embodiment, fields for resource pooling information (pool_name) and status information (status) are added to the Cyborg devices database table. The resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs, and the status information is used to indicate the status of the hardware accelerator device, including available status, in-use status, and maintaining status. The database table of Cyborg devices before and after modification is as follows: Figure 2 As shown, the left side is the database table before modification, and the right side is the database table after modification.

[0073] In the specific implementation, the Cyborg accelerator device management module architecture is as follows Figure 3As shown, Cyborg maintains the device status and device resource pooling information in the database table through the cyborg-conductor service. Cyborg is deployed on the computing node (Compute). The cyborg-agent collects accelerator device information through each accelerator device driver, including device manufacturer, UUID, device attributes, device name, device status, etc., and stores this device information in the database table through the cyborg-conductor. A new cyborg-api interface is added. Through this API (Application Programming Interface), the status information and resource pooling information of the hardware accelerator device can be set. When setting the accelerator resource pooling information through this API, check whether the selected multiple hardware accelerator devices have the same attributes. If so, mark the attributes of the resource pool to provide accurate device resource pool information for the resource manager (Placement).

[0074] S103: storing the basic information, status information and resource pooling information of the hardware accelerator device in a database and reporting it to a resource manager;

[0075] In the specific implementation, the basic information, status information and resource pooling information of the hardware accelerator device are stored in the database table through cyborg-conductor. The status information and resource pooling information of the hardware accelerator device are synchronously reported to the Placement resource manager through cyborg-api. At the same time, the resource device usage can also be regularly reported to the Placement resource manager through scheduled tasks to provide accurate resource information when Nova creates cloud host scheduling resources.

[0076] As a preferred implementation, this step includes: storing the basic information, status information and resource pooling information of the hardware accelerator device in a database; reporting the basic information, status information and resource pooling information of the hardware accelerator device whose status information is an available status and a being-used status to a resource manager.

[0077] In the specific implementation, if a hardware accelerator device is set to maintenance status through cyborg-api, it means that the hardware accelerator device is in maintenance mode and cannot be accessed. When the cyborg scheduled task reports resources to the Placement resource manager, it will be removed from the reported resources, thereby reducing the impact of the device on computing resources. The cloud platform administrator can query the list of hardware accelerator devices in maintenance status through cyborg-api and update the corresponding accelerator device status.

[0078] S104: Displaying basic information, status information, and resource pooling information of the hardware accelerator device through the resource manager.

[0079] In this step, the basic information, status information and resource pooling information of the hardware accelerator device are displayed through the resource manager to provide effective scheduling information for the creation of the cloud host. As a preferred embodiment, this step may include: displaying the basic information, status information and resource pooling information of the hardware accelerator device whose status information is in the usable state and in the in-use state through the resource manager. It is understandable that since the device in the maintenance state cannot be reported to the resource manager, it cannot be scheduled when creating the cloud host scheduling accelerator, thereby achieving effective protection or reservation of the target accelerator device.

[0080] The hardware accelerator device management method provided in the embodiment of the present application performs resource pooling management on the hardware accelerator device and maintains the status information of a single hardware accelerator, including the available status, the in-use status and the maintenance status. Setting the hardware accelerator device to the maintenance status can reserve effective hardware device resources for the user's special business at all times, effectively improving the flexibility, maintainability and operability of the accelerator device.

[0081] This example will introduce the process of creating a cloud host, specifically:

[0082] See also Figure 4 , a flowchart of another method for managing a hardware accelerator device according to an exemplary embodiment is shown, such as Figure 4 As shown, including:

[0083] S201: Receive a creation request of a cloud host; wherein the creation request includes a requested target accelerator device type, and the target accelerator device type includes a target physical accelerator device type and / or a target virtualized accelerator device type;

[0084] In this embodiment, the request to create a cloud host may include information such as the cloud host name, description, resource specifications, network card information, user, project, etc. The requested target accelerator device type is set in the resource specifications. Figure 5 As shown, Nova can request a single physical accelerator device, multiple physical accelerator devices, a single virtualized accelerator device, and multiple virtualized accelerator devices, that is, the target accelerator device type includes a target physical accelerator device type and / or a target virtualized accelerator device type. Of course, Nova can also directly request all physical accelerator devices in a resource pool.

[0085] Taking the request to create a bound GPU device as an example, the format of the creation request is: {"name":"cloud host name","description":"cloud host description information","flavor":{'device_profile_name1':'DP_GPU'},"network":"network_id","project_id":"project ID","user_id":"user ID"}.

[0086] If you request a GPU device and an FPGA device, the format of the create request is: {"name":"cloud host name","description":"cloud host description information","flavor":{'device_profile_gpu':'DP_GPU','device_profile_fpga':'DP_FPGA'}}.

[0087] If you request a virtual GPU device and a virtual FPGA device, the format of the create request is: {"name":"cloud host name","description":"cloud host description information","flavor":{'device_profile_gpu':'DP_vGPU','device_profile_fpga':'DP_vFPGA'}}.

[0088] If you request a virtual GPU device and an FPGA device, the format of the create request is: {"name":"cloud host name","description":"cloud host description information","flavor":{'device_profile_gpu':'DP_vGPU','device_profile_fpga':'DP_FPGA'}}.

[0089] S202: Determine a target physical host that meets the target accelerator type, and obtain performance parameters of the target physical host through information displayed by the resource manager;

[0090] S203: Determine the best target physical host by using a preset scheduling algorithm based on the performance parameters of the target physical host;

[0091] S204: Start the cloud host on the optimal target physical host to complete the creation operation of the cloud host.

[0092] In this embodiment, Nova API receives a request to create a cloud host, and parses the request through nova-conductor according to the resources provided by placement. First, eligible physical hosts are screened out. If GPU devices and FPGA devices are requested, the target physical host equipped with both GPU and FPGA devices is determined. Nova-scheduler sets the weight of each target physical host by combining the performance parameters such as the number of CPU cores, memory size, and hard disk size of the cloud host through the accelerator intelligent scheduling algorithm, sorts the hosts according to the weight, takes the target physical host with the highest weight as the best target physical host for requesting the cloud host, and establishes the binding information of the target accelerator device configured on the cloud host and the best target physical host by calling cyborg-api, sets the status information of the target accelerator device in the database table to in-use, and reports it to the Placement resource manager to update the device usage. Start the cloud host on the best target physical host to complete the cloud host creation operation.

[0093] When different types of hardware accelerators configured on the same physical host are managed through the same resource pool, first determine the target resource pool that matches the target accelerator type, and determine the target physical host to which the hardware accelerator contained in the target resource pool belongs. For the above example, the target resource pool contains both GPU devices and FPGA devices.

[0094] It can be seen that this embodiment automatically selects the requested accelerator device when creating a cloud host, effectively ensuring the flexibility of the cloud platform to create an accelerator device cloud host and planning accelerator device resources on demand.

[0095] A hardware accelerator device management apparatus provided in an embodiment of the present application is introduced below. The hardware accelerator device management apparatus described below and the hardware accelerator device management method described above can refer to each other.

[0096] See also Figure 6 , according to an exemplary embodiment, a structural diagram of a hardware accelerator device management apparatus is shown, such as Figure 6 As shown, including:

[0097] The allocation module 601 is used to create a resource pool in the cloud platform and allocate the hardware accelerator device in the cloud platform to the corresponding resource pool; wherein the hardware accelerator device includes a physical accelerator device and / or a virtualized accelerator device;

[0098] The acquisition module 602 is used to acquire basic information, status information and resource pooling information of the hardware accelerator device in the cloud platform; wherein the status information includes available status, in-use status and maintenance status, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs;

[0099] A reporting module 603 is used to store the basic information, status information and resource pooling information of the hardware accelerator device in a database and report it to a resource manager;

[0100] The display module 604 is used to display the basic information, status information and resource pooling information of the hardware accelerator device through the resource manager.

[0101] The hardware accelerator device management device provided in the embodiment of the present application performs resource pooling management on the hardware accelerator device and maintains the status information of a single hardware accelerator, including the available status, the in-use status and the maintenance status. Setting the hardware accelerator device to the maintenance status can reserve effective hardware device resources for the user's special business at all times, effectively improving the flexibility, maintainability and operability of the accelerator device.

[0102] Based on the above embodiment, as a preferred implementation mode, the resource pool has a device virtualization attribute, and the device virtualization attribute is used to indicate whether the hardware accelerator device in the resource pool supports virtualization. If the device virtualization attribute is turned on, the resource pool contains a physical accelerator device and a corresponding virtualized accelerator device.

[0103] Based on the above embodiment, as a preferred implementation mode, the allocation module 601 specifically creates a resource pool in the cloud platform, and allocates hardware accelerators of the same type to modules in the same resource pool.

[0104] Based on the above embodiment, as a preferred implementation mode, the allocation module 601 specifically creates a resource pool in the cloud platform, and allocates the hardware accelerators configured on the same physical host to the modules in the same resource pool.

[0105] Based on the above embodiment, as a preferred implementation, it also includes:

[0106] A receiving module, configured to receive a creation request of a cloud host; wherein the creation request includes a requested target accelerator device type, and the target accelerator device type includes a target physical accelerator device type and / or a target virtualized accelerator device type;

[0107] A first determination module is used to determine a target physical host that meets the target accelerator type, and obtain performance parameters of the target physical host through information displayed by the resource manager;

[0108] A second determination module is used to determine the best target physical host by using a preset scheduling algorithm based on the performance parameters of the target physical host;

[0109] A startup module is used to start the cloud host on the optimal target physical host to complete the creation operation of the cloud host.

[0110] Based on the above embodiments, as a preferred implementation mode, the first determination module is specifically a module for determining a target resource pool that meets the target accelerator type, determining a target physical host to which the hardware accelerator contained in the target resource pool belongs, and obtaining performance parameters of the target physical host through the information displayed by the resource manager.

[0111] Based on the above embodiment, as a preferred implementation, the reporting module 603 is specifically a module for storing the basic information, status information and resource pooling information of the hardware accelerator device in a database, and reporting the basic information, status information and resource pooling information of the hardware accelerator device whose status information is the usable state and the in-use state to the resource manager;

[0112] Correspondingly, the display module 604 is specifically a module that displays the basic information, status information and resource pooling information of the hardware accelerator device whose status information is the usable state and the in-use state through the resource manager.

[0113] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0114] Based on the hardware implementation of the above program module, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides an electronic device, Figure 7 FIG. 1 is a structural diagram of an electronic device according to an exemplary embodiment. Figure 7 As shown, the electronic equipment includes:

[0115] Communication interface 1, capable of exchanging information with other devices such as network devices;

[0116] The processor 2 is connected to the communication interface 1 to implement information exchange with other devices and is used to execute the hardware accelerator device management method provided by one or more technical solutions when running a computer program. The computer program is stored in the memory 3.

[0117] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 7 Various buses are labeled as bus system 4.

[0118] The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0119] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 2 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.

[0120] The method disclosed in the above embodiment of the present application can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 2 or the instruction in the form of software. The above processor 2 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 3, and the processor 2 reads the program in the memory 3 and completes the steps of the above method in combination with its hardware.

[0121] When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present application are implemented, which will not be repeated here for the sake of brevity.

[0122] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory 3 storing a computer program, and the computer program can be executed by a processor 2 to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0123] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0124] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0125] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for managing a hardware accelerator device, characterized in that: include: Creating a resource pool in a cloud platform, and allocating hardware accelerator devices in the cloud platform to corresponding resource pools; wherein the hardware accelerator devices include physical accelerator devices and / or virtualized accelerator devices; Obtaining basic information, status information and resource pooling information of the hardware accelerator device; wherein the status information includes available status, in-use status and maintenance status, a hardware accelerator in maintenance status is a reserved valid hardware device resource that cannot be scheduled, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs; The basic information, status information and resource pooling information of the hardware accelerator device are stored in a database and reported to a resource manager; Displaying basic information, status information and resource pooling information of the hardware accelerator device through the resource manager; The basic information, status information and resource pooling information of the hardware accelerator device are stored in a database and reported to a resource manager, including: Storing basic information, status information and resource pooling information of the hardware accelerator device in a database; Reporting the basic information, status information and resource pooling information of the hardware accelerator device whose status information is in an available state and in a using state to the resource manager; Correspondingly, displaying the basic information, status information and resource pooling information of the hardware accelerator device through the resource manager includes: The resource manager displays the status information as basic information, status information and resource pooling information of the hardware accelerator device in an available state and in a using state.

2. The method for managing hardware accelerator devices according to claim 1, characterized in that: The resource pool has a device virtualization attribute, and the device virtualization attribute is used to indicate whether the hardware accelerator device in the resource pool supports virtualization. If the device virtualization attribute is turned on, the resource pool includes a physical accelerator device and a corresponding virtualized accelerator device.

3. The method for managing hardware accelerator devices according to claim 1, characterized in that: Allocating the hardware accelerator device to a corresponding resource pool includes: Assign hardware accelerators of the same type to the same resource pool.

4. The method for managing hardware accelerator devices according to claim 1, characterized in that: Allocating the hardware accelerator device to a corresponding resource pool includes: Allocate hardware accelerators configured on the same physical host to the same resource pool.

5. The method for managing hardware accelerator devices according to claim 4, characterized in that: Also includes: Receive a creation request of a cloud host; wherein the creation request includes a requested target accelerator device type, and the target accelerator device type includes a target physical accelerator device type and / or a target virtualized accelerator device type; Determine a target physical host that meets the target accelerator type, and obtain performance parameters of the target physical host through information displayed by the resource manager; Determine the best target physical host by using a preset scheduling algorithm based on the performance parameters of the target physical host; The cloud host is started on the optimal target physical host to complete the creation operation of the cloud host.

6. The method for managing hardware accelerator devices according to claim 5, characterized in that: The determining of a target physical host that matches the target accelerator type includes: A target resource pool that matches the target accelerator type is determined, and a target physical host to which the hardware accelerator contained in the target resource pool belongs is determined.

7. A hardware accelerator device management device, characterized in that: include: An allocation module, used to create a resource pool in the cloud platform, and allocate the hardware accelerator devices in the cloud platform to the corresponding resource pool; wherein the hardware accelerator devices include physical accelerator devices and / or virtualized accelerator devices; An acquisition module is used to acquire basic information, status information and resource pooling information of the hardware accelerator device in the cloud platform; wherein the status information includes available status, in-use status and maintenance status, a hardware accelerator in maintenance status is a reserved valid hardware device resource that cannot be scheduled, and the resource pooling information is used to indicate the resource pool to which the hardware accelerator device belongs; A reporting module, used to store the basic information, status information and resource pooling information of the hardware accelerator device in a database and report it to a resource manager; A display module, used to display basic information, status information and resource pooling information of the hardware accelerator device through the resource manager; The reporting module is specifically used to: store the basic information, status information and resource pooling information of the hardware accelerator device in a database, and report the basic information, status information and resource pooling information of the hardware accelerator device whose status information is in an available state and in an in-use state to a resource manager; Correspondingly, the display module is specifically used to: display, through the resource manager, the basic information, status information and resource pooling information of the hardware accelerator device whose status information is in an available state and in a using state.

8. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the hardware accelerator device management method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the hardware accelerator device management method according to any one of claims 1 to 6 are implemented.