Accelerator control system, accelerator control method, and accelerator control program
The accelerator control system addresses CPU overheads and scalability issues by using metadata-based autonomous operations among accelerators, facilitating high-speed real-time processing and efficient data transfer.
Patent Information
- Application Number
- JP2023515978
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-22
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-04-22
AI Technical Summary
Conventional accelerator control systems face challenges in speeding up real-time processing due to CPU overheads from exclusive control, interrupt notifications, and synchronization, especially when multiple accelerators are involved, leading to reduced scalability and potential data transfer issues.
An accelerator control system that utilizes a metadata-based approach, where accelerators autonomously poll and read metadata from a main memory, reducing CPU intervention and enabling asynchronous operation, allowing direct data transfer between accelerators without CPU involvement, thus minimizing overheads and enhancing scalability.
The system achieves high-speed real-time processing by reducing CPU overheads and enabling efficient data transfer between multiple accelerators, improving scalability and utilization of calculation resources.
Smart Images

Figure 00000013_0000 
Figure 00000013_0001 
Figure 00000014_0000
Abstract
Description
[Technical field]
[0001] The present invention relates to an accelerator control system, an accelerator control method, and an accelerator control program. [Background technology]
[0002] Conventionally, a technology is known in which multiple computation accelerators are incorporated into a computation system to speed up processing. Due to limitations in semiconductor miniaturization technology, it has become difficult to improve the operating frequency of processors and to highly integrate computing machines. This technology realizes high-performance calculations by offloading processing to accelerators specialized for specific processing. Furthermore, by operating multiple accelerators in a coordinated manner, it is possible to speed up processing consisting of multiple calculations (see Non-Patent Documents 1 to 3).
[0003] Specifically, it is necessary to control inter-accelerator communication, which transmits the results of calculations made by one accelerator to another accelerator. Therefore, after the calculation process at the source accelerator is completed, the CPU controls data communication between accelerators. The CPU drives data communication between accelerators by sending a control signal to the destination accelerator requesting it to prepare to accept data, and then sending a control signal to the source accelerator to start transfer. After data communication between accelerators, the destination accelerator performs calculations on the data. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] J. Yang, DB Minturn, F. Hady, “When Poll is Better than Interrupt”, FAST, vol.12, pp.3-3, [online], 2012, [Retrieved March 29, 2021], Internet<URL:https: / / www.usenix.org / system / files / conference / fast12 / yang.pdf> [Non-Patent Document 2] “CUDA Toolkit Documentation v11.2.2”, [online], NVIDIA, [Retrieved March 29, 2021], Internet<URL:https: / / docs.nvidia.com / cuda / > [Non-Patent Document 3] K. Gulati, S. P. Khatri, “GPU Architecture and the CUDA Programming Model”, Hardware acceleration of EDA algorithms, pp.23-30, [online], Springer, [Retrieved March 29, 2021], Internet<URL:https: / / link.springer.com / content / pdf / 10.1007%2F978-1-4419-0944-2_3.pdf> Summary of the Invention [Problem to be solved by the invention]
[0005] However, in conventional technology, it can be difficult to speed up real-time processing using multiple accelerators. For example, because accelerators are controlled by the CPU, each time data transfer processing between accelerators occurs, exclusive control between the source accelerator and the destination accelerator, interrupt notification of processing completion, and synchronization control occur. These processes become overhead and increase delay time. In addition, when using multiple accelerators, in addition to the overhead described above, there are cases where direct data transfer between accelerators is impossible due to bus specifications, which reduces scalability. Therefore, it is difficult to use accelerators in real-time processing or in areas of diverse processing.
[0006] The present invention has been made in view of the above, and has an object to increase the speed of real-time processing by using multiple accelerators. [Means for solving the problem]
[0007] In order to solve the above-mentioned problems and achieve the object, an accelerator control system according to the present invention includes an accelerator control device and a plurality of accelerators, the accelerator control device includes a storage unit that stores control data including a location of data to be processed, information on an accelerator performing the processing, and information specifying the content of the processing of the accelerator, and a determination unit that determines completion of processing by an accelerator when control data that has been processed by the accelerator is stored in the storage unit, the accelerator includes an acquisition unit that acquires the control data from the storage unit, and an acquisition unit that acquires the control data from the storage unit and determines the location of the data to be processed that is included in the acquired control data and the accelerator the control data includes a storage unit which stores the control data in the memory unit when the control data does not include information about a destination accelerator when the control data is completed; a transfer unit which transfers the control data to the destination accelerator when the control data includes information about the destination accelerator; and a second calculation unit which, when the control data is received from another accelerator, performs calculation on the data that is the target of the calculation in accordance with information that specifies the location of the data that is the target of the calculation and the content of the calculation, which is included in the control data. Effect of the Invention
[0008] According to the present invention, it is possible to increase the speed of real-time processing by using a plurality of accelerators. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a schematic diagram illustrating a schematic configuration of an accelerator control system according to the present embodiment. [Diagram 2] FIG. 2 is a diagram for explaining the accelerator control system of the present embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of the data structure of the metadata. [Figure 4] FIG. 4 is a diagram illustrating an example of the structure of the metadata buffer. [Diagram 5] FIG. 5 is a diagram for explaining the data buffer. [Figure 6] FIG. 6 is a diagram for explaining inter-accelerator communication. [Figure 7] FIG. 7 is a flowchart showing an accelerator control process procedure in the accelerator. [Figure 8] FIG. 8 is a diagram illustrating an example of a computer that executes an accelerator control program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to this embodiment. In addition, in the description of the drawings, the same parts are indicated by the same reference numerals.
[0011] [Accelerator control system configuration] Fig. 1 is a schematic diagram illustrating a schematic configuration of an accelerator control system according to the present embodiment. As shown in Fig. 1, the accelerator control system 1 includes an accelerator control device 10 and a plurality of accelerators 20. The accelerator control device 10 and the accelerators 20 can communicate data with each other via a communication line such as a bus line.
[0012] The accelerator control device 10 is an information processing device realized by using a general-purpose processor such as a CPU (Central Processing Unit). In the accelerator control device 10, an application, which is a process defined by a user, is executed in a user space. In addition, in a kernel space, operation and management of physical devices such as the accelerator 20 and abstraction processing of the physical devices in the user space processing are performed.
[0013] The user memory space and the kernel memory space are realized by semiconductor memory elements such as RAM (Random Access Memory) and flash memory, or storage devices such as hard disks and optical disks, and function as storage units. The storage unit stores in advance the processing programs that operate the accelerator control device 10 and data used during the execution of the processing programs, or stores them temporarily each time processing is performed.
[0014] The control unit realized by using a general-purpose processor executes a processing program stored in the memory, thereby functioning as each functional unit such as a memory management function 12 of the device driver, a metadata control function 13, and an API 14 (described later), as exemplified in Fig. 1. The control unit may also include other functional units (not shown).
[0015] In the accelerator control device 10, data to be processed (hereinafter also referred to as processing data) is placed in a data buffer 11a in a user memory space on a user space. Control data (hereinafter also referred to as metadata) including information specifying the location of the data to be processed and the content of the accelerator's processing is placed in a metadata buffer 11b in a kernel memory space on a kernel space.
[0016] The accelerator 20 is a computation accelerator realized by a GPU (Graphics Processing Unit), an FPGA (Field Programmable Gate Array), a DPU (Data Processing Unit), etc., and functions as various functional units such as a metadata access mechanism 21, a function control block 22, a data transfer function 23, and a computation function 24, as illustrated in FIG. 1.
[0017] The accelerator 20 reads the processing data and metadata to offload the arithmetic processing. Specifically, the accelerator 20 monitors whether or not metadata is arranged in the metadata buffer 11b by autonomous polling. If metadata is arranged, the accelerator 20 reads the arranged metadata, analyzes it, and drives the accelerator 20. In addition, the accelerator 20 stores the result of the arithmetic processing on the processing data in the data buffer 11a.
[0018] The accelerator control device 10 can proceed to the next process asynchronously with the accelerator 20. When the accelerator 20 completes the arithmetic process, it places the metadata in the metadata buffer 11b. This causes the accelerator control device 10 to consider the arithmetic process to be complete. The accelerator control device 10 also obtains the result of the arithmetic process on the processing data from the data buffer 11a and proceeds to the next process.
[0019] Specifically, the accelerator control device 10 determines the operation of the accelerator 20 by placing metadata including the location of the processing data and the contents of the computational processing in a metadata buffer 11b in the kernel memory space via a metadata control function 13 implemented in the device driver.
[0020] The accelerator control device 10 creates a data buffer 11a in the user memory space via the memory management function 12, which the accelerator control device 10 and the accelerator 20 can refer to, and places processing data therein.
[0021] The accelerator 20 has a metadata access mechanism 21. The metadata access mechanism 21 has a function of polling the metadata buffer 11b in the kernel memory space, a function of reading metadata, and a function of writing metadata to the metadata buffer, and can autonomously read metadata without relying on an explicit control signal from the accelerator control device 10.
[0022] Information such as the address of the metadata buffer 11b is notified to the accelerator 20 by the accelerator initialization function when the device driver is loaded.
[0023] The accelerator 20 reads the metadata from the metadata buffer 11b, and the metadata analysis function 22a analyzes the data and operates according to the description. The accelerator 20 drives the data reading function 23a in the data transfer function 23 based on the address and length information of the processing data included in the metadata, reads the processing data from the data buffer 11a, and uses it for the calculation in the calculation function 24. The calculation function 24 executes the calculation process based on the calculation information described in the metadata. The metadata analysis function 22a passes the analysis result to the calculation function 24 and sets the calculation process content by the calculation function 24.
[0024] After the arithmetic processing is completed, the result of the arithmetic processing is transferred from the arithmetic function 24 to the data writing function 23b, and written into the data buffer designated by the data transfer control function 22b. Then, a notification that the data transfer is completed is sent from the data transfer function 23 to the completion notification function 22c, and the metadata is written into the metadata buffer 11b by the writing function of the metadata access mechanism 21, and the operation of the accelerator 20 is completed.
[0025] In this way, in the accelerator control system 1, metadata for controlling data transfer and arithmetic processing is placed in the main memory, and the accelerator 20 autonomously polls and reads the metadata. This reduces the overhead of accelerator control such as interrupts, and enables real-time processing.
[0026] In addition, the accelerator 20 can directly transfer processing data to the user space of the accelerator control device 10, and the accelerator control device 10 and the accelerator 20 can be driven asynchronously, thereby reducing delays and CPU utilization.
[0027] Furthermore, since the accelerator 20 can operate by accessing the main memory of the accelerator control device 10, expansion to a plurality of accelerators 20 is possible, and scalability is greatly improved.
[0028] Furthermore, when a calculation process is performed using multiple accelerators 20, the metadata further includes information on the accelerator performing the calculation, the operation in the accelerator, the location of the processing data to be read, etc. Based on this information, the source accelerator 20a creates settings and control information for the destination accelerator 20b (hereinafter referred to as metadata or inter-accelerator metadata), and performs data communication of the metadata directly between the accelerators without going through the accelerator control device 10.
[0029] After completing the arithmetic processing, the source accelerator 20a outputs the arithmetic processing result to the intermediate data buffer 11c in the kernel memory space, and transmits the metadata to the destination accelerator 20b.
[0030] The destination accelerator 20b judges whether or not it is possible to receive the transmitted metadata based on the current state of the accelerator 20b. If it is possible to receive the metadata, the destination accelerator 20b notifies the source accelerator 20a of the completion of reception. The source accelerator 20a is in a standby state until it is notified of the completion of reception from the destination accelerator 20b, and if it does not receive the notification of the completion of reception within a predetermined time, it again transmits the metadata to the destination accelerator 20b.
[0031] The destination accelerator 20b analyzes the received metadata, reads the intermediate data from the intermediate data buffer 11c, and executes the arithmetic processing.
[0032] Specifically, when multiple accelerators 20 cooperate with each other, the metadata describes information for operation by the multiple accelerators 20. The accelerators 20 analyze the metadata read by the metadata analysis function 22a, and perform data communication between the accelerators after the computation process is completed.
[0033] First, after the transfer source accelerator 20a finishes the arithmetic processing, it outputs the arithmetic result of the processing data to be transferred to the transfer destination accelerator 20b to the intermediate data buffer 11c in the kernel memory space.
[0034] Thereafter, the source accelerator 20a transmits metadata including location information of the arithmetic processing result, the content of the arithmetic processing, and information regarding cooperation between accelerators to the destination accelerator 20b via the bus using the destination accelerator notification function 22d.
[0035] The destination accelerator 20b receives the metadata through the reception function of the inter-accelerator metadata communication mechanism 21d. The metadata is sent to the analysis function, which determines whether or not to receive the metadata based on the state of the accelerator. At that time, the reception notification function of the inter-accelerator metadata communication mechanism 21d generates information on whether or not the metadata has been received, and returns the information to the source accelerator 20a.
[0036] When the source accelerator 20a in standby receives a notification of completion of reception from the destination accelerator 20b, it considers the transfer to be complete and moves on to the next process. If the source accelerator 20a does not receive a notification of completion of reception within a predetermined time, it transmits the metadata again.
[0037] If the destination accelerator 20b is able to receive the transferred metadata, it executes arithmetic processing based on the metadata read from the analysis function of the inter-accelerator metadata communication mechanism 21d.
[0038] In this way, the accelerator control system 1 performs processing using multiple accelerators 20 without going through the accelerator control device 10, thereby reducing overheads such as exclusive processing of source accelerator / destination accelerator, interrupt notification of processing completion, and synchronous control, and does not reduce scalability. Also, in communication processing, the accelerator control device 10 can be driven asynchronously with each accelerator 20, so that each computing resource can be effectively utilized. In addition, by using a main memory to transfer processing data, a data source can be referenced from multiple accelerators 20 without the control of the accelerator control device 10. Therefore, data transfer is possible regardless of the bus specifications, and a scalable system that can handle a wide range of workloads can be constructed.
[0039] [Accelerator control device] Fig. 2 is a diagram for explaining the accelerator control system of this embodiment. As illustrated in Fig. 2, in the accelerator control device 10, the API 14 is a group of functions that can be called from an application, and provides functions necessary for the operation of the accelerator 20. For example, the API functions as a data buffer securing function, a data buffer releasing function, a metadata creating function, a metadata sending function, a computation completion sensing function, and a communication metadata creating function.
[0040] The data buffer securing function generates a data buffer 11a which is a storage area for transmitting data to and receiving data from the accelerator 20. The data buffer securing function calls the memory management function 12 and obtains area information of the data buffer 11a from the memory management function 12.
[0041] The data buffer release function deletes the data buffer 11a. The data buffer release function calls the memory management function 12, notifies it of area information of the data buffer 11a to be released, and releases the area.
[0042] The metadata creation function creates metadata, which is control data to which control information for the accelerator 20 is added. The metadata transmission function transmits the metadata created by the metadata creation function to the metadata control function 13. The computation completion detection function calls the metadata control function 13 and checks whether processing by any accelerator 20 has ended based on the return value of the metadata control function 13. The communication metadata creation function creates communication path information for communication between accelerators.
[0043] The device driver exists in the kernel space and provides a set of functions such as a memory management function 12 and a metadata control function 13 for handling a specific device.
[0044] The memory management function 12 is called from the API 14 in the user space, and secures, releases and manages the area of the data buffer 11a.
[0045] The metadata buffer 11b is a storage area for transmitting and receiving metadata to and from the accelerator 20, and is generated by an accelerator initialization function according to the number of accelerators 20. For example, the metadata buffer 11b stores control data including the location of data to be processed, information about the accelerator 20 that performs the processing, and information specifying the content of the processing of the accelerator 20.
[0046] The metadata buffer 11b includes an RQ (Request Queue) buffer that transmits metadata to the accelerator 20 and a CQ (Completion Queue) buffer that receives metadata from the accelerator 20.
[0047] The metadata control function 13 is called from the API 14 in the user space, and performs reading, writing and management of the RQ buffer / CQ buffer of the metadata buffer 11b. The metadata control function 13 has a polling function 13a and a writing function 13b.
[0048] The Polling function 13a polls the CQ buffer to confirm the completion of the calculation. That is, the Polling function 13a functions as a determination unit and monitors whether or not metadata that has been calculated by the accelerator 20 is stored in the metadata buffer 11b. Then, when metadata that has been calculated by the accelerator 20 is stored in the metadata buffer 11b, the Polling function 13a determines that the calculation process by the accelerator 20 is completed. Also, the writing function 13b writes to the RQ buffer.
[0049] [Accelerator] In the accelerator 20, the metadata access mechanism 21 includes a polling function 21a, a read function 21b, a write function 21c, and an inter-accelerator metadata communication mechanism 21d as functions for accessing the metadata buffer 11b in the kernel space.
[0050] The Polling function 21a polls the RQ buffer of the metadata buffer 11b to check whether or not there is metadata in the RQ buffer. That is, the Polling function 21a functions as a monitoring unit and monitors whether or not there is metadata in the metadata buffer 11b.
[0051] The read function 21b functions as an acquisition unit and acquires metadata from the metadata buffer 11b. That is, when the Polling function 21a confirms that metadata is present in the RQ buffer, the read function 21b reads the metadata and transfers it to the function control block 22.
[0052] The write function 21c writes the metadata to the CQ buffer of the metadata buffer 11b. That is, the write function 21c functions as a storage unit and stores the metadata in the metadata buffer 11b when the arithmetic processing is completed and the metadata does not include information on the accelerator 20b of the transfer destination.
[0053] The function control block 22 controls the sharing of necessary data and drive / pause timing for each functional unit of the accelerator 20. The function control block 22 includes a metadata analysis function 22a, a data transfer control function 22b, a completion notification function 22c, and a transfer destination accelerator notification function 22d.
[0054] The metadata analysis function 22a extracts information such as the operation and the address and length of the data buffer 11a from the metadata transmitted from the metadata access mechanism 21. The data transfer control function 22b provides a function for controlling the reading and writing of data in the data transfer function 23. The completion notification function 22c transfers the metadata to be written to the CQ buffer to the metadata access mechanism 21.
[0055] The calculation function 24 functions as a calculation unit and performs calculation processing on the processing data to be processed in accordance with information specifying the location of the processing data to be processed, which is included in the acquired metadata, and the content of the calculation processing of the accelerator 20.
[0056] Specifically, the calculation function 24 includes an input control function, a calculation circuit, and an output control function. The calculation circuit has multiple independent calculation circuits, and it is possible to define a calculation for each of them. The input control function inputs data sent from the data reading function 23a of the data transfer function 23 to an appropriate calculation circuit based on the metadata information sent from the function control block 22.
[0057] The output control function transfers the results of the arithmetic processing performed on the processing data output from the arithmetic circuit to the data writing function 23b of the data transfer function 23 at an appropriate timing.
[0058] The data writing function 23b of the data transfer function 23 functions as a storage unit and stores the results of the arithmetic processing on the processing data in the data buffer 11a.
[0059] Next, Fig. 3 is a diagram illustrating an example of the data configuration of metadata. As shown in Fig. 3, the metadata is composed of a total of 256 bits of data, including a 32-bit task ID, a 32-bit operation, a 32-bit length of read data, a 64-bit address of read data, a 32-bit length of write data, and a 64-bit address of write data.
[0060] Moreover, Fig. 4 is a diagram illustrating the structure of the metadata buffer. As shown in Fig. 4, the metadata shown in Fig. 3 is stored in the RQ buffer / CQ buffer. The head information of the RQ buffer shown in Fig. 4 is controlled by the metadata control function 13. The metadata control function 13 forms the metadata transmitted from the metadata transmission function of the API 14 into the configuration shown in Fig. 3, stores it in the RQ buffer, and then shifts the head information to the next position.
[0061] Similarly, when the metadata control function 13 is called by the computation completion detection function of the API 14 using the head information in the CQ buffer, it reads metadata from the CQ buffer and shifts the head to the next position.
[0062] FIG. 5 is a diagram for explaining the data buffer. The memory management function 12 manages the address and state of the data buffer 11a with a table illustrated in FIG. 5. As shown in FIG. 5, the table manages the physical address of the data buffer 11a and the state of that address. When setting metadata for the accelerator 20, the key is referenced to obtain the physical address of the desired data buffer 11a, and the read data address and write data address are set. This allows management to absorb the difference between virtual addresses in the kernel space and the user space.
[0063] Returning to the explanation of Fig. 2, the above-mentioned writing function 21c functions as a transfer unit, and when the metadata includes information about the accelerator 20b as a transfer destination, transfers the metadata to the accelerator 20b.
[0064] The inter-accelerator metadata communication mechanism 21d includes a receiving function, an analyzing function, and a receiving notification function, and provides functions necessary for communication between accelerators. The receiving function functions as a confirmation unit and confirms whether metadata can be received from another accelerator 20a. In other words, the receiving function generates data for notifying whether metadata sent from another accelerator 20 (transfer source accelerator 20a) can be received and transmits it to the transfer source accelerator 20a.
[0065] The destination accelerator notification function 22d of the function control block 22 provides a function for notifying the destination accelerator 20b of metadata. The metadata analysis function 22a extracts information on the operation and the address and length of the data buffer from the metadata sent from the metadata access mechanism 21. In addition, the metadata analysis function 22a extracts information on the destination accelerator 20b from the metadata. Furthermore, if there is no notification of completion of reception from the destination accelerator 20b, the metadata analysis function 22a resends the metadata via the destination accelerator notification function 22d and the writing function 21c. If the writing function 21c does not receive a notification of whether or not the metadata can be received from the destination accelerator 20b within a predetermined time, it resends the metadata.
[0066] In addition, in the destination accelerator 20b, the calculation function 24 functions as a second calculation unit, and when metadata is received from the other accelerator 20a, as described below, the calculation function 24 performs calculation processing on the intermediate data to be processed in accordance with information specifying the location of the intermediate data to be processed, which is included in the metadata, and the content of the calculation processing.
[0067] When the metadata is transferred to the destination accelerator 20b, the data writing function 23b of the data transfer function 23 stores intermediate data of the result of the arithmetic processing on the processing data to be processed in the intermediate data buffer 11c. In the destination accelerator 20b, the arithmetic function 24 reads the result of the arithmetic processing stored in the intermediate data buffer 11c and makes it the subject of the arithmetic processing.
[0068] Here, FIG. 6 is a diagram for explaining inter-accelerator communication. In the accelerator control system 1, inter-accelerator communication is realized by using metadata. As shown in FIG. 6(a), a communication path for inter-accelerator communication is expressed by a graph in which each accelerator 20 is represented as a vertex V0, V1, V2, .... This graph is represented as an adjacency matrix, and is handled as data. For example, the graph illustrated in FIG. 6(a) can be represented as an adjacency matrix as shown in FIG. 6(b).
[0069] These pieces of information can be handled by the accelerator 20 by making them into the data structure shown in Fig. 6(c). In the data structure shown in Fig. 6(c), the first 8 bits indicate the size of the matrix, and the accelerator 20 can know the size of the data of the matrix body. The next 256 bits are the data of the matrix body, and include connection information between accelerators. The following fields describe information such as the content of the calculation to drive the destination accelerator 20b and the location of the processed data.
[0070] [Accelerator control processing] Next, Fig. 7 is a flowchart showing an accelerator control process procedure in the accelerator 20. The flowchart in Fig. 7 starts, for example, when an application issues an instruction to start the process.
[0071] 7 is started at a predetermined interval. The accelerator 20 monitors the RQ buffer of the metadata buffer 11b by polling (step S1). The accelerator 20 also checks whether metadata has been transferred from another accelerator 20 (step S2).
[0072] If metadata has not been transferred from another accelerator 20 (step S2, No), the accelerator 20 proceeds to step S3. On the other hand, if metadata has been transferred from another accelerator 20 (step S2, Yes), the accelerator 20 (destination accelerator 20b) transmits a notification of completion of metadata reception to the source accelerator 20a, analyzes the metadata (step S4), and proceeds to step S5.
[0073] In step S3, if the metadata is not set in the RQ buffer (step S3, No), the accelerator 20 returns the process to step S1. On the other hand, if the metadata is set in the RQ buffer (step S3, Yes), the accelerator 20 reads and analyzes the metadata (step S5).
[0074] Furthermore, the accelerator 20 acquires processing data from the data buffer 11a based on the analysis result (step S6), and performs arithmetic processing (step S7).
[0075] If the accelerator 20 to which the data is to be transferred does not exist (step S8, No), the accelerator 20 writes the processed data to the data buffer 11a (step S9), transmits the metadata to the CQ buffer (step S10), and completes the process. After that, the accelerator 20 returns the process to step S1.
[0076] On the other hand, if the destination accelerator 20 exists (step S8, Yes), the accelerator 20, as the source accelerator 20a, writes the arithmetic processing result of the processing data to the intermediate data buffer 11c (step S11) and transmits metadata to the destination accelerator 20b (step S12). Then, when the accelerator 20 receives a notification of completion of reception from the destination accelerator 20b, it considers the transfer of the metadata to be completed and returns the process to step S1.
[0077] [effect] As described above, in the accelerator control system 1 of this embodiment, the metadata buffer 11b in the accelerator control device 10 stores control data including the location of data to be processed, information about the accelerator 20 performing the processing, and information specifying the content of the processing by the accelerator 20. When metadata that has been processed by the accelerator 20 is stored in the metadata buffer 11b, the polling function 13a determines whether the processing by the accelerator 20 has been completed.
[0078] In addition, in the accelerator 20, the read function 21b acquires metadata from the metadata buffer 11b. The calculation function 24 performs calculation processing on the processing data to be processed according to the location of the processing data to be processed and the information specifying the content of the calculation processing of the accelerator 20, which are included in the acquired metadata. When the calculation processing is completed and the metadata does not include information on the accelerator to be transferred, the write function 21c stores the metadata in the metadata buffer 11b. When the metadata includes information on the accelerator 20b to be transferred, the write function 21c transfers the control data to the accelerator 20b. When metadata is received from another accelerator 20a, the calculation function 24 performs calculation processing on the intermediate data to be processed according to the location of the intermediate data to be processed and the information specifying the content of the calculation processing, which are included in the metadata.
[0079] As a result, the accelerator control system 1 performs processing using multiple accelerators 20 without going through the accelerator control device 10, thereby reducing overhead such as exclusive processing of the source acceleration rate / destination acceleration rate, interrupt notification of processing completion, and synchronization control, thereby enabling high-speed real-time processing without reducing scalability.
[0080] In addition, the inter-accelerator metadata communication mechanism 21d checks whether metadata can be received from the other accelerator 20a, thereby ensuring that data transfer between the accelerators is performed reliably.
[0081] Furthermore, when the writing function 21c does not receive a notification of whether the metadata can be received from the accelerator 20b of the transfer destination within a predetermined time, the writing function 21c resends the metadata, thereby ensuring that data transfer between the accelerators is performed.
[0082] Furthermore, when the metadata is transferred to the destination accelerator 20b, the data writing function 23b stores intermediate data of the result of the arithmetic processing on the processing data to be processed in the intermediate data buffer 11c. In the destination accelerator 20b, the arithmetic function 24 reads the result of the arithmetic processing stored in the intermediate data buffer 11c and uses it as the target of the arithmetic processing. This allows data transfer between the accelerators to be completed efficiently.
[0083] In addition, the Polling function 21a monitors whether or not there is metadata in the metadata buffer 11b, which enables the accelerator 20 to perform processing autonomously.
[0084] In addition, the Polling function 13a monitors whether or not there is processed metadata in the metadata buffer 11b. This enables the accelerator control device 10 to perform processing asynchronously with the accelerator 20.
[0085] [program] A program in which the processing executed by the accelerator control device 10 according to the above embodiment is written in a language executable by a computer can also be created. As an embodiment, the accelerator control device 10 can be implemented by installing an accelerator control program that executes the above accelerator control processing as package software or online software on a desired computer. For example, the accelerator control program can be executed by an information processing device to cause the information processing device to function as the accelerator control device 10. The information processing device referred to here includes desktop or notebook personal computers. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone System), and further slate terminals such as PDA (Personal Digital Assistant). The functions of the accelerator control device 10 may be implemented in a cloud server.
[0086] 8 is a diagram showing an example of a computer that executes an accelerator control program. The computer 1000 includes, for example, a memory 1010, a CPU 1020, a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.
[0087] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1031. The disk drive interface 1040 is connected to a disk drive 1041. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1041. The serial port interface 1050 is connected to a mouse 1051 and a keyboard 1052, for example. The video adapter 1060 is connected to a display 1061, for example.
[0088] Here, the hard disk drive 1031 stores, for example, an OS 1091, an application program 1092, a program module 1093, and program data 1094. Each piece of information described in the above embodiments is stored in the hard disk drive 1031 or memory 1010, for example.
[0089] The accelerator control program is stored in the hard disk drive 1031, for example, as a program module 1093 in which instructions to be executed by the computer 1000 are written. Specifically, the hard disk drive 1031 stores the program module 1093 in which each process executed by the accelerator control device 10 described in the above embodiment is written.
[0090] Furthermore, data used for information processing by the accelerator control program is stored as program data 1094, for example, in the hard disk drive 1031. Then, the CPU 1020 reads out the program module 1093 and the program data 1094 stored in the hard disk drive 1031 into the RAM 1012 as necessary, and executes each of the above-mentioned procedures.
[0091] The program module 1093 and program data 1094 related to the accelerator control program are not limited to being stored in the hard disk drive 1031, and may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1041 or the like. Alternatively, the program module 1093 and program data 1094 related to the accelerator control program may be stored in another computer connected via a network such as a LAN or a WAN (Wide Area Network), and read by the CPU 1020 via the network interface 1070.
[0092] Although the embodiment to which the invention made by the present inventor is applied has been described above, the present invention is not limited by the description and drawings which form a part of the disclosure of the present invention according to the present embodiment. In other words, other embodiments, examples, operation techniques, etc. made by those skilled in the art based on the present embodiment are all included in the scope of the present invention. [Explanation of symbols]
[0093] 10 Accelerator control device 11a Data buffer (storage section) 11b Metadata buffer (storage section) 11c Intermediate data buffer (storage section) 12 Memory Management Functions 13 Metadata Control Functions 13a Polling function (judgment section) 13b Write function 14 API 20 Accelerators 20a Source Accelerator 20b Destination Accelerator 21 Metadata Access Mechanisms 21a Polling function (acquisition part) 21b Reading function 21c Write function (storage section, transfer section) 21d Inter-accelerator metadata communication mechanism (verification part) 22 Function Control Blocks 22a Metadata Analysis Function 22b Data transfer control function 22c Completion notification function 22d Destination accelerator notification function 23 Data transfer function 23a Data reading function 23b Data writing function 24 Calculation function (calculation unit, second transfer unit)
Claims
1. An accelerator control device and a plurality of accelerators, The accelerator control device includes: a storage unit that stores control data including a location of data to be processed, information on an accelerator that performs the processing, and information that specifies the content of the processing of the accelerator; a determination unit that determines completion of the arithmetic processing by the accelerator when the control data that has been arithmetic processed by the accelerator is stored in the storage unit, The accelerator comprises: an acquisition unit that acquires the control data from the storage unit; a calculation unit that performs a calculation process on the data that is the target of the calculation process in accordance with information that specifies the location of the data that is the target of the calculation process and the content of the calculation process of the accelerator, which is included in the acquired control data; a storage unit that stores the control data in the storage unit when the arithmetic processing is completed and when the control data does not include information on a destination accelerator; a transfer unit that transfers the control data to a destination accelerator when the control data includes information about the destination accelerator; a second arithmetic unit that, when receiving the control data from another accelerator, performs arithmetic processing on the data that is the target of the arithmetic processing in accordance with information specifying the location of the data that is the target of the arithmetic processing and the content of the arithmetic processing, which is included in the control data. An accelerator control system comprising:
2. 2. The accelerator control system according to claim 1, further comprising a confirmation unit that confirms whether the control data can be received from another accelerator.
3. 3. The accelerator control system according to claim 2, wherein the transfer unit retransmits the control data if the accelerator to which the control data is to be transferred does not notify the accelerator of whether or not the control data can be received within a predetermined time.
4. the storage unit stores a result of the arithmetic processing on the data to be processed in the memory unit when the control data is transferred to the accelerator of a transfer destination; In the accelerator of the transfer destination, the second calculation unit reads the result of the calculation process stored in the storage unit and sets the result as a target of the calculation process.
2. The accelerator control system according to claim 1.
5. 2. The accelerator control system according to claim 1, further comprising a monitoring unit that monitors whether or not the control data is present in the storage unit.
6. 2. The accelerator control system according to claim 1, wherein the determination unit monitors whether or not the control data that has been subjected to the arithmetic processing is present in the storage unit.
7. An accelerator control method executed by an accelerator control system having an accelerator control device and a plurality of accelerators, comprising: the accelerator control system has a storage unit that stores control data including a location of data to be processed, information on an accelerator that performs the processing, and information that specifies the content of the processing of the accelerator; an acquisition step of acquiring the control data from the storage unit; a computing step of performing a computation process on the data to be computed in accordance with information specifying the location of the data to be computed and the operation of an accelerator, the information being included in the acquired control data; a storing step of storing the control data in the storage unit when the arithmetic processing is completed and when the control data does not include information on a destination accelerator; a determination step of determining whether or not the arithmetic process is completed when the control data that has been subjected to the arithmetic process is stored in the storage unit; a transfer step of transferring the control data to a destination accelerator when the control data includes information of the destination accelerator; a second calculation step of performing, when the control data is received from another accelerator, a calculation process on the target data of the calculation process in accordance with information specifying a location of the target data of the calculation process and a content of the calculation process, which is included in the control data; 23. A method for controlling an accelerator comprising:
8. An accelerator control program for causing a computer to function as the accelerator control system according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data processing apparatus and data transfer method
JP2019149086A
Message passing in data processing systems
JP2020537235A
