CN109634627B - Method for managing FPGA (field programmable Gate array) equipment based on OpenStack platform - Google Patents
Method for managing FPGA (field programmable Gate array) equipment based on OpenStack platform Download PDFInfo
- Publication number
- CN109634627B CN109634627B CN201910063589.2A CN201910063589A CN109634627B CN 109634627 B CN109634627 B CN 109634627B CN 201910063589 A CN201910063589 A CN 201910063589A CN 109634627 B CN109634627 B CN 109634627B
- Authority
- CN
- China
- Prior art keywords
- fpga
- target
- virtual machine
- equipment
- target fpga
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 6
- 230000000694 effects Effects 0.000 abstract description 2
- 239000000306 component Substances 0.000 description 59
- 239000004020 conductor Substances 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
Abstract
The invention discloses a method for managing FPGA equipment based on an OpenStack platform, which comprises the following steps: after a virtual machine is created based on an OpenStack platform, visually displaying FPGA equipment information pre-stored in a Nova component so that a user can select target FPGA equipment connected with the virtual machine; when an instruction for connecting the target FPGA device to the virtual machine, which is input by a user, is received, the type of the target FPGA device is determined, and the target FPGA device and the virtual machine are connected by adopting a connection mode corresponding to the type of the target FPGA device. The method can enable the FPGA equipment which is communicated with the physical computer to be in communication connection with the virtual machine of the OpenStack platform, and improves the utilization rate and the management efficiency of the FPGA equipment. The device, the equipment and the readable storage medium for managing the FPGA equipment based on the OpenStack platform have the same technical effects.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, equipment and a readable storage medium for managing FPGA equipment based on an OpenStack platform.
Background
With the rise of artificial intelligence and machine learning, many applications and services need to be supported by the FPGA equipment, the FPGA equipment can accelerate the data processing process, and the processing efficiency is improved, but the physical board card of the FPGA is high in price, and one physical FPGA equipment generally communicates with one physical computer, so that the computer connected with the FPGA equipment cannot be changed conveniently. Therefore, the utilization rate of the FPGA equipment is reduced, and the FPGA equipment is not convenient to manage.
Therefore, how to improve the utilization rate and management efficiency of the FPGA devices is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a readable storage medium for managing FPGA equipment based on an OpenStack platform, so as to improve the utilization rate and the management efficiency of the FPGA equipment.
In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
a method for managing FPGA equipment based on an OpenStack platform comprises the following steps:
after a virtual machine is created and obtained based on an OpenStack platform, visually displaying FPGA equipment information pre-stored in a Nova component so that a user can select target FPGA equipment connected with the virtual machine;
when an instruction which is input by a user and used for connecting the target FPGA equipment to the virtual machine is received, the type of the target FPGA equipment is determined, and the target FPGA equipment is connected to the virtual machine in a connection mode corresponding to the type of the target FPGA equipment.
After the target FPGA device is connected to the virtual machine, the method further includes:
when an instruction for programming a program to the target FPGA equipment is received, acquiring a target stream file corresponding to the instruction from a work component for storing a binary stream file;
and transmitting the target stream file to the target FPGA equipment through a common interface component so as to complete program programming on the target FPGA equipment.
Wherein the connecting the target FPGA device to the virtual machine in a connection mode corresponding to the type of the target FPGA device comprises:
and when the target FPGA equipment is virtual FPGA equipment, connecting the target FPGA equipment to the virtual machine in a Virtio connection mode.
Wherein the connecting the target FPGA device to the virtual machine in a connection mode corresponding to the type of the target FPGA device comprises:
and when the target FPGA equipment is physical FPGA equipment, connecting the target FPGA equipment to the virtual machine in a passthrough connection mode.
Before visually displaying the FPGA device information pre-stored in the Nova component, the method further comprises the following steps:
and acquiring FPGA equipment information through the agent component, and storing the acquired FPGA equipment information to the Nova component.
After the target FPGA device is connected to the virtual machine, the method further includes:
and storing the connection relation between the target FPGA equipment and the virtual machine to a database of the current OpenStack platform.
Wherein, still include:
when an instruction for disconnecting the target FPGA device from the virtual machine is received, the connection between the target FPGA device and the virtual machine is cut off through the Nova component, and the connection relation between the target FPGA device and the virtual machine is deleted from the database.
An apparatus for managing an FPGA device based on an OpenStack platform, comprising:
the display module is used for visually displaying the FPGA equipment information pre-stored in the Nova component after a virtual machine is created based on an OpenStack platform so that a user can select a target FPGA equipment connected with the virtual machine;
and the connection module is used for determining the type of the target FPGA device when receiving an instruction which is input by a user and used for connecting the target FPGA device to the virtual machine, and connecting the target FPGA device to the virtual machine by adopting a connection mode corresponding to the type of the target FPGA device.
An apparatus for managing an FPGA device based on an OpenStack platform, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of any one of the methods for managing the FPGA device based on the OpenStack platform when the computer program is executed.
A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of any of the above methods for managing an FPGA device based on an OpenStack platform.
As can be seen from the above solutions, the method for managing an FPGA device based on an OpenStack platform provided in the embodiments of the present invention includes: after a virtual machine is created and obtained based on an OpenStack platform, visually displaying FPGA equipment information pre-stored in a Nova component so that a user can select target FPGA equipment connected with the virtual machine; when an instruction which is input by a user and used for connecting the target FPGA equipment to the virtual machine is received, the type of the target FPGA equipment is determined, and the target FPGA equipment is connected to the virtual machine in a connection mode corresponding to the type of the target FPGA equipment.
Therefore, the method stores the FPGA equipment information to the Nova component in advance, and after the virtual machine is created, the prestored FPGA equipment information is displayed so that a user can select the target FPGA equipment connected with the virtual machine; when an instruction for connecting the target FPGA device to the virtual machine is received, the target FPGA device is connected to the virtual machine in different connection modes according to the type of the target device, and therefore communication connection between the virtual machine and the FPGA device in the OpenStack platform is achieved. Therefore, the FPGA equipment which is communicated with the physical computer can also be communicated with the virtual machine, and a user can also conveniently manage the FPGA equipment based on the OpenStack platform, so that the utilization rate and the management efficiency of the FPGA equipment are improved.
Correspondingly, the device, the equipment and the readable storage medium for managing the FPGA equipment based on the OpenStack platform, which are provided by the embodiment of the invention, also have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for managing an FPGA device based on an OpenStack platform according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for managing an FPGA device based on an OpenStack platform according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for managing an FPGA device based on an OpenStack platform according to an embodiment of the present invention;
fig. 4 is a schematic device diagram for managing an FPGA device based on an OpenStack platform, disclosed in an embodiment of the present invention;
fig. 5 is an OpenStack platform for managing an FPGA device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a method, a device and equipment for managing an FPGA (field programmable gate array) device based on an OpenStack platform and a readable storage medium, so as to improve the utilization rate and the management efficiency of the FPGA device.
Referring to fig. 1, a method for managing an FPGA device based on an OpenStack platform provided by an embodiment of the present invention includes:
s101, after a virtual machine is created based on an OpenStack platform, visually displaying FPGA equipment information pre-stored in a Nova component so that a user can select target FPGA equipment connected with the virtual machine;
specifically, the OpenStack platform provides a solution of infrastructure as a service (IaaS) through various complementary services, and in this embodiment, FPGA device information is stored in a Nova component in the OpenStack platform in advance, and the FPGA device is managed to the OpenStack platform as an infrastructure resource, so that a user can conveniently use the FPGA device based on the OpenStack platform without being limited by physical devices.
It should be noted that the Nova component is a core component in the OpenStack platform and is a key for implementing service deployment and business computation. For example: create virtual machines, and the like. In this embodiment, the Nova component also stores the FPGA device information in advance, so that the communication connection between the virtual machine and the FPGA device can be established through the Nova component.
S102, when an instruction for connecting the target FPGA device to the virtual machine, which is input by a user, is received, determining the type of the target FPGA device, and connecting the target FPGA device to the virtual machine by adopting a connection mode corresponding to the type of the target FPGA device.
Wherein the connecting the target FPGA device to the virtual machine in a connection mode corresponding to the type of the target FPGA device comprises: and when the target FPGA equipment is virtual FPGA equipment, connecting the target FPGA equipment to the virtual machine in a Virtio connection mode.
Wherein the connecting the target FPGA device to the virtual machine in a connection mode corresponding to the type of the target FPGA device comprises: and when the target FPGA equipment is physical FPGA equipment, connecting the target FPGA equipment to the virtual machine in a passthrough connection mode.
Specifically, if a user wants to obtain a virtual machine connected to the FPGA devices, the user may select one or more FPGA devices from the FPGA devices displayed on the current page, and send a connection instruction so that the background process determines the type of the target FPGA device when receiving an instruction input by the user to connect the target FPGA device to the virtual machine, and connects the target FPGA device to the virtual machine in a connection manner corresponding to the type of the target FPGA device.
As can be seen, the embodiment provides a method for managing an FPGA device based on an OpenStack platform, where the method stores FPGA device information in advance in a Nova component, and displays the pre-stored FPGA device information after a virtual machine is created, so that a user can select a target FPGA device connected to the virtual machine; when an instruction for connecting the target FPGA device to the virtual machine is received, the target FPGA device is connected to the virtual machine in different connection modes according to the type of the target device, and therefore communication connection between the virtual machine and the FPGA device in the OpenStack platform is achieved. Therefore, the FPGA equipment which is communicated with the physical computer can also be communicated with the virtual machine, and a user can also conveniently manage the FPGA equipment based on the OpenStack platform, so that the utilization rate and the management efficiency of the FPGA equipment are improved.
The embodiment of the invention discloses another method for managing FPGA equipment based on an OpenStack platform, and compared with the previous embodiment, the technical scheme is further explained and optimized in the embodiment.
Referring to fig. 2, another method for managing an FPGA device based on an OpenStack platform according to an embodiment of the present invention includes:
s201, after a virtual machine is created based on an OpenStack platform, visually displaying FPGA equipment information pre-stored in a Nova component so that a user can select target FPGA equipment connected with the virtual machine;
s202, when an instruction for connecting the target FPGA device to the virtual machine, which is input by a user, is received, determining the type of the target FPGA device, and connecting the target FPGA device to the virtual machine by adopting a connection mode corresponding to the type of the target FPGA device;
s203, when an instruction for programming a program to a target FPGA device is received, acquiring a target stream file corresponding to the instruction from a work component for storing a binary stream file;
and S204, transmitting the target stream file to the target FPGA equipment through the common interface component so as to complete program programming on the target FPGA equipment.
The program programming can be carried out on the FPGA device based on the OpenStack platform. When an instruction for programming a program to a target FPGA device is received, acquiring a target stream file corresponding to the instruction from a liance component for storing a binary stream file; and transmitting the target stream file to the target FPGA equipment through the common interface component so as to complete program programming on the target FPGA equipment.
The liance component in the OpenStack platform is generally used for storing a virtual machine image, and in this embodiment, the liance component also stores a binary stream file so as to manage the binary stream file.
The public interface component is used as a bridge for connecting the virtual machine and the FPGA equipment, displays a uniform data interface to the virtual machine, and displays one-to-one corresponding data interfaces to the FPGA equipment of different manufacturers. For example: if the OpenStack platform collects the FPGA device information a and B of two manufacturers, the public interface component is provided with: the interface A is used for interacting with the device A, and the interface B is used for interacting with the device B, so that the difference of FPGA devices of different manufacturers is shielded from the virtual machine, and convenience is provided for data interaction.
As can be seen, the present embodiment provides another method for managing an FPGA device based on an OpenStack platform, where the method stores FPGA device information in advance in a Nova component, and displays the pre-stored FPGA device information after a virtual machine is created, so that a user can select a target FPGA device connected to the virtual machine; when an instruction for connecting the target FPGA device to the virtual machine is received, the target FPGA device is connected to the virtual machine in different connection modes according to the type of the target device, and therefore communication connection between the virtual machine and the FPGA device in the OpenStack platform is achieved. Therefore, the FPGA equipment which is communicated with the physical computer can also be communicated with the virtual machine, and a user can also conveniently manage the FPGA equipment based on the OpenStack platform. If the management operation is program programming, when an instruction for programming a program to the target FPGA device is received, a target stream file corresponding to the instruction is acquired from a work component for storing the binary stream file, and the target stream file is transmitted to the target FPGA device through a common interface component, so that the program programming is completed on the target FPGA device. Therefore, the utilization rate and the management efficiency of the FPGA device can be improved.
Based on any of the above embodiments, it should be noted that before visually displaying the FPGA device information pre-stored in the Nova component, the method further includes:
and acquiring FPGA equipment information through the agent component, and storing the acquired FPGA equipment information to the Nova component.
Based on any of the above embodiments, it should be noted that, after the target FPGA device is connected to the virtual machine, the method further includes:
and storing the connection relation between the target FPGA equipment and the virtual machine to a database of the current OpenStack platform.
Wherein, still include:
when an instruction for disconnecting the target FPGA device from the virtual machine is received, the connection between the target FPGA device and the virtual machine is cut off through the Nova component, and the connection relation between the target FPGA device and the virtual machine is deleted from the database.
That is to say, when the virtual machine no longer needs to be connected with the FPGA device, the connection between the virtual machine and the FPGA device can be disconnected through the Nova component, and the FPGA device information is recycled, so that the FPGA device can be reconnected to other virtual machines.
The device for managing the FPGA device based on the OpenStack platform according to the embodiment of the present invention is described below, and the device for managing the FPGA device based on the OpenStack platform described below and the method for managing the FPGA device based on the OpenStack platform described above may refer to each other.
Referring to fig. 3, an apparatus for managing an FPGA device based on an OpenStack platform according to an embodiment of the present invention includes:
the display module 301 is configured to visually display FPGA device information pre-stored in the Nova component after a virtual machine is created based on an OpenStack platform, so that a user can select a target FPGA device connected to the virtual machine;
a connection module 302, configured to determine a type of the target FPGA device when an instruction for connecting the target FPGA device to the virtual machine, which is input by a user, is received, and connect the target FPGA device to the virtual machine in a connection manner corresponding to the type of the target FPGA device.
Wherein, still include:
the acquisition module is used for acquiring a target stream file corresponding to an instruction from a work component for storing a binary stream file when the instruction for programming a program to the target FPGA equipment is received;
and the transmission module is used for transmitting the target stream file to the target FPGA equipment through a common interface component so as to complete program programming on the target FPGA equipment.
Wherein, the connection module is specifically configured to:
and when the target FPGA equipment is virtual FPGA equipment, connecting the target FPGA equipment to the virtual machine in a Virtio connection mode.
Wherein, the connection module is specifically configured to:
and when the target FPGA equipment is physical FPGA equipment, connecting the target FPGA equipment to the virtual machine in a passthrough connection mode.
Wherein, still include:
and the information acquisition module is used for acquiring the FPGA equipment information through the agent component and storing the acquired FPGA equipment information to the Nova component.
Wherein, still include:
and the storage module is used for storing the connection relation between the target FPGA device and the virtual machine to a database of the current OpenStack platform.
Wherein, still include:
and the deleting module is used for cutting off the connection between the target FPGA device and the virtual machine through the Nova component and deleting the connection relation between the target FPGA device and the virtual machine from the database when receiving an instruction for disconnecting the target FPGA device from the virtual machine.
As can be seen, this embodiment provides an apparatus for managing an FPGA device based on an OpenStack platform, including: a display module and a connection module. After a virtual machine is created and obtained on the basis of an OpenStack platform, visually displaying FPGA equipment information pre-stored in a Nova component by a display module so that a user can select target FPGA equipment connected with the virtual machine; when an instruction which is input by a user and used for connecting the target FPGA equipment to the virtual machine is received, the type of the target FPGA equipment is determined by the connecting module, and the target FPGA equipment is connected to the virtual machine in a connecting mode corresponding to the type of the target FPGA equipment. The two modules work in a division and cooperation mode and each takes its own role, so that the communication connection between the virtual machine in the OpenStack platform and the FPGA equipment is realized, a user can also conveniently manage the FPGA equipment based on the OpenStack platform, and the utilization rate and the management efficiency of the FPGA equipment are improved.
In the following, a device for managing an FPGA device based on an OpenStack platform according to an embodiment of the present invention is described, and a device for managing an FPGA device based on an OpenStack platform described below and a method and an apparatus for managing an FPGA device based on an OpenStack platform described above may refer to each other.
Referring to fig. 4, an apparatus for managing an FPGA device based on an OpenStack platform provided in an embodiment of the present invention includes:
a memory 401 for storing a computer program;
the processor 402 is configured to implement the steps of the method for managing an FPGA device based on an OpenStack platform according to any of the above embodiments when the computer program is executed.
The following introduces a readable storage medium provided by an embodiment of the present invention, and a readable storage medium described below and the method, apparatus, and device for managing an FPGA device based on an OpenStack platform described above may refer to each other.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for managing an FPGA device based on an OpenStack platform as described in any of the above embodiments.
According to the method provided by the invention, the following OpenStack platform for managing the FPGA device can be constructed, and the method comprises the following steps: an API component, an agent component, a conductor component, a Nova component, and a liance component, wherein: the API component includes: a common interface component and an interface component for communicating with the Nova component and the liance component; the agent component is used for acquiring FPGA information; a conductor component for solidifying the related information to the database; the Nova component is used for creating a virtual machine and establishing the connection between the virtual machine and the FPGA equipment; and the angle component is used for storing the binary stream file. Referring specifically to fig. 5, the platform shown in fig. 5 is connected to FPGA devices of two different manufacturers.
Firstly, FPGA equipment information of different manufacturers needs to be collected through an agent and reported to a Nova component, the agent can monitor the plugging and unplugging actions of the FPGA equipment on a server all the time, and the FPGA equipment is generally connected to a physical server.
After the virtual machine is created through Nova, a user can select whether to connect the FPGA equipment for the created virtual machine, if the FPGA equipment needs to be connected, the user can select the FPGA equipment which needs to be connected in a display page and send a connection instruction to a back-end process so as to complete the connection of the virtual machine and the FPGA. Of course, the FPGA device may also be connected to the virtual machine during the process of creating the virtual machine.
And if the program needs to be programmed to the FPGA equipment connected with the virtual machine, acquiring a corresponding binary stream file from the work component, and transmitting the binary stream file to the FPGA equipment through the common interface component to finish program programming.
When the virtual machine does not need to be connected with the FPGA equipment any more, the connection between the virtual machine and the FPGA equipment can be disconnected through the Nova component, and the FPGA equipment information is recycled, so that the FPGA equipment can be reconnected to other virtual machines.
Therefore, the OpenStack platform can effectively manage the relationship between the FPGA and the virtual machine, can store a binary stream file used by the FPGA by using a work component in OpenStack, and can provide FAAS (FPGA as a service) to the outside. The cost is reduced, and meanwhile, the utilization rate and the management efficiency of the FPGA are improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
1. A method for managing FPGA equipment based on an OpenStack platform is characterized by comprising the following steps:
after a virtual machine is created and obtained based on an OpenStack platform, visually displaying FPGA equipment information pre-stored in a Nova component so that a user can select target FPGA equipment connected with the virtual machine;
when an instruction which is input by a user and used for connecting the target FPGA equipment to the virtual machine is received, determining the type of the target FPGA equipment, and connecting the target FPGA equipment to the virtual machine by adopting a connection mode corresponding to the type of the target FPGA equipment;
after the target FPGA device is connected to the virtual machine, the method further includes:
when an instruction for programming a program to the target FPGA equipment is received, acquiring a target stream file corresponding to the instruction from a work component for storing a binary stream file;
transmitting the target stream file to the target FPGA device through a common interface component so as to complete program programming on the target FPGA device;
wherein the connecting the target FPGA device to the virtual machine in a connection mode corresponding to the type of the target FPGA device comprises:
when the target FPGA equipment is virtual FPGA equipment, connecting the target FPGA equipment to the virtual machine in a Virtio connection mode;
wherein the connecting the target FPGA device to the virtual machine in a connection mode corresponding to the type of the target FPGA device comprises:
and when the target FPGA equipment is physical FPGA equipment, connecting the target FPGA equipment to the virtual machine in a passthrough connection mode.
2. The method for managing the FPGA device based on the OpenStack platform according to claim 1, wherein before visually displaying the FPGA device information pre-stored in the Nova component, the method further comprises:
and acquiring FPGA equipment information through the agent component, and storing the acquired FPGA equipment information to the Nova component.
3. The method for managing an FPGA device based on an OpenStack platform according to claim 2, wherein after connecting the target FPGA device to the virtual machine, further comprising:
and storing the connection relation between the target FPGA equipment and the virtual machine to a database of the current OpenStack platform.
4. The method for managing FPGA devices based on OpenStack platform according to claim 3, further comprising:
when an instruction for disconnecting the target FPGA device from the virtual machine is received, the connection between the target FPGA device and the virtual machine is cut off through the Nova component, and the connection relation between the target FPGA device and the virtual machine is deleted from the database.
5. An apparatus for managing an FPGA device based on an OpenStack platform, comprising:
the display module is used for visually displaying the FPGA equipment information pre-stored in the Nova component after a virtual machine is created based on an OpenStack platform so that a user can select a target FPGA equipment connected with the virtual machine;
the connection module is used for determining the type of the target FPGA device when receiving an instruction which is input by a user and used for connecting the target FPGA device to the virtual machine, and connecting the target FPGA device to the virtual machine by adopting a connection mode corresponding to the type of the target FPGA device;
wherein, still include:
the acquisition module is used for acquiring a target stream file corresponding to an instruction from a work component for storing a binary stream file when the instruction for programming a program to the target FPGA equipment is received;
the transmission module is used for transmitting the target stream file to the target FPGA equipment through a common interface component so as to complete program programming on the target FPGA equipment;
wherein, the connection module is specifically configured to:
when the target FPGA equipment is virtual FPGA equipment, connecting the target FPGA equipment to the virtual machine in a Virtio connection mode;
wherein, the connection module is specifically configured to:
and when the target FPGA equipment is physical FPGA equipment, connecting the target FPGA equipment to the virtual machine in a passthrough connection mode.
6. The device for managing the FPGA device based on the OpenStack platform is characterized by comprising the following steps:
a memory for storing a computer program;
a processor for implementing the steps of the OpenStack platform based method for managing FPGA devices according to any one of claims 1 to 4 when executing the computer program.
7. A readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for managing an FPGA device based on an OpenStack platform according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910063589.2A CN109634627B (en) | 2019-01-23 | 2019-01-23 | Method for managing FPGA (field programmable Gate array) equipment based on OpenStack platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910063589.2A CN109634627B (en) | 2019-01-23 | 2019-01-23 | Method for managing FPGA (field programmable Gate array) equipment based on OpenStack platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109634627A CN109634627A (en) | 2019-04-16 |
CN109634627B true CN109634627B (en) | 2022-02-18 |
Family
ID=66063255
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910063589.2A Active CN109634627B (en) | 2019-01-23 | 2019-01-23 | Method for managing FPGA (field programmable Gate array) equipment based on OpenStack platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109634627B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110308997A (en) * | 2019-07-11 | 2019-10-08 | 厦门厦科云海信息技术有限公司 | Method based on OpenStack platform management GPU equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107102890A (en) * | 2017-07-12 | 2017-08-29 | 郑州云海信息技术有限公司 | The moving method and moving apparatus of a kind of virtual machine |
CN107870801A (en) * | 2016-09-26 | 2018-04-03 | 中国电信股份有限公司 | The automatic activating method of virtual machine High Availabitity function, device and system |
CN107977256A (en) * | 2017-12-15 | 2018-05-01 | 郑州云海信息技术有限公司 | It is a kind of to the access method of FPGA accelerator cards, device and medium |
CN108897601A (en) * | 2018-06-29 | 2018-11-27 | 郑州云海信息技术有限公司 | A kind of FPGA application method, system and relevant apparatus based on virtualization |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10048977B2 (en) * | 2015-12-22 | 2018-08-14 | Intel Corporation | Methods and apparatus for multi-stage VM virtual network function and virtual service function chain acceleration for NFV and needs-based hardware acceleration |
US20180189871A1 (en) * | 2017-01-03 | 2018-07-05 | Experian Information Solutions, Inc. | Systems and methods for cross-platform batch data processing |
US11157422B2 (en) * | 2017-03-31 | 2021-10-26 | Intel Corporation | Shared memory for intelligent network interface cards |
-
2019
- 2019-01-23 CN CN201910063589.2A patent/CN109634627B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107870801A (en) * | 2016-09-26 | 2018-04-03 | 中国电信股份有限公司 | The automatic activating method of virtual machine High Availabitity function, device and system |
CN107102890A (en) * | 2017-07-12 | 2017-08-29 | 郑州云海信息技术有限公司 | The moving method and moving apparatus of a kind of virtual machine |
CN107977256A (en) * | 2017-12-15 | 2018-05-01 | 郑州云海信息技术有限公司 | It is a kind of to the access method of FPGA accelerator cards, device and medium |
CN108897601A (en) * | 2018-06-29 | 2018-11-27 | 郑州云海信息技术有限公司 | A kind of FPGA application method, system and relevant apparatus based on virtualization |
Non-Patent Citations (2)
Title |
---|
ACCLOUD (Accelerated CLOUD): A novel FPGA-Accelerated cloud archictecture;Alper Yazar;《2018 26th Signal Processing and Communications Applications Conference (SIU)》;20180709;第I-IV节 * |
可重配置加速堆栈;赛灵思;《今日电子》;20161231;71-72 * |
Also Published As
Publication number | Publication date |
---|---|
CN109634627A (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110351378A (en) | A kind of control method and system of internet of things equipment | |
CN104484114A (en) | Data transfer method, mobile terminal and data transfer system | |
CN109634627B (en) | Method for managing FPGA (field programmable Gate array) equipment based on OpenStack platform | |
CN111200653B (en) | Multi-platform communication method, multi-platform communication device and intermediate server | |
CN112689012A (en) | Cross-network proxy communication method and device | |
CN110308997A (en) | Method based on OpenStack platform management GPU equipment | |
CN112131092A (en) | Page debugging method and device | |
CN110971696B (en) | System and method for realizing virtual electronic card communication | |
CN114374614A (en) | Network topology configuration method and device | |
CN112947918A (en) | Data display method and device | |
CN111737372A (en) | Map data generation method and device | |
CN107038170B (en) | Method and device for recommending application program | |
CN112581069A (en) | System, method, apparatus and storage medium for processing task | |
CN112367422B (en) | Interaction method and device of mobile terminal equipment and display system and storage medium | |
CN112328139B (en) | Display method, display device and storage medium | |
CN109561146A (en) | Document down loading method, device, terminal device | |
CN114697774B (en) | Port management method and device, computer readable storage medium and electronic equipment | |
CN103095842B (en) | Recommend the method and apparatus of communication objective mark | |
CN110908916B (en) | Debugging tool and debugging method | |
CN114327517B (en) | Software-driven implementation method and system | |
EP4160498A1 (en) | Product management method and related device | |
CN114398367A (en) | Data storage method, device and storage medium | |
CN108848187B (en) | Method, device and equipment for establishing communication connection and readable storage medium | |
CN115278555A (en) | Online transaction method and device based on 5G message | |
CN115988077A (en) | Method and apparatus for dynamically adapting feedback information, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |