Arithmetic processing device

The arithmetic processing device simplifies tensor division processing by managing data transposition across nodes within an arithmetic processing device, enabling common software use and reducing development time and effort for software developers.

WO2024176926A1PCT designated stage expired Publication Date: 2024-08-29DENSO CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/005103
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-22
Filing Date
2024-02-14
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Software developers face a heavy burden in developing systems for processing high-resolution image information in arithmetic processing units, as they need to divide input image information (tensors) among nodes and create different programs for each node, leading to lengthy development periods and increased man-hours due to the complexity of tensor division processing.

Method used

An arithmetic processing device configured with a network of nodes, including a writing processing unit that writes and reads data without being aware of tensor division, allowing the same program to be executed across multiple nodes by managing data transposition and correspondence between nodes and storage areas, reducing the need for node-specific software.

Benefits of technology

Enables processing of high-resolution image information without awareness of tensor division, allowing common software usage across nodes, reducing development burden and shortening the development period by eliminating the need for node-specific software and simplifying the verification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024005103_29082024_PF_FP_ABST
    Figure JP2024005103_29082024_PF_FP_ABST
Patent Text Reader

Abstract

The purpose of this disclosure is to provide an arithmetic processing device. Provided is an arithmetic processing device (1) that is composed of a network having a plurality of nodes with a plurality of processor elements serving as one node, said arithmetic processing device comprising: a writing processing unit (12) that, for input image information, writes, to a prescribed region of a storage device (20), image information data having been divided for each node and subjected to transposition; a change processing unit (13) that changes the correspondence between the prescribed region of the storage device and the node in accordance with the tensor shape of the image information; and a readout processing unit (14) that reads out, to a corresponding node, data to be stored in the storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Processing Unit CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is based on and claims the benefit of priority from Patent Application No. 2023-026462, filed February 22, 2023, the entire contents of which are incorporated herein by reference.

[0002] The present disclosure relates to a processing device.

[0003] In a processing device configured with a plurality of nodes, each node being a plurality of processor elements (PEs) (cores), input processing of image information, such as neural network processing, may be performed. If the resolution of the input image information is low, the processing is performed as is, but if high-resolution image information is input, the image information may be divided and allocated to a plurality of nodes for processing. An example of such a method is disclosed in Patent Document 1 listed below.

[0004] International Publication WO2011 / 059090

[0005] Patent Document 1 discloses a method for optimally scheduling divided image information for each node. However, after detailed study by the inventors, it was found that even using the conventional technology of Patent Document 1, software developers would need to develop different programs for each node while considering how to divide the input image information (tensor) for each node, and then load and execute those programs. This required software developers to develop systems that took tensor division processing into consideration, which placed a heavy burden on the developers. Furthermore, when the verification process for the developed software was included, the overall man-hours required increased significantly, resulting in a longer development period.

[0006] An object of the present disclosure is to provide a processing device that performs processing without being aware of tensor decomposition.

[0007] The present disclosure employs the following technical solutions to solve the above problems. The claims and the symbols in parentheses in this section are examples showing the correspondence with the specific solutions described in the embodiments below as one aspect, and do not limit the technical scope of the invention.

[0008] A processing device according to one aspect of the present disclosure is a processing device configured from a network having a plurality of nodes, each node consisting of a plurality of processor elements, and the processing device has a write processing unit that writes image information data that has been divided and transposed for each node into a predetermined area in a storage device, a change processing unit that changes the correspondence between the predetermined area in the storage device and the node according to the tensor shape of the image information, and a read processing unit that reads the data stored in the storage device into the corresponding node.

[0009] The configuration disclosed herein makes it possible to execute transposition processing without being aware of tensor decomposition, which allows transposition processing to be executed even when the same program is executed on multiple nodes.

[0010] In one embodiment of the processing device, for nodes other than the nodes corresponding to the diagonal components, the write processing unit writes the divided and transposed image information data assigned to those nodes to a specified area of ​​the storage device based on a write request from each node.

[0011] In one aspect of the arithmetic processing device, the write processing unit does not write to the storage device in response to a write request from each node for nodes corresponding to diagonal components.

[0012] The writing process can be performed as disclosed in these documents.

[0013] In one embodiment of the processing device, for nodes other than the nodes corresponding to the diagonal components, the read processing unit reads data stored in a specified area of ​​the storage device to the corresponding node based on a read request from each node.

[0014] In one aspect of the arithmetic processing device, the read processing unit does not read from the storage device in response to a read request from each node for nodes corresponding to diagonal elements.

[0015] The read process can be performed as disclosed in these documents.

[0016] A control method for a processing device according to one aspect of the present disclosure can be performed as follows: That is, in a control method for a processing device configured from a network having a plurality of nodes, each node being a plurality of processor elements, the processing device having a storage device and a controller that controls the storage device, the controller of the processing device dividing input image information for each node and transposing the image information data, writing the image information data to a predetermined area in the storage device, changing the correspondence between the predetermined area in the storage device and the node according to the tensor shape of the image information, and reading the data stored in the storage device to the corresponding node.

[0017] By using the arithmetic processing device of the present disclosure, it is possible to perform processing without being aware of tensor decomposition. Therefore, software developers can use common software for each node, reducing the development burden. Furthermore, since different software for each node is not required as in the past, the burden of the verification process can be reduced, and the overall man-hours can be reduced, resulting in a shorter development period.

[0018] 1 is a block diagram schematically showing an example of the configuration of a processing device; FIG. 2 is a block diagram schematically showing an example of the hardware configuration of a processing device; FIG. 3 is a flowchart showing an example of the overall processing process of the processing device; FIG. 4 is a flowchart showing an example of the processing process of a write process of the processing device; FIG. 5 is a flowchart showing an example of the processing process of a read process of the processing device; FIG. 6 is a diagram schematically showing a state in which image information has been divided (a state in which it has been tensor divided); FIG. 7 is a diagram schematically showing the correspondence between tensor-divided image information and nodes; FIG. 8 is a diagram schematically showing a state in which tensor-divided image information assigned to each node has been transposed; FIG. 9 is a diagram schematically showing an example of a write process; FIG. 10 is a diagram schematically showing a process of changing the correspondence between nodes and memory banks; FIG. 11 is a diagram schematically showing another example of a process of changing the correspondence between nodes and memory banks;

[0019] An example of the configuration of each function of the arithmetic processing device 1 is shown in the block diagram of FIG. 1 . An example of the hardware configuration of the arithmetic processing device 1 is also shown in the block diagram of FIG. 2 . The arithmetic processing device 1 is a so-called multi-core processor in which a plurality of processor elements 22 (PEs) (cores) are defined as one node, and each node forms a network. While FIG. 2 shows two processor elements 22 (PEs) in one node, this is only for the sake of illustration, and in reality, more processor elements 22 are assigned to one node. For example, as explained in the following example, one node may have 3×3 processor elements 22 or more.

[0020] The storage device 20 is preferably an SRAM used as a so-called cache memory, but may be a device with other storage functions. The controller 21 is a memory controller 21 that controls the storage device 20, and when the storage device 20 is an SRAM, it becomes an SRAM controller 21. A program common to each node is loaded into the memory controller 21, and it executes processes for writing and reading data to and from the memory bank.

[0021] The arithmetic processing device 1 has a division processing unit 10, a transposition processing unit 11, a write processing unit 12, a change processing unit 13, and a read processing unit 14. Each process in the arithmetic processing device 1 is executed by a processing program stored in a controller 21, for example.

[0022] That is, by having the above-described configuration, the processing device 1 places a shared memory controller 21 in a storage device 20 having a general memory bank for multiple nodes, and by changing the memory access operation for each node depending on the shape (tensor shape) of the input image information (input tensor), transposition processing can be performed even when the same program is executed on multiple nodes.

[0023] The division processing unit 10 divides the image information input to the arithmetic processing device 1 into nodes using a predetermined method. Fig. 6 shows the divided image information. Fig. 6 shows a case where one image information is divided into four pieces of image information and the divided image information is assigned to each of nodes A to D, but in reality there are many more nodes. For ease of understanding, the numbers in the image information in Fig. 6 indicate the respective regions.

[0024] The division processing unit 10 stores, as tensor shape information, in the controller 21 of the storage device 20, the node to which the divided image information is assigned. For example, if each region of the divided image information is represented as a matrix, the division is performed in a 2x2 matrix positional relationship, so that the upper left region (1,1) is assigned to node A, the upper right region (1,2) is assigned to node B, the lower left region (2,1) is assigned to node C, and the lower right region (2,2) is assigned to node D. This is schematically shown in Figure 7. Note that if the resolution of the input image information is high and the number of divisions of the image information is large, similar processing can be performed by increasing the number of rows and / or columns of the matrix of each region of the divided image information. Furthermore, in addition to expressing the node to which the divided image information is assigned using a matrix, other representation methods can also be used as tensor shape information.

[0025] The transposition processing unit 11 performs transposition processing on each of the divided image information assigned to each node. Fig. 8 shows an example of a state in which the divided image information assigned to each node has been transposed.

[0026] For nodes other than the nodes corresponding to the diagonal components, the write processing unit 12 writes the divided image information data assigned to those nodes to the memory banks of the storage device 20 based on the write requests from those nodes. If the writing is completed normally, the write processing unit 12 returns a status indicating that the writing process was successful.

[0027] Furthermore, for nodes corresponding to diagonal elements, the write processing unit 12 does not actually process the write request from each node (does not actually execute the write process), but returns a success status of the write process.

[0028] An example of the write processing by the write processing unit 12 is shown in Fig. 9. In Fig. 9, the solid arrows indicate that the write processing is performed in the storage device 20, and the dashed arrows indicate that the write processing is not performed in the storage device 20. In addition, in the storage device 20, "B" and "C" indicate that the data of node B and node C have been written to their respective memory banks.

[0029] The change processing unit 13 executes a change process to change the correspondence between the nodes and the memory banks in accordance with the tensor shape of the image information.

[0030] The change processing unit 13 changes the correspondence between memory banks and nodes for nodes other than those corresponding to diagonal elements. For example, for memory bank B that stores data for node B and memory bank C that stores data for node C, the change processing unit 13 changes the correspondence between each node and memory bank, such that memory bank B stores data for node C and memory bank C stores data for node B. This is shown schematically in FIG. 10.

[0031] In FIG. 10 , the image information is divided into two columns vertically and two columns horizontally. However, if the image information is divided into three columns vertically and three columns horizontally, the correspondence between the nodes and the memory banks can be changed by swapping the rows and columns of the image information in the divided regions. For example, in FIG. 11 , there are regions from the (1,1) region of node A to the (3,3) region of node I. For nodes other than the nodes corresponding to the diagonal elements, namely node B (the (1,2) region), node C (the (1,3) region), node D (the (2,1) region), node F (the (2,3) region), node G (the (3,1) region), and node H (the (3,2) region), the image information data divided into each region is stored in the corresponding memory bank. For the nodes other than the nodes corresponding to the diagonal elements, the rows and columns of the matrix can be swapped to change the positions of the regions. That is, by swapping node B (area (1,2)) with node D (area (2,1)), node C (area (1,3)) with node G (area (3,1)), and node F (area (2,3)) with node H (area (3,2)), the correspondence between the nodes and the memory banks can be changed.

[0032] For nodes other than the nodes corresponding to the diagonal components, the read processing unit 14 reads the divided image information data assigned to those nodes from the memory banks of the storage device 20 based on the read request from each node. If the read is completed successfully, the read processing unit 14 returns a status indicating that the read process was successful.

[0033] Furthermore, for nodes corresponding to diagonal elements, the read processing unit 14 does not actually process the read request from each node (does not actually execute the read process), but returns a success status of the read process.

[0034] An example of a read process by the read processing unit 14 is shown in Figure 12. In Figure 12, solid arrows indicate that read processing is being performed on the storage device 20, while dashed arrows indicate that read processing is not being performed on the storage device 20. Also shown is a state in which data from memory bank "C" in the storage device 20 has been read to node B, and data from memory bank "B" has been read to node C. As a result, data from memory bank "C" has been read into the area of ​​node B (area (1, 2)), and data from memory bank "B" has been read into the area of ​​node C (area (2, 1)).

[0035] By executing the above process, it is possible to execute the transposition process of high-resolution image information using a common program for each node, which allows the process to be executed without being aware of the division of the image information (tensor division).

[0036] Next, an example of a processing process in the processor 1 according to one aspect of the present disclosure will be described with reference to the flowcharts of FIGS.

[0037] When image information to be processed is input to the arithmetic processing device 1, if the resolution is high, the division processing unit 10 divides the input image information into nodes using a predetermined method (S100). For example, as shown in Fig. 6, the image information is divided into four 2x2 pieces. The division processing unit 10 then stores the divided pieces of image information as tensor shape information indicating which node each piece of image information is assigned to.

[0038] Then, as shown in FIG. 8, the transposition processing unit 11 performs transposition processing on each of the divided image information data assigned to each node (S110).

[0039] After the transposition process of the divided image information assigned to each node is executed, the write processing unit 12 executes a write process to write the data of each divided image information to a memory bank (S120).

[0040] The write processing unit 12 writes the image information data of the nodes other than the nodes corresponding to the diagonal components, i.e., nodes B and C in FIG. 8 (S200), to memory banks B and C (S210), and returns a success status of the write process if the write process is completed successfully (S220). Furthermore, the write processing unit 12 returns a success status of the write process (S230) for the image information data of the nodes corresponding to the diagonal components, i.e., nodes A and D in FIG. 8 (S200), in response to a write request from each node without actually performing the process (without executing the actual write process). These processes are shown in FIG. 9.

[0041] After the write processing by the write processing unit 12 is completed, the change processing unit 13 changes the correspondence between the nodes and the memory banks for the nodes other than the nodes corresponding to the diagonal components (S130), as shown in Fig. 10. This correspondence change process (bank swap process) changes the correspondence between memory bank B, which stores the data of node C, and memory bank C, which stores the data of node B.

[0042] Then, the read processing unit 14 executes a read process to read the data written to the memory bank at each node (S140).

[0043] 12, for nodes other than the nodes corresponding to the diagonal elements (S300), the read processing unit 14 reads data from memory bank C to node B and data from memory bank B to node C (S310), and if the read is completed successfully, returns a success status of the read process (S320). Furthermore, for nodes corresponding to the diagonal elements (S300), the read processing unit 14 does not actually process the read request from each node (without executing the actual read process) but returns a success status of the read process (S330).

[0044] By performing the above-described processing, even when input image information is divided, it is possible to perform the transposition processing of the image information using a program common to each node.

[0045] The processing device 1 of the present disclosure is not limited to the scope described in this specification, and can be arbitrarily modified within the scope of its technical concept. The order of each process can also be arbitrarily modified within the scope of its technical concept.

[0046] By using the arithmetic processing device 1, it is possible to perform processing without being aware of tensor decomposition. This allows software developers to use common software for each node, reducing the development burden. Furthermore, since different software for each node is no longer necessary as in the past, the burden of the verification process can be reduced, and the overall number of man-hours can be reduced, resulting in a shorter development period.

Claims

1. A processing device (1) configured from a network having a plurality of nodes, each node being made up of a plurality of processor elements, the processing device having: a write processing unit (12) that writes image information data that has been divided for each node and transposed for input image information to a specified area in a storage device (20); a change processing unit (13) that changes the correspondence between the specified area of ​​the storage device and the nodes in accordance with the tensor shape of the image information; and a read processing unit (14) that reads out the data stored in the storage device to the corresponding node.

2. The processing device according to claim 1, wherein the write processing unit writes out the divided and transposed image information data assigned to nodes other than the nodes corresponding to the diagonal components to a specified area of ​​the storage device based on a write request from each node.

3. The arithmetic processing device according to claim 2, wherein the write processing unit does not perform writing to the storage device in response to a write request from each node for nodes corresponding to diagonal components.

4. The arithmetic processing device according to claim 3, wherein the read processing unit reads data stored in a specified area of ​​the memory device to a corresponding node other than the node corresponding to the diagonal component based on a read request from each node.

5. The arithmetic processing device according to claim 4, wherein the read processing unit does not perform reading from the storage device in response to a read request from each node corresponding to a diagonal component.

6. A control method for a processing device (1) configured from a network having a plurality of nodes, each node being made up of a plurality of processor elements, the processing device having a memory device and a controller for controlling the memory device, the controller of the processing device writing out image information data that has been divided for each node and transposed to a specified area in the memory device (20), changing the correspondence between the specified area of ​​the memory device and the nodes in accordance with the tensor shape of the image information, and reading out the data stored in the memory device to the corresponding node.

Citation Information

Patent Citations

  • Method for scheduling plurality of computing processes including all-to-all (A2A) communication across plurality of nodes (processors) constituting network, program, and parallel computer system

    WO2011059090A1

  • Computer mounting method, computer-readable storage medium and system for transposing matrix on SIMD multi-core processor architecture

    JP2011100452A

  • Information processing method and terminal device

    US20210182077A1

  • Image processing device, image processing system, image processing method, and image processing program

    WO2021161513A1