Deep learning oriented coarse-grained reconfigurable array emulator system and computing method
By utilizing a graphics processor for parallel computation in a coarse-grained reconfigurable array simulator system based on deep learning, the problem of low efficiency in large-scale data processing is solved, and a significant improvement in computation speed is achieved.
Patent Information
- Application Number
- CN202310103775.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-01-28
AI Technical Summary
Existing technologies consume a lot of time when dealing with large-scale data processing, resulting in low data processing efficiency.
A coarse-grained reconfigurable array simulator system for deep learning is adopted, which includes a storage module, a data scheduling module and a reconfigurable array. It utilizes a graphics processor for parallel computing and calls the corresponding processing unit for data processing according to the network layer type of the deep learning model.
It significantly accelerates the overall computation speed of the neural network, shortens the computation time, and improves data processing efficiency.
Smart Images

Figure CN116187434B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of deep learning technology and reconfigurable array technology, and more specifically, to a coarse-grained reconfigurable array simulator system and computation method for deep learning. Background Technology
[0002] Coarse-grained reconfigurable arrays offer good flexibility and computational efficiency. In the early stages of large-scale System-on-Chip (SOC) design, using coarse-grained reconfigurable array simulators can reduce chip development costs and shorten the chip development cycle. In later stages, they can be co-simulated with Register Transfer Level (RTL) models to verify the correctness of simulation results.
[0003] In realizing the concept disclosed herein, the inventors discovered at least the following problems in the related technologies: in the case of large-scale data processing, a lot of time is required, resulting in low data processing efficiency. Summary of the Invention
[0004] In view of this, this disclosure provides a coarse-grained reconfigurable array simulator system and computation method for deep learning.
[0005] One aspect of this disclosure provides a coarse-grained reconfigurable array simulator system for deep learning, comprising:
[0006] The storage module is used to store the initial graph data;
[0007] The data scheduling module is used to store an instruction set including multiple instructions, and to enable the storage module to transfer the initial graph data to the reconfigurable array according to the instruction set;
[0008] A reconfigurable array is used to receive initial graph data and, based on the computation type of the network layers of the deep learning model, invoke the graphics processor to perform parallel computation on the initial graph data to obtain the output results.
[0009] According to embodiments of this disclosure, the reconfigurable array includes:
[0010] The first processing unit is used to receive initial graph data and call the graphics processor to perform parallel computation on the initial graph data to obtain the first sub-output result when the computation type of the network layer of the deep learning model is linear computation.
[0011] The second processing unit is used to receive initial graph data and calculate the second sub-output result based on the initial graph data when the computation type of the network layer of the deep learning model is non-linear, and to obtain the output result based on the first sub-output result and the second sub-output result.
[0012] According to embodiments of this disclosure, the first processing unit includes:
[0013] The first sub-processing unit is used to receive initial graph data and transmit the initial graph data to the central processing unit when the computation type of the network layer of the deep learning model is linear computation.
[0014] The second sub-processing unit is used to transfer the initial graph data to the graphics processor using the central processing unit, and to use the graphics processor to call a specified number of threads to perform parallel calculations on the initial graph data to obtain the first sub-output result.
[0015] According to embodiments of this disclosure, the storage module includes:
[0016] The first storage unit is used to store feature map data;
[0017] The second storage unit is used to segment the feature map data from multiple dimensions according to the capacity of the reconfigurable array to obtain the initial map data.
[0018] According to embodiments of this disclosure, the second storage unit includes:
[0019] The first sub-storage unit is used to partition the feature map data according to the high-dimensional and wide-dimensional dimensions based on the capacity of the reconfigurable array, to obtain the initial map data; or
[0020] The second storage sub-unit is used to segment the feature map data according to the high dimension, wide dimension and channel dimension based on the capacity of the reconfigurable array to obtain the initial map data.
[0021] According to embodiments of this disclosure, the first processing unit further includes:
[0022] The third processing subunit is used to determine the second storage location of the initial image data in the graphics processor based on the first storage location of the initial image data in the storage unit;
[0023] The fourth processing subunit is used to call a specified number of threads to perform parallel calculations on the initial graph data according to the second storage location to obtain the first sub-output result.
[0024] According to an embodiment of this disclosure, the storage module is further configured to receive the output result and, if it is determined that the network layers of the deep learning model have not been fully computed, use the output result as feature map data.
[0025] According to an embodiment of this disclosure, the storage module is further configured to receive the output results and output the results after determining that all network layers of the deep learning model have been computed.
[0026] According to embodiments of this disclosure, the system further includes:
[0027] The interface module is used to transmit output results between multiple systems when the system comprises multiple systems.
[0028] Another aspect of this disclosure provides a coarse-grained reconfigurable array simulator computation method for deep learning, comprising:
[0029] The initial graph data is stored using a storage module;
[0030] The data scheduling module stores an instruction set containing multiple instructions, and enables the storage module to transfer the initial graph data to the reconfigurable array according to the instruction set;
[0031] The system uses a reconfigurable array to receive initial graph data and, based on the computation type of the network layers in the deep learning model, calls a graphics processor to perform parallel computation on the initial graph data to obtain the output results.
[0032] According to embodiments of this disclosure, in a coarse-grained reconfigurable array simulator system for deep learning, an initial graph data is stored using a storage module; an instruction set including multiple instructions is stored using a data scheduling module; the storage module transmits the initial graph data to the reconfigurable array according to the instruction set; the reconfigurable array receives the initial graph data; and, based on the computation type of the network layers of the deep learning model, the graphics processor is invoked to perform parallel computation on the initial graph data to obtain the output result. Since the time consumed in the data computation process is much greater than the data transmission time, invoking the graphics processor for parallel computation can significantly accelerate the overall neural network computation speed and shorten the computation time. Therefore, this at least partially overcomes the technical problem in related technologies where large-scale data processing requires a large amount of time, resulting in low data processing efficiency, thereby achieving the technical effect of improving data processing efficiency. Attached Figure Description
[0033] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:
[0034] Figure 1 A block diagram of a coarse-grained reconfigurable array simulator system for deep learning according to an embodiment of the present disclosure is shown schematically.
[0035] Figure 2The illustration schematically shows a diagram of segmented feature map data according to an embodiment of the present disclosure;
[0036] Figure 3 This schematically illustrates a diagram of initial graph data being transferred to a graphics processor according to an embodiment of the present disclosure;
[0037] Figure 4 A schematic diagram illustrates the structural layout of a coarse-grained reconfigurable array simulator computing system for deep learning according to embodiments of the present disclosure; and
[0038] Figure 5 A flowchart illustrating a coarse-grained reconfigurable array simulator computation method for deep learning according to an embodiment of the present disclosure is shown. Detailed Implementation
[0039] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.
[0040] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0041] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.
[0042] When using expressions such as "at least one of A, B, and C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). Similarly, when using expressions such as "at least one of A, B, or C," the expression should generally be interpreted in accordance with the meaning commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).
[0043] In the technical solution disclosed herein, the acquisition, storage, and application of user personal information comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.
[0044] In the technical solution disclosed herein, the user's authorization or consent is obtained before acquiring or collecting the user's personal information.
[0045] In related technologies, existing Coarse-grained Reconfigurable Architecture (CGRA) simulators, while offering improved speed when simulating relative to RTL models, still incur significant time costs when dealing with large-scale, fully nested, computationally intensive data processing.
[0046] In view of this, embodiments of this disclosure provide a coarse-grained reconfigurable array simulator system for deep learning. The system includes a storage module for storing initial graph data; a data scheduling module for storing an instruction set including multiple instructions, and for enabling the storage module to transmit the initial graph data to the reconfigurable array according to the instruction set; and a reconfigurable array for receiving the initial graph data and, based on the computation type of the network layers of the deep learning model, calling a graphics processing unit (GPU) to perform parallel computation on the initial graph data to obtain the output result. Therefore, it is necessary to accelerate the simulation speed and shorten the chip's simulation time. Since the time consumed in the data computation process is much greater than the data transmission time, calling the GPU for parallel computation can significantly accelerate the overall neural network computation speed and shorten the computation time. Therefore, it at least partially overcomes the technical problem in related technologies where large-scale data processing requires a large amount of time, resulting in low data processing efficiency, thereby achieving the technical effect of improving data processing efficiency.
[0047] Figure 1A block diagram of a coarse-grained reconfigurable array simulator system for deep learning according to an embodiment of the present disclosure is illustrated.
[0048] like Figure 1 As shown, the coarse-grained reconfigurable array simulator system 100 for deep learning includes a storage module 101, a data scheduling module 102, and a reconfigurable array 103.
[0049] Storage module 101 is used to store initial map data;
[0050] The data scheduling module 102 is used to store an instruction set including multiple instructions, and to enable the storage module to transfer the initial graph data to the reconfigurable array according to the instruction set;
[0051] The reconfigurable array 103 is used to receive initial graph data and, based on the computation type of the network layers of the deep learning model, call the graphics processor to perform parallel computation on the initial graph data to obtain the output results.
[0052] According to embodiments of this disclosure, the initial image data can be data obtained by preprocessing the target image to be processed, or data obtained by preprocessing the output result of the target image to be processed after calculation in one of the network layers of the deep learning model. The target image can be an image that needs to be detected, or an image that needs to have its sharpness restored, and there is no limitation on this.
[0053] According to embodiments of this disclosure, the storage module may be a memory with storage function.
[0054] According to embodiments of this disclosure, the instruction set may include multiple instructions, such as a transfer instruction for transferring initial graph data from the storage module to the reconfigurable array, and a storage instruction for storing the initial graph data.
[0055] According to embodiments of this disclosure, the data scheduling module (Data Engine, DE) can store instruction sets, and the data scheduling module can send transmission instructions. The initial graph data is transmitted from the storage module to the reconfigurable array for calculation. After the calculation is completed, the output result data can be transmitted back to the storage module.
[0056] According to embodiments of this disclosure, the computation type of the network layer of a deep learning model can be addition, multiplication, etc., which can be determined by the specific computation of the network layer.
[0057] According to embodiments of this disclosure, a graphics processing unit (GPU) is a microprocessor specifically designed for image and graphics-related computations on personal computers, workstations, game consoles, and some mobile devices (such as tablets and smartphones). Furthermore, GPUs can perform parallel computing. Since the initial graph data transmission process is serial, its speed cannot be improved. Moreover, the computation process in the network layers of deep learning models is completely nested, with multiple loops, and a significant amount of time is consumed in the computation process. Therefore, GPUs can be invoked for parallel computing to improve computational efficiency.
[0058] According to embodiments of this disclosure, in a coarse-grained reconfigurable array simulator system for deep learning, an initial graph data is stored using a storage module; an instruction set including multiple instructions is stored using a data scheduling module; the storage module transmits the initial graph data to the reconfigurable array according to the instruction set; the reconfigurable array receives the initial graph data; and, based on the computation type of the network layers of the deep learning model, the graphics processor is invoked to perform parallel computation on the initial graph data to obtain the output result. Since the time consumed in the data computation process is much greater than the data transmission time, invoking the graphics processor for parallel computation can significantly accelerate the overall neural network computation speed and shorten the computation time. Therefore, this at least partially overcomes the technical problem in related technologies where large-scale data processing requires a large amount of time, resulting in low data processing efficiency, thereby achieving the technical effect of improving data processing efficiency.
[0059] According to embodiments of this disclosure, the reconfigurable array includes:
[0060] The first processing unit is used to receive initial graph data and call the graphics processor to perform parallel computation on the initial graph data to obtain the first sub-output result when the computation type of the network layer of the deep learning model is linear computation.
[0061] The second processing unit is used to receive initial graph data and calculate the second sub-output result based on the initial graph data when the computation type of the network layer of the deep learning model is non-linear, and to obtain the output result based on the first sub-output result and the second sub-output result.
[0062] According to embodiments of this disclosure, the first processing unit may be a process element array (PEA), which mainly performs linear calculations, such as convolution calculations in deep learning models; the second processing unit may be a super processing element array (SPE), which mainly performs nonlinear calculations, such as pooling and activation calculations in deep learning models.
[0063] According to embodiments of this disclosure, the initial graph data can be transmitted to either the first processing unit or the second processing unit based on the computation type of the network layers of the deep learning model.
[0064] According to embodiments of this disclosure, when the computation type of the network layer of the deep learning model is linear computation, the initial graph data can be transmitted to the first processing unit that performs linear computation. The first processing unit calls the graphics processor to perform parallel computation on the initial graph data to obtain the first sub-output result. Since there are some non-linear computations such as addition in convolution computation, the first sub-output result can be transmitted to the second processing unit.
[0065] According to embodiments of this disclosure, when the computation type of the network layer of the deep learning model is nonlinear, the initial graph data can be transmitted to a second processing unit that performs nonlinear computation. The second processing unit then performs nonlinear computation on the initial graph data to obtain a second sub-computation result, and finally, the output result is obtained.
[0066] According to embodiments of this disclosure, the first processing unit calls the graphics processor for parallel computation and the second processing unit continues nonlinear computation, enabling the different data in the initial graph data to be computed separately, thereby further improving computational efficiency.
[0067] According to embodiments of this disclosure, the storage module includes:
[0068] The first storage unit is used to store feature map data;
[0069] The second storage unit is used to segment the feature map data from multiple dimensions according to the capacity of the reconfigurable array to obtain the initial map data.
[0070] According to embodiments of this disclosure, the first storage unit may be Dynamic Random Access Memory (DRAM), and the second storage unit may be Static Random-Access Memory (SRAM).
[0071] According to embodiments of this disclosure, the first storage unit may be used solely for storing feature map data, while the second storage unit may be used to create an array_view object via the C++AMP standard to segment the feature map data from multiple dimensions.
[0072] According to embodiments of this disclosure, the feature map data can be data from the target image to be processed, or it can be data output from the target image to be processed after computation in the first network layer of a deep learning model.
[0073] According to embodiments of this disclosure, since the input image is a three-dimensional array of data, the dimensional order is: height (H), width (W), and channel (C). Therefore, the feature map data can be preprocessed by segmentation to obtain initial image data of multiple arrays.
[0074] According to embodiments of this disclosure, segmenting feature map data by the capacity size of the reconfigurable array can divide the data into smaller computations so that the initial map data can be transferred to the reconfigurable array.
[0075] According to embodiments of this disclosure, the second storage unit includes:
[0076] The first sub-storage unit is used to partition the feature map data according to the high-dimensional and wide-dimensional dimensions based on the capacity of the reconfigurable array, to obtain the initial map data; or
[0077] The second storage sub-unit is used to segment the feature map data according to the high dimension, wide dimension and channel dimension based on the capacity of the reconfigurable array to obtain the initial map data.
[0078] According to embodiments of this disclosure, the capacity of the reconfigurable array varies. When the capacity of the reconfigurable array is large, the feature map data can be segmented according to the high dimension and the wide dimension. When the capacity of the reconfigurable array is small, the feature map data can be segmented according to the high dimension, the wide dimension and the channel dimension.
[0079] Figure 2 The illustration shows a schematic diagram of segmentation feature map data according to an embodiment of the present disclosure.
[0080] like Figure 2 As shown, the first sub-storage unit can be a feature map data segmented according to the high dimension and the width dimension. Taking H*W*C feature map data as an example, the channel C dimension is segmented first, and then the height H dimension is segmented. The width W dimension is not segmented, resulting in initial map data including multiple w*h arrays. The maximum capacity of the reconstructable array is MAX_CGRA_SIZE, which satisfies size<=MAX_CGRA_SIZE, and is a single data input.
[0081] According to embodiments of this disclosure, the second sub-storage unit can also segment the feature map data according to the height dimension, width dimension, and channel dimension. Taking H*W*C feature map data as an example, the channel C dimension is segmented first, then the height H dimension is segmented, and finally the width W dimension is segmented.
[0082] According to embodiments of this disclosure, multi-dimensional segmentation of feature map data based on the capacity of the reconfigurable array can better transmit the initial map data to the reconfigurable array.
[0083] According to embodiments of this disclosure, the first processing unit includes:
[0084] The first sub-processing unit is used to receive initial graph data and transmit the initial graph data to the central processing unit when the computation type of the network layer of the deep learning model is linear computation.
[0085] The second sub-processing unit is used to transfer the initial graph data to the graphics processor using the central processing unit, and to use the graphics processor to call a specified number of threads to perform parallel calculations on the initial graph data to obtain the first sub-output result.
[0086] According to embodiments of this disclosure, the first processing unit can transmit the initial image data to the central processing unit via the first sub-processing unit, and then the second sub-processing unit can use the central processing unit to transmit the initial image data to the graphics processing unit.
[0087] Figure 3 A schematic diagram illustrating the initial graph data transfer to a graphics processor according to an embodiment of the present disclosure is shown.
[0088] like Figure 3 As shown, since the initial image data is divided into segments, the central processing unit transmits the data serially. Assuming the initial image data is of size size, where size = h * w * c, size 8-bit integers are copied from the reconfigurable array to the graphics processor via the array_view object for parallel computation. The graphics processor generates size threads corresponding to each h * w * c array. The size h * w * c arrays are convolved with the data at the corresponding positions of the convolution kernel. The resulting data is then returned to the reconfigurable array by the graphics processor.
[0089] According to embodiments of this disclosure, during parallel computing by the graphics processor, the data received by the programmable parallel_for_each() function can be accelerated on the default accelerator in the graphics processor. The accelerator starts a thread for each h*w*c array within the range. The thread executes kernel functions, so the extent class can be used to call a specified number of threads to perform calculations on the h*w*c array.
[0090] According to embodiments of this disclosure, by calling a specified number of threads to perform parallel computation on the initial graph data, the parallel computation of the initial graph data by the graphics processor can be made more orderly, thereby further improving the computational efficiency of the graphics processor.
[0091] According to embodiments of this disclosure, the first processing unit further includes:
[0092] The third processing subunit is used to determine the second storage location of the initial image data in the graphics processor based on the first storage location of the initial image data in the storage unit;
[0093] The fourth processing subunit is used to call a specified number of threads to perform parallel calculations on the initial graph data according to the second storage location to obtain the first sub-output result.
[0094] According to embodiments of this disclosure, the first storage location is the storage location of the initial image data in the storage unit. The first storage location can reflect the storage order of the initial image data in the storage unit. The third processing subunit can determine the second storage location of the initial image data in the graphics processor according to the storage order. The storage order of the initial image data reflected by the second storage location can be the same as the storage order of the initial image data in the storage unit.
[0095] According to an embodiment of this disclosure, the fourth processing subunit can determine the storage order of the initial graph data based on the second storage location, access the initial graph data according to the storage order, and call a specified number of threads to perform parallel calculations on the initial graph data to obtain the first sub-output result based on the amount of initial graph data.
[0096] According to embodiments of this disclosure, storing the initial graph data in the second storage location of the graphics processor via the first storage location of the initial graph data in the storage unit can make the transmission of the initial graph data more orderly, thereby further improving the computing efficiency of the graphics processor.
[0097] According to an embodiment of this disclosure, the storage module is further configured to receive the output result and, if it is determined that the network layers of the deep learning model have not been fully computed, use the output result as feature map data.
[0098] According to the embodiments of this disclosure, the output result can be the calculation result of one of the network layers of the deep learning model. Therefore, if it is determined that the network layer of the deep learning model has not been calculated, the output result can be used as feature map data to continue the calculation of the next network layer. For the specific calculation process, please refer to the description of other embodiments of this disclosure, which will not be repeated here.
[0099] According to an embodiment of this disclosure, the storage module is further configured to receive the output results and output the results after determining that all network layers of the deep learning model have been computed.
[0100] According to embodiments of this disclosure, once it is determined that all network layers of the deep learning model have been computed, i.e., the computation of the deep learning model is complete, the output results can be output.
[0101] According to embodiments of this disclosure, the system further includes:
[0102] The interface module is used to transmit output results between multiple systems when the system comprises multiple systems.
[0103] According to embodiments of this disclosure, when the initial graph data is large, multiple coarse-grained reconfigurable array simulator systems for deep learning can be used for computation. When there are multiple coarse-grained reconfigurable array simulator systems for deep learning, data interaction is required between the multiple systems. Therefore, an interface (NI) module can be used to transmit output results between the multiple systems.
[0104] Figure 4 A schematic diagram of a coarse-grained reconfigurable array simulator computing system for deep learning according to an embodiment of the present disclosure is shown.
[0105] like Figure 4 As shown, the system includes a first storage unit 401, a second storage unit 402, a data scheduling module 102, a first processing unit 403, a second processing unit 404, and an interface module 405.
[0106] According to the embodiments of this disclosure, the storage unit includes a first storage unit 401 and a second storage unit 402. The first storage unit 401 is DRAM, the second storage unit 402 is SRAM, the data scheduling module 102 is DE, the first processing unit 403 is PEA, the second processing unit 404 is SPE, and the interface module 405 is NI. The functions of each part are described in other embodiments of this disclosure and will not be repeated here.
[0107] According to embodiments of this disclosure, based on Figure 4The structure provides some instructions. Data transfer between systems is driven by instructions, which are encapsulated in functions. `Ld_dram_sram` indicates transferring initial graph data of size `num` times from DRAM to SRAM. `Ld_sram_pea` indicates, when the computation layer of the deep learning network is linear, transferring data of size `num` times from SRAM to the PEA for linear computation; the initial graph data in this case is the arranged initial graph data. `Ld_sram_spe` indicates, when the computation layer of the deep learning network is non-linear, performing operations such as pooling and activation, directly transferring data of size `num` times to the SPE for computation. `St_spe_dram` indicates transferring the completed output to DRAM as input for the next network layer of the deep learning model. `MPI_send` indicates sending data to other nodes; the i-th node sends data of size `num` times to the j-th node. `MPI_recv` indicates receiving data from other nodes; the i-th node receives data of size `num` times sent by the j-th node.
[0108] Figure 5 A flowchart illustrating a coarse-grained reconfigurable array simulator computation method for deep learning according to an embodiment of the present disclosure is shown.
[0109] like Figure 5 As shown, the method includes operations S501-S503.
[0110] When operating S501, the initial diagram data is stored using the storage module.
[0111] In operation S502, the data scheduling module stores an instruction set including multiple instructions, and the storage module transmits the initial graph data to the reconfigurable array according to the instruction set.
[0112] When operating the S503, the reconfigurable array is used to receive the initial graph data, and the graphics processor is invoked to perform parallel computation on the initial graph data to obtain the output results according to the computation type of the network layer of the deep learning model.
[0113] According to embodiments of this disclosure, the description of the computation method for a coarse-grained reconfigurable array simulator for deep learning can be found in the description of a coarse-grained reconfigurable array simulator computation system for deep learning, and will not be repeated here.
[0114] According to embodiments of this disclosure, the computation process of the coarse-grained reconfigurable array simulator computation method for deep learning is as follows:
[0115]
[0116] According to embodiments of this disclosure, the overall loop is roughly as described above: the first loop is segmented according to the channel dimension, the second loop is segmented according to the high dimension, and the third loop is segmented according to the width dimension. These three loops are completed before the graphics processor is invoked, i.e., the initial graph data is arranged. Parallel_for_each is used for parallel computation, with the graphics processor allocating a specified number of threads for the computation.
[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions. Those skilled in the art will understand that the features recited in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not expressly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.
[0118] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.
Claims
1. A coarse-grained reconfigurable array simulator system for deep learning, comprising: The storage module is used to store the initial graph data; A data scheduling module is used to store an instruction set including multiple instructions, and to enable the storage module to transfer the initial graph data to the reconfigurable array according to the instruction set; A reconfigurable array is used to receive the initial graph data and, according to the computation type of the network layer of the deep learning model, call a specified number of threads in the graphics processor to perform parallel computation on the initial graph data to obtain the output result; The reconfigurable array includes: The first processing unit is configured to receive the initial graph data and call the graphics processor to perform parallel computation on the initial graph data to obtain a first sub-output result when the computation type of the network layer of the deep learning model is linear computation. The second processing unit is configured to, when the computation type of the network layer of the deep learning model is non-linear, receive the initial graph data and perform calculations on the initial graph data to obtain a second sub-output result, and obtain the output result based on the first sub-output result and the second sub-output result; The first processing unit includes: The first sub-processing unit is configured to receive the initial graph data and transmit the initial graph data to the central processing unit when the computation type of the network layer of the deep learning model is linear computation. The second sub-processing unit is used to use the central processing unit to transmit the initial graph data to the graphics processor, and to use the graphics processor to call a specified number of threads to perform parallel calculations on the initial graph data to obtain a first sub-output result based on the initial graph data.
2. The system according to claim 1, wherein, The storage module includes: The first storage unit is used to store feature map data; The second storage unit is used to segment the feature map data from multiple dimensions according to the capacity of the reconfigurable array to obtain the initial map data.
3. The system according to claim 2, wherein, The second storage unit includes: The first sub-storage unit is used to segment the feature map data according to the high-dimensional and wide-dimensional dimensions based on the capacity of the reconfigurable array to obtain initial map data; or The second storage sub-unit is used to segment the feature map data according to the high dimension, wide dimension and channel dimension based on the capacity of the reconfigurable array to obtain the initial map data.
4. The system according to claim 3, wherein, The first processing unit further includes: The third processing subunit is used to determine the second storage location of the initial image data in the graphics processor based on the first storage location of the initial image data in the storage unit; The fourth processing subunit is used to call a specified number of threads to perform parallel calculations on the initial graph data according to the second storage location to obtain the first sub-output result.
5. The system according to claim 1, wherein, The storage module is also used to receive the output results and, if it is determined that the network layers of the deep learning model have not been fully computed, to use the output results as feature map data.
6. The system according to claim 1, wherein, The storage module is also used to receive the output results and output the output results after determining that all network layers of the deep learning model have been calculated.
7. The system according to claim 1, further comprising: An interface module is used to transmit the output results between multiple systems when the system comprises multiple systems.
8. A computational method for a coarse-grained reconfigurable array simulator for deep learning, comprising: The initial graph data is stored using a storage module; The data scheduling module stores an instruction set including multiple instructions, and the storage module transmits the initial graph data to the reconfigurable array according to the instruction set; The initial graph data is received using a reconfigurable array, and the output result is obtained by calling a specified number of threads in the graphics processor to perform parallel computation on the initial graph data according to the computation type of the network layer of the deep learning model. The reconfigurable array includes: The first processing unit is configured to receive the initial graph data and call the graphics processor to perform parallel computation on the initial graph data to obtain a first sub-output result when the computation type of the network layer of the deep learning model is linear computation. The second processing unit is configured to, when the computation type of the network layer of the deep learning model is non-linear, receive the initial graph data and perform calculations on the initial graph data to obtain a second sub-output result, and obtain the output result based on the first sub-output result and the second sub-output result; The first processing unit includes: The first sub-processing unit is configured to receive the initial graph data and transmit the initial graph data to the central processing unit when the computation type of the network layer of the deep learning model is linear computation. The second sub-processing unit is used to use the central processing unit to transmit the initial graph data to the graphics processor, and to use the graphics processor to call a specified number of threads to perform parallel calculations on the initial graph data to obtain a first sub-output result based on the initial graph data.
Citation Information
Patent Citations
FPGA (Field Programmable Gate Array) virtualization hardware system stack design for cloud deep learning reasoning
CN113420517A
Programmable convolutional neural network processor, method, equipment, medium and terminal
CN113435570A
High-parallelism heterogeneous convolutional neural network accelerator and acceleration method
CN115577747A
