Data storage device, data processing system and acceleration device therefor

The data processing system and accelerator dynamically adjust memory and computing power based on bandwidth to optimize AI accelerator performance, addressing high power consumption issues in CNN, MLP, and LSTM applications.

JP7565703B2Active Publication Date: 2024-10-11SK HYNIX INC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2020079232
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-08
Filing Date
2020-04-28
Publication Date
2024-10-11
Estimated Expiration
2040-04-28

AI Technical Summary

Technical Problem

Existing AI accelerators face high power consumption due to imbalanced memory and computing power, particularly in applications like CNN, MLP, and LSTM, where memory bandwidth requirements vary significantly.

Method used

A data processing system and accelerator that adjust memory power and computing power dynamically based on memory bandwidth speed modes, controlling the transmission paths of input data through PE arrays to optimize performance for different network models and batch sizes.

Benefits of technology

This approach improves the performance of AI accelerators by fluidly adjusting power distribution, enhancing efficiency in applications like CNN, MLP, and LSTM by optimizing power usage according to memory bandwidth demands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007565703000001
    Figure 0007565703000001
  • Figure 0007565703000002
    Figure 0007565703000002
  • Figure 0007565703000003
    Figure 0007565703000003
Patent Text Reader

Abstract

To provide a data processing system for adjusting a memory power and an operation power in a fluid manner by a memory bandwidth, and an accelerator for the data processing system.SOLUTION: A data processing system according to an embodiment of the present invention includes: a host device for determining the speed mode of a memory bandwidth on the basis of at least one of a network model and a batch size, and adjusting the operation power and the memory power of an accelerator; a data storage device including the accelerator for controlling transmission routes of first input data and second input data of a PE array (Processing Element Array) by a speed mode of the memory bandwidth and changing the PE array.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a data storage device, a data processing system and an acceleration device therefor. [Background technology]

[0002] An AI accelerator (Artificial Intelligence Accelerator) is an application that realizes software-processed applications such as MLP (Multi-Layer Perceptron), LSTM (Long Short Term Memory), and CNN (Convolutional Neural Network) in hardware, reducing the host's computation and resource burden while maximizing the performance of related computations.

[0003] The AI ​​accelerator may have a high power consumption. At this time, the power consumption can be divided into computation power and memory power. Generally, the higher the memory bandwidth, the greater the memory power consumption.

[0004] The main application of deep learning may be determined by the network model. For example, CNN may be an application that requires a relatively large number of processors, while MLP and LSTM may be applications that require a large memory bandwidth. Summary of the Invention [Problem to be solved by the invention]

[0005] SUMMARY OF THE PRESENTLY PREFERRED EMBODIMENTS An embodiment of the present invention provides a data processing system and an accelerator therefor for dynamically adjusting memory power and computing power according to memory bandwidth. [Means for solving the problem]

[0006] A data processing system according to an embodiment of the present invention includes a host device that determines a memory bandwidth speed mode based on at least one of a network model and a batch size and adjusts the computing power and memory power of an accelerator; and a data storage device including an accelerator that controls a transmission path of first input data and a second input data of a PE array (Processing Element Array) according to the memory bandwidth speed mode and changes a structure of the PE array, and the memory bandwidth speed mode may include a high speed mode that adjusts the memory power upward from an initial setting standard in a total power budget, and a low speed mode that adjusts the computing power upward from an initial setting standard.

[0007] An accelerator according to an embodiment of the present invention includes an accelerator for controlling a transmission path of first input data and second input data input to a PE array based on a speed mode of a memory bandwidth to change a structure of the PE array, the accelerator including a PE array including a first PE group and a second PE group, each of the first and second PE groups including a plurality of PEs arranged in a first direction and a second direction; and a PE array adjustment block disposed between the first PE group and the second PE group in the PE array for selectively inputting one of the first input data of the first data group and the first input data of the second data group to the second PE group in the first direction in the PE array, and selectively inputting one of the second input data of the third data group and the second input data of the fourth data group to the second PE group in the second direction in the PE array.

[0008] A data storage device according to an embodiment of the present invention includes a central processing unit that determines a memory bandwidth speed mode based on at least one of a network model and a batch size, and adjusts the computing power and memory power of an accelerator; and an accelerator that controls a transmission path of a first input data and a second input data of a PE array according to the memory bandwidth speed mode, and changes a structure of the PE array, and the memory bandwidth speed mode can include a high speed mode that adjusts the memory power upward from an initial setting standard in a total power budget, and a low speed mode that adjusts the computing power upward from an initial setting standard. Effect of the Invention

[0009] According to the present invention, since the computing power and memory power are dynamically adjusted according to the memory bandwidth, the performance of the main applications for each network model can be improved. [Brief description of the drawings]

[0010] [Figure 1] FIG. 2 is a diagram illustrating the connection relationship between a data processing system and an external server according to an embodiment of the present invention. [Diagram 2] 1 is a diagram showing a configuration of a data processing system according to an embodiment of the present invention. [Diagram 3] 10A and 10B are diagrams for explaining a method of determining a speed mode in a host device according to an embodiment of the present invention. [Figure 4] FIG. 4 is an example diagram of a total power budget according to an embodiment of the present invention. [Diagram 5] 4 is an exemplary diagram illustrating adjustment of memory power and computing power according to an embodiment of the present invention; FIG. [Figure 6] FIG. 1 is a diagram showing a configuration of a data storage device according to an embodiment of the present invention. [Figure 7] FIG. 2 is a diagram showing in detail the configuration of an accelerator according to an embodiment of the present invention. [Figure 8] 2 is an exemplary diagram of a PE array according to an embodiment of the present invention; [Figure 9]4 is another exemplary diagram of a PE array according to an embodiment of the present invention. [Figure 10] 2 is an exemplary diagram of a PE array structure according to an embodiment of the present invention; [Figure 11] 2 is a diagram illustrating a connection relationship between a memory controller and a memory die according to an embodiment of the present invention. [Figure 12] 11A and 11B are diagrams for explaining performance changes due to speed modes according to an embodiment of the present invention. [Figure 13] FIG. 1 is a diagram showing a configuration of an acceleration device according to an embodiment of the present invention. [Figure 14] FIG. 13 is a diagram illustrating the configuration of a data storage device according to another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0012] FIG. 1 is a diagram showing the connection relationship between a data processing system and an external server according to an embodiment of the present invention, and FIG. 2 is a diagram showing the configuration of the data processing system according to an embodiment of the present invention.

[0013] Hereinafter, the present invention will be described with reference to FIG. 3 which illustrates a method for determining a speed mode in a host device according to an embodiment of the present invention, FIG. 4 which is an exemplary diagram of a total power budget according to an embodiment of the present invention, and FIG. 5 which is an exemplary diagram illustrating adjustment of memory power and computing power according to an embodiment of the present invention.

[0014] 1, a data processing system 20 can receive data by connecting to an external server 10 via a communication network. At this time, the data can be a batch size, which will be described later. A deep learning application can process data in batch units.

[0015] The batch size may refer to the number of pieces of data that the data processing system 20 can process at one time. For example, if the first input data is a photographic image, the number of photographs in the input image data can be called a batch. A batch of 10 indicates that 10 images are used as the first input data. The 10 pieces of first input data are subjected to a MAC (multiplication and accumulation) operation with the same second input data.

[0016] The data processing system 20 may include a host device 100 and a data storage device 200 .

[0017] 2, the host device 100 may include an application 110, software firmware 120, and an application programming interface 130. The data storage device 200 may be a processing-near-memory (PNM). The PNM may include at least one memory die 210 and a logic die 300 integrated into an integrated circuit (IC) package.

[0018] The software firmware 120 of the host device 100 can determine the memory bandwidth speed mode based on at least one of the network model and the batch size, and adjust the computing power and memory power of the accelerator 400 including the data storage device 200.

[0019] 3, the host device 100 may perform compiling based on network model information including hardware architecture information such as network information 510 and PNM architecture information 520 (530). At this time, the host device 100 performs compilation for PNM, and a section for power share may be added. In particular, the host device 100 may further perform compilation for changing each of memory power and computing power in a total power budget, which will be described later, in addition to compiling only for the existing accelerator.

[0020] Meanwhile, the PNM described above can exhibit a relatively higher speed than the data pin structure of a High Bandwidth Memory (HBM) because the data signal is connected to the logic die 300 in the PNM, since the speed constraints on the off-chip connection are eliminated by integrating the memory die 210 and the logic die 300 into an IC package.

[0021] The network may include a Convolutional Neural Network (CNN), a Multi-Layer Perceptron (MLP), a Long Short Term Memory (LSTM), etc. As described above, the network may be, but is not limited to, a Neural Network. The network information may be known in advance by the host device 100.

[0022] The PNM architecture information may include accelerator architecture information, power per processor, power per memory bandwidth, maximum processor structure, and maximum memory bandwidth structure.

[0023] Here, the maximum structure of the arithmetic unit may mean the maximum number of arithmetic units, and the maximum structure of the memory bandwidth may mean the maximum size of the memory bandwidth. The maximum structure of the arithmetic unit and the maximum structure of the memory bandwidth are preset information, and can be variably applied within the maximum structure preset in the disclosed invention.

[0024] For example, the number of arithmetic units is N, but the number of units cannot be more than N, and the maximum size of the memory bandwidth is M, but the number of units cannot be more than M. Therefore, the maximum structure of the arithmetic units and the maximum structure of the memory bandwidth are provided in advance to be referred to when determining the speed mode of the memory bandwidth, where N and M may be positive integers.

[0025] The host device 100 may output data compiled in a form optimized for the PNM including a memory bandwidth speed mode (540). At this time, the memory bandwidth speed mode may include a low speed mode (Memory BW Low Speed ​​Mode) and a high speed mode (Memory BW High Speed ​​Mode).

[0026] Referring to Fig. 4, the total power budget can include memory power and computing power. At this time, each of the memory power and computing power can include an adjustable dynamic power portion and a static power portion. Fig. 4 shows a case where the memory power and computing power are used at maximum.

[0027] The memory bandwidth speed modes may include a high-speed mode (FIG. 5a) that adjusts memory power upward from an initial setting standard, and a low-speed mode (FIG. 5b) that adjusts computing power upward from an initial setting standard, within a total power budget as shown in FIG. 4.

[0028] If the network model included in the output data is a CNN, the host device 100 may determine the speed mode of the memory bandwidth to be the low-speed mode (550). In the case of a network model such as a CNN in which data reuse is relatively high in the logic die 300, the host device 100 determines the speed mode of the memory bandwidth to be the low-speed mode because the overall performance may be determined by the performance of the computing power even if the memory bandwidth is low.

[0029] If the network model is either MLP or LSTM, the host device 100 compares the batch size with a reference value (K) (560), and if the batch size exceeds the reference value (Batch Size>K), determines the memory bandwidth speed mode to be the low speed mode (550), and if the batch size is equal to or less than the reference value, determines the memory bandwidth speed mode to be the high speed mode (570).

[0030] Even when the network model is MLP or LSTM, if the batch size is large, the requirement for computing power may be relatively large, so when the network model is MLP or LSTM, the host device 100 compares the batch size with a reference value.

[0031] At this time, the batch size may be received from the external server 10 and included in the above-mentioned PNM architecture information. In the case of a network model in which there is no data reuse in the logic die 300, such as MLP, LSTM, and recurrent neural network (RNN), the host device 100 may apply a high-speed mode since memory bandwidth may be a key factor determining the performance of the data processing system 20.

[0032] 2, the data storage device 200 may include a memory controller 310, an accelerator 400, and a plurality of memory dies 210. In this case, the memory controller 310 and the accelerator 400 may be included in the logic die 300.

[0033] Referring to FIG. 11, the memory controller 310 can transmit a memory bandwidth speed mode to the memory die 210.

[0034] The memory die 210 may change a memory clock based on a speed mode of a memory bandwidth transmitted from the memory controller 310. In this case, the data storage device 200 may include at least one memory die 210.

[0035] On the other hand, changing the memory clock based on the memory bandwidth speed mode can also be handled directly by the memory controller 310.

[0036] The data storage device 200 may be a Processing Near Memory (PNM).

[0037] FIG. 6 is a diagram showing the configuration of a data storage device according to an embodiment of the present invention.

[0038] The following description will be given with reference to Figures 7 to 12. Figure 7 is a diagram showing in detail the configuration of an accelerator according to an embodiment of the present invention, Figures 8 and 9 are diagrams showing an example of a PE array according to an embodiment of the present invention, Figure 10 is a diagram showing an example of a PE array structure according to an embodiment of the present invention, Figure 11 is a diagram showing a connection relationship between a memory controller and a memory die according to an embodiment of the present invention, and Figure 12 is a diagram for explaining a performance change depending on a speed mode according to an embodiment of the present invention.

[0039] Referring to FIG. 6, the data storage device 200 may include an accelerator 400 that controls the transmission paths of first input data and second input data of the PE array 430 according to the speed mode of the memory bandwidth and changes the structure of the PE array 430.

[0040] The accelerator 400 receives first input data and second input data, multiplies the first input data and the second input data, and adds the multiplied data to previously stored data. In this case, the second input data may be weight data.

[0041] 6, the first input data is transferred in a row direction, and the second input data is transferred in a column direction. The summed result data is subjected to MAC on all the second input data and the first input data required by the node via an IO buffer 450 (described later), and then subjected to an activation function process in an activation function processor 480, and then generated as output data.

[0042] 6 and 7, the accelerator 400 may include a PE controller (PE CTRL) 420, a PE array (PE Array) 430, a PE array adaptive block (PE Array Adaptive Block) 440, an IO buffer 450, a weight buffer (Weight Buffer) 460, an adaptive data path controller (Adaptive Data Path Controller) 470, an activation function unit (AFU) 480, a special function unit (SFU) 490, and a low level power controller (Row Level Power Controller) 495.

[0043] The accelerator 400 may communicate with the host device 100 through a host interface block 410. The host interface block 410 may interface between the host device 100 and the data storage device 200 according to a protocol of the host device 100. For example, the host interface block 410 may communicate with the host device 100 through a Serdes interface protocol. Without being limited thereto, the host interface block 410 may communicate with the host device through any one of a PCI-E (PCI express), a USB (universal serial bus), a UFS (universal flash storage), a MMC (multimedia card), a PATA (parallel advanced technology attachment), a SATA (serial advanced technology attachment), a SCSI (small computer system interface), a SAS (serial attached SCSI), and a PCI (peripheral component interconnection) protocol.

[0044] The PE controller 420 can communicate the speed mode of the memory bandwidth communicated from the host device 100 to the adaptive data path controller 470 .

[0045] As shown in FIG. 6, the PE controller 420 can receive a speed mode of memory bandwidth transmitted from the host device 100 via a host interface block 410 that transmits and receives data to and from the host device 100 .

[0046] 7, the PE array 430 may include a plurality of first PE groups, each of which may include a number of PEs arranged in a row direction. The PE array adjustment block 440 may include a plurality of first multiplexers located between the PEs in the PE array 430, each of which may be configured to selectively input either the first input data of the group or the first input data of another group to the PEs in the row direction in the PE array 430.

[0047] Also, the PE array 430 may include a plurality of second PE groups, each of which may include a number of PEs arranged in a column direction. The PE array adjustment block 440 may include a plurality of second multiplexers connected to the PEs in the PE array 430, each of which may selectively input either the second input data of the group or the second input data of another group to a PE in the column direction in the PE array 430.

[0048] The PE array 430 in FIG. 6 shows a PE array 430 having an N×M structure. The PE array 430 may include N×M PEs. Here, N means a batch size, and M means a weighted value width. That is, N means a size of a row to which the first input data is input, and M means a size of a column to which the second input data is input. In this embodiment, the PE array 430 may include N first PE groups and M second PE groups. Here, each first PE group may include M PEs arranged in a row direction, and each second PE group may include N PEs arranged in a column direction.

[0049] 7 and 10, the PE array adjustment block 440 is arranged between the PEs in the PE array 430 in memory bandwidth units (eg, 1× units), and can be applied from the second memory bandwidth.

[0050] For example, if the memory bandwidth is 2×BW (Bandwidth), the PE array adjustment block 440 may be located in the front stage of the PE corresponding to 2×BW. In this case, as shown in FIG 10, the PE array adjustment block 440 may include a row group (A) and a column group (B).

[0051] Referring to FIG. 7, the PE array adjustment block 440 may include a plurality of first multiplexers 441 included in a row group (A of FIG. 10) for inputting first input data to each of the PEs, and a plurality of second multiplexers 443 included in a column group (B of FIG. 10) for inputting second input data to each of the PEs.

[0052] The first multiplexers 441 may be matched to each row of the PE array 430, and the second multiplexers 443 may be matched to each column.

[0053] 10 is a diagram showing a PE array 430 including a PE array adjustment block 440 when N is 6 and M is 64. Referring to Fig. 10, in the case of reference number 441-1 among a plurality of first multiplexers 441, one of the first input data InQ_1 and InQ_7 can be input to a 1x33 PE under the control of the adaptive data path controller (470 in Fig. 7).

[0054] In the case of reference number 443-1 among the plurality of second multiplexers 443, under the control of the adaptive data path controller 470, either one of the second input data WB_6_1 and WB_6_33 can be input to the 1×33 PE.

[0055] The IO buffer 450 may be configured to transmit first input data to the PEs in the row direction in the PE array 430 .

[0056] A weight buffer 460 can transmit second input data to the PEs in the column direction in the PE array 430 .

[0057] Although not shown, the IO buffer 450 and the weight buffer 460 can be implemented as one and connected via a BUS.

[0058] The adaptive data path controller 470 can control the input processing of the PE array coordination block 440 according to the memory bandwidth speed mode.

[0059] FIG. 8 shows a PE array 430 having an N×M structure as an initial structure, and FIG. 9 shows a PE array 430 having a 2N×M / 2 structure as an initial structure.

[0060] 8, the memory bandwidth is 2x, and the speed mode of the memory bandwidth is the low speed mode, the adaptive data path controller 470 can control the input paths of the first input data and the second input data so that the structure of the PE array 430 changes from the NxM structure to a 2NxM / 2 structure, where N is a batch size and M is a weighted value range.

[0061] Specifically, the adaptive data path controller 470 can control the plurality of first multiplexers 441 to receive the first input data from 2N or more groups, and control the second multiplexer 443 to receive the second input data from the M / 2 group. For example, as shown in FIG. 8, if the initial structure of the PE array 430 is an N×M structure and the memory bandwidth is 2×, the memory structure can be 6×64 in FIG. 10. In this case, the PE array adjustment block 440 can be disposed between the first 1× stage and the second 1× stage (or 2× stage). The first 1× stage can correspond to the left N×M / 2 structure, and the second 1× stage can correspond to the right N×M / 2 structure.

[0062] When the memory bandwidth speed mode is the low-speed mode, the adaptive data path controller 470 can change the structure of the PE array 430 from 6×64 (see FIG. 8) to a 12×32 (see FIG. 9) memory structure. In this case, the low-speed mode can mean a 2N×M / 2 structure.

[0063] 7 and 10, the adaptive data path controller 470 controls a plurality of first multiplexers 441 so that row-direction PEs of 1×33 PE to 6×33 PE can each receive first input data InQ_7 to InQ_12.

[0064] 7 and 10, the adaptive data path controller 470 controls a plurality of second multiplexers 443 so that the column-wise PEs of 1×33 PE to 1×64 PE can each receive second input data WB_6_1 to WB_6_32.

[0065] In other words, the PEs in the row direction from the 1x33 PE to the 6x33 PE each receive the first input data InQ_7 to InQ_12 rather than InQ_1 to InQ_6, and the PEs in the column direction from the 1x33 PE to the 1x64 PE each receive the second input data WB_6_1 to WB_6_32 rather than WB_6_33 to WB_6_64, thereby implementing a 12x32 PE array structure in which the input paths of the first and second input data are adjusted.

[0066] Conversely, when the initial structure of the PE array 430 is a 2N×M / 2 structure (see FIG. 9), the memory bandwidth is 2×, and the speed mode of the memory bandwidth is high speed mode (see FIG. 8), the adaptive data path controller 470 can control the input paths of the first input data and the second input data so that the structure of the PE array 430 changes from a 2N×M / 2 structure to an N×M structure.

[0067] 9, the PE array adjustment block 440 may be located between the first 1× stage and the second 1× stage (or 2× stage). In this case, the first 1× stage may correspond to the lower N×M / 2 structure, and the second 1× stage may correspond to the upper N×M / 2 structure. The adaptive data path controller 470 may control the first multiplexers 441 to receive first input data from the first N groups of the 2N groups, and control the second multiplexer 443 to receive second input data from the M / 2 group next to the first M / 2 group.

[0068] For example, referring to FIG. 10, the upper N×M / 2 structure of FIG. 9 includes 1×33 PE to 6×33 PE, ..., 1×64 PE to 6×64 PE, and the first input data InQ_1 to InQ_6 can be input to each of the row-direction PEs of the 1×33 PE to 6×33 PE, and the second input data WB_6_33 to WB_6_64 can be input to each of the column-direction PEs of the 1×33 PE to 1×64 PE.

[0069] Referring to FIG. 7, an activation function unit 480 may be provided for each row of the PE array 430 to perform activation function processing on the processed data.

[0070] In this case, various algorithms such as ReLU, tanh, sigmoid, etc. are used as the activation function. Also, the activation function can be configured as a lookup table or a micro-core.

[0071] The special function unit 490 may be a configuration for performing additional operations other than activation function processing by matching with each of the activation function processing units 480. For example, the special function unit 490 may be a logic capable of performing processing such as Element-wise multiplication of LSTM.

[0072] The low-level power controller 495 may be configured to perform clock gating control processing on a row-by-row basis in the PE array 430 .

[0073] As described above, since the activation function processing unit 480 and the additional function processing unit 490 are provided for each row, the low-level power controller 495 can perform clock gating control processing on a row basis, which is expected to reduce power during computing operations.

[0074] FIG. 12 is a diagram showing the change in performance depending on the speed mode. Referring to FIG. 12, when using the same power budget, it can be seen that the performance of MLP and LSTM applications improves from P1 to P2 by changing the memory bandwidth speed mode to low speed mode or high speed mode. In this case, MLP and LSTM can be applied in the high speed mode because the batch size is below the reference value.

[0075] FIG. 13 is a diagram showing the configuration of an acceleration device according to an embodiment of the present invention.

[0076] Referring to FIG. 13, an accelerator 600 may include an accelerator 400 that controls transmission paths of first and second input data of a PE array and changes the structure of the PE array.

[0077] The accelerator 400 receives first and second input data, multiplies the first and second input data, and adds the multiplied data to previously stored data. In this case, the second input data may be weight data.

[0078] 6, the first input data is transferred in a row direction, and the second input data is transferred in a column direction. The summed result data is subjected to MAC on all the second input data and the first input data required by the node via an IO buffer 450 (described later), and then subjected to activation function processing in an activation function processing unit 480, and then generated as output data.

[0079] More specifically, the accelerator 400 may include a PE controller 420, a PE array 430, a PE array adjustment block 440, an IO buffer 450, a weight buffer 460, an adaptive data path controller 470, an Activation Function Unit (AFU) 480, a Special Function Unit (SFU) 490, and a low-level power controller 495.

[0080] The accelerator 400 may communicate with the host device 100 via a host interface block 410. In this case, the host interface block 410 may interface between the host device 100 and the data storage device 200 according to a protocol of the host device 100. For example, the host interface block 410 may communicate with the host device 100 via a Serdes interface protocol, but is not limited thereto.

[0081] The PE controller 420 can communicate the speed mode of the memory bandwidth communicated from the host device 100 to the adaptive data path controller 470 .

[0082] The PE array adjustment block 440 includes a plurality of first multiplexers 441 arranged between the PE arrays 430, and each of the first multiplexers 441 may be configured to selectively input either the first input data of the group or the first input data of another group to the PEs in a row direction in the PE array 430. In one embodiment, the PE array 430 includes a plurality of first PE groups, and each of the first PE groups may include a plurality of PEs arranged in a row direction.

[0083] Further, the PE array adjustment block 440 includes a plurality of second multiplexers 443 arranged between the PE arrays 430, and each of the second multiplexers 443 can selectively input either the second input data of the group or the second input data of another group to the PEs in a column direction in the PE array 430. In one embodiment, the PE array 430 includes a plurality of second PE groups, and each of the second PE groups can include a plurality of PEs arranged in a column direction.

[0084] The PE array adjustment block 440 is disposed between the PE arrays 430 in units of memory bandwidth, but can be adapted from the second memory bandwidth.

[0085] Referring to FIG. 7, the PE array adjustment block 440 may include a plurality of first multiplexers 441 for inputting first input data to each of the PEs, and a plurality of second multiplexers 443 for inputting second input data to each of the PEs.

[0086] The first multiplexers 441 are matched to each row of the PE array 430, and the second multiplexers 443 are matched to each column.

[0087] The IO buffer 450 may be configured to transmit first input data to a PE in the row direction in the PE array 430.

[0088] The weight buffer 460 can transmit second input data to the PEs in the column direction in the PE array 430 .

[0089] The adaptive data path controller 470 may be configured to control the input processing of the PE array coordination block according to the memory bandwidth speed mode.

[0090] The memory bandwidth speed mode may include a high speed mode in which memory power is adjusted upward from an initial setting standard in the total power budget, and a low speed mode in which computing power is adjusted upward from an initial setting standard.

[0091] When the initial structure of the PE array 430 is an N×M structure, the memory bandwidth is 2×, and the speed mode of the memory bandwidth is a low-speed mode, the adaptive data path controller 470 can control the input paths of the first input data and the second input data so that the structure of the PE array 430 changes from the N×M structure to 2N×M / 2 as shown in FIG. 9. The N may represent a batch size, and the M may represent a weighted value width.

[0092] The adaptive data path controller 470 can control multiple first multiplexers 441 to receive first input data from 2N or more groups, and control the second multiplexer 443 to receive second input data from M / 2 groups.

[0093] Conversely, when the initial structure of PE array 430 is a 2N×M / 2 structure (see FIG. 9), the memory bandwidth is 2×, and the memory bandwidth speed mode is high speed mode (see FIG. 8), the adaptive data path controller 470 can control the input paths of the first input data and the second input data so that the structure of PE array 430 changes from the 2N×M / 2 structure to the N×M structure of FIG. 8.

[0094] The adaptive data path controller 470 can control the multiple first multiplexers 441 to receive first input data from the first N groups out of the 2N groups, and control the second multiplexer 443 to receive second input data from the M / 2 group next to the first M / 2 group.

[0095] FIG. 14 is a diagram showing the configuration of a data storage device according to another embodiment of the present invention.

[0096] In the following, the disclosed data storage device has a configuration that can perform the same role as the data storage device described above, so a detailed description thereof will be omitted.

[0097] The data storage device 200 may include a central processing unit 700, an accelerator 400, a memory controller 310, and a plurality of memory dies 210. In this case, the memory controller 310, the accelerator 400, and the central processing unit 700 may be included in the logic die 300.

[0098] The central processing unit 700 determines a speed mode of the memory bandwidth based on at least one of the network model and the batch size, and adjusts the computing power and memory power of the accelerator 400. The speed mode of the memory bandwidth may include a high-speed mode in which the memory power is adjusted upward from an initial setting standard in the total power budget, and a low-speed mode in which the computing power is adjusted upward from an initial setting standard. At this time, the central processing unit 700 is a configuration for implementing the function of the host device 100 disclosed in FIG. 2 in the data storage device 200, and it goes without saying that all the functions of the host device 100 are applied.

[0099] The central processing unit 700 can receive data by connecting to an external server (10 in FIG. 1) via a communication network. At this time, the data can be a batch size. The batch size can be included in the PNM architecture information. Although not shown, the central processing unit 700 can of course have a wired or communication-enabled interface to transmit and receive data to and from the external server 10.

[0100] The accelerator 400 controls the transmission paths of the first input data and the second input data of the PE array (430 in FIG. 6) according to the speed mode of the memory bandwidth, and the structure of the PE array can be changed.

[0101] Referring to Figures 6 and 7, the accelerator 400 may include a PE controller (PE CTRL) 420, a PE array 430, a PE array adjustment block 440, an IO buffer 450, a weight buffer 460, an adaptive data path controller 470, an activation function unit (AFU) 480, a special function unit (SFU) 490, and a low-level power controller 495.

[0102] The PE controller 420 can communicate to the adaptive data path controller 470 the speed mode of the memory bandwidth communicated from the central processing unit 700 .

[0103] The PE array adjustment block 440 may be arranged between the PE arrays 430 and configured to selectively input either the first input data of the group or the first input data of another group to a PE in a row direction within the PE array 430.

[0104] In addition, the PE array adjustment block 440 is arranged between the PE arrays 430 and can selectively input either the second input data of the group or the second input data of another group to a PE in the column direction within the PE array 430.

[0105] 6 shows a PE array 430 having an N×M structure, where N is a batch size and M is a weighted value range. That is, N may represent a size in a row direction in which the first input data is input, and M may represent a size in a column direction in which the second input data is input.

[0106] 7 and 10, the PE array adjustment block 440 is disposed between the PE arrays 430 in memory bandwidth units (eg, 1× units), and can be applied from the second memory bandwidth.

[0107] Referring to FIG. 7, the PE array adjustment block 440 may include a plurality of first multiplexers 441 for inputting first input data to each of the PEs, and a plurality of second multiplexers 443 for inputting second input data to each of the PEs.

[0108] The first multiplexers 441 may be matched to each row of the PE array 430, and the second multiplexers 443 may be matched to each column.

[0109] The IO buffer 450 may be configured to transmit first input data to a PE in the row direction in the PE array 430.

[0110] The weight buffer 460 can transmit second input data to the PEs in the column direction in the PE array 430 .

[0111] Although not shown, the IO buffer 450 and the weight buffer 460 can be implemented as one unit and connected via a BUS.

[0112] The adaptive data path controller 470 can control the input processing of the PE array coordination block 440 according to the memory bandwidth speed mode.

[0113] When the initial structure of the PE array 430 is an N×M structure, the memory bandwidth is 2×, and the speed mode of the memory bandwidth is a low-speed mode, the adaptive data path controller 470 can control the input paths of the first input data and the second input data so that the structure of the PE array 430 becomes 2N×M / 2, where N is a batch size and M is a weighted value range.

[0114] Conversely, when the initial structure of PE array 430 is a 2N×M / 2 structure (see FIG. 9), the memory bandwidth is 2×, and the speed mode of the memory bandwidth is high speed mode (see FIG. 8), the adaptive data path controller 470 can control the input paths of the first input data and the second input data so that the structure of PE array 430 becomes N×M.

[0115] The activation function unit (AFU) 480 may be provided for each row of the PE array 430 and configured to perform activation function processing on the processed data.

[0116] The special function unit (SFU) 490 may be a configuration for performing additional operations other than activation function processing, by matching with each of the activation function processing units 480. For example, the special function unit 490 may be logic capable of performing processing such as Element-wise multiplication of LSTM.

[0117] The low-level power controller 495 may be configured to perform clock gating control processing on a row-by-row basis in the PE array 430 .

[0118] Referring to FIG. 11, the memory controller 310 can transmit a memory bandwidth speed mode to the memory die 210.

[0119] The memory die 210 may change a memory clock based on a speed mode of a memory bandwidth transmitted from the memory controller 310. In this case, there may be at least one memory die 210.

[0120] Meanwhile, changing the clock of the memory based on the speed mode of the memory bandwidth may be directly processed by the memory controller 310. The data storage device 200 may be a Processing Near Memory (PNM).

[0121] In one embodiment described above, when the memory bandwidth (BW) is 2×BW, the computational power and memory power can be adjusted by controlling the input paths of the first input data and the second input data using a PE array adjustment block 440 including a plurality of first multiplexers 441 and a plurality of second multiplexers 443.

[0122] Those skilled in the art to which the present invention pertains should understand that the present invention can be embodied in other specific forms without departing from the technical spirit and essential features thereof, and that the above-described embodiments are illustrative and not limiting in all respects. The scope of the present invention is defined by the claims below rather than the above detailed description, and all modifications and variations derived from the meaning and scope of the claims and their equivalent concepts should be interpreted as being included in the scope of the present invention. [Explanation of symbols]

[0123] 100 Host device 200 Data storage device 210 Memory Die 300 Logic Die 310 Memory Controller 400 accelerator 410 Host Interface Block 420 PE Controller 430 PE Array 440 PE array adjustment block 450 IO Buffers 460 Weighted Value Buffer 470 Adaptive Data Path Controller 480 Activation function processing unit 490 Additional function processing section 495 Low Level Power Controller

Claims

1. A host device that determines a memory bandwidth speed mode based on at least one of a neural network model and a batch size; and an accelerator including a PE array for implementing the neural network model, the accelerator including a data storage device for controlling transmission paths of first input data and second input data of the PE array according to a speed mode of the memory bandwidth; When the speed mode is determined to be a high speed mode, the memory power consumption is greater than an initial setting standard of the memory power consumption, and when the speed mode is determined to be a low speed mode, the computing power consumption is greater than an initial setting standard of the computing power consumption; the memory bandwidth is related to a bandwidth of the first input data and the second input data communicated from the host device to the data storage device; 2. A data processing system, comprising: a data processing unit configured to store data in a first memory region and a second memory region;

2. The PE array includes a first PE group and a second PE group, each of the first and second PE groups including a plurality of PEs arranged in a first direction and a second direction different from the first direction; The accelerator comprises: a PE array adjustment block disposed between the first PE group and the second PE group in the PE array for selectively inputting one of the first input data of the first data group and the first input data of the second data group to the second PE group in the first direction in the PE array, and selectively inputting one of the second input data of the third data group and the second input data of the fourth data group to the second PE group in the second direction in the PE array; and 2. The data processing system of claim 1, further comprising an adaptive data path controller for controlling said PE array coordination block according to said memory bandwidth speed mode.

3. The data processing system of claim 2, characterized in that the number of PEs arranged in the first direction in each of the first PE group and the second PE group corresponds to a basic unit of the memory bandwidth.

4. 4. The data processing system of claim 3, wherein the PE array adjustment block includes a plurality of first multiplexers for inputting the first input data to the second PE group in the first direction, and a plurality of second multiplexers for inputting the second input data to the second PE group in the second direction.

5. The first direction is a row direction, and the second direction is a column direction, 5. The data processing system of claim 4, wherein the plurality of first multiplexers are each connected to PEs arranged in a first column of the second PE group in the PE array, and the plurality of second multiplexers are each connected to PEs arranged in a first row of the second PE group in the PE array.

6. The adaptive data path controller comprises: When an initial structure of the PE array is an N×M structure, the memory bandwidth is 2×, and the speed mode of the memory bandwidth is the low-speed mode, the input paths of the first input data and the second input data are controlled so that the structure of the PE array becomes 2N×M / 2; 6. The data processing system according to claim 5, wherein N is a batch size and is a positive integer, and M is a weighted value range and is a positive integer equal to or greater than 2.

7. the adaptive data path controller controls the plurality of first multiplexers to input the first input data of the second data group to the second PE group in the first direction when the first PE group receives the first input data of the first data group, and controls the second multiplexer to input the second input data of the third data group to the second PE group in the second direction when the first PE group receives the second input data of the third data group; the size of each of the first data group and the second data group is N; 7. The data processing system of claim 6, wherein the third data group and the fourth data group each have a size of M / 2.

8. 3. The data processing system of claim 2, wherein said accelerator further comprises a PE controller that communicates said memory bandwidth speed mode communicated from said host device to said adaptive data path controller.

9. 3. The data processing system of claim 2, wherein the accelerator further comprises a first level power controller for performing clock gating on a row basis in the PE array.

10. The accelerator comprises: an IO buffer for communicating first input data to PEs in the first direction in the PE array; and 3. The data processing system of claim 2, further comprising a weight buffer for communicating second input data to PEs in said second direction in said PE array.

11. The first direction is a row direction, and the second direction is a column direction, The accelerator comprises:

11. The data processing system of claim 10, further comprising an activation function processor, provided for each row of the PE array, for performing an activation function process on data operated by the PE array.

12. The data storage device includes: a memory controller that communicates the memory bandwidth speed mode to at least one memory die; and 2. The data processing system of claim 1, further comprising at least one memory die that changes a clock of the memory based on the speed mode of the memory bandwidth transmitted from the memory controller.

13. 2. The data processing system of claim 1, wherein the data storage device is a Processing Near Memory (PNM).

14. 2. The data processing system according to claim 1, wherein the host device determines the speed mode of the memory bandwidth to be the low-speed mode when the neural network model is a Convolutional Neural Network (CNN).

15. 2. The data processing system of claim 1, wherein the host device compares the batch size with a reference value when the neural network model is one of a Multi-Layer Perceptron (MLP) and a Long Short Term Memory (LSTM), and determines the speed mode of the memory bandwidth to be the low speed mode if the batch size exceeds the reference value, and determines the speed mode of the memory bandwidth to be the high speed mode if the batch size is equal to or less than the reference value.

16. an accelerator for controlling a transmission path of a first input data and a second input data input to the PE array based on a speed mode of a memory bandwidth; The accelerator comprises: a PE array including a first PE group and a second PE group, each of the first and second PE groups including a plurality of PEs arranged in a first direction and a second direction different from the first direction; a PE array adjustment block disposed between the first PE group and the second PE group in the PE array, for selectively inputting one of the first input data of the first data group and the first input data of the second data group to the second PE group in the first direction in the PE array, and selectively inputting one of the second input data of the third data group and the second input data of the fourth data group to the second PE group in the second direction in the PE array; and an adaptive data path controller for controlling the PE array coordination block according to a speed mode of the memory bandwidth; When the speed mode is determined to be a high speed mode, the memory power consumption is greater than an initial setting standard of the memory power consumption, and when the speed mode is determined to be a low speed mode, the computing power consumption is greater than an initial setting standard of the computing power consumption; the memory bandwidth is related to a bandwidth of the first input data and the second input data received from a host device; 11. An acceleration device, comprising: a memory bandwidth in the high-speed mode that is greater than the memory bandwidth in the low-speed mode.

17. The acceleration device described in claim 16, characterized in that the number of PEs arranged in the first direction in each of the first PE group and the second PE group corresponds to a basic unit of the memory bandwidth.

18. 18. The acceleration device of claim 17, wherein the PE array adjustment block includes a plurality of first multiplexers for inputting the first input data to the second PE group in the first direction, and a plurality of second multiplexers for inputting the second input data to the second PE group in the second direction.

19. The first direction is a row direction, and the second direction is a column direction, 20. The acceleration device of claim 18, wherein the plurality of first multiplexers are each connected to PEs arranged in a first column of the second PE group in the PE array, and the plurality of second multiplexers are each connected to PEs arranged in a first row of the second PE group in the PE array.

20. said adaptive data path controller controls the input paths of said first data and said second data so that the structure of said PE array becomes 2N×M / 2 when an initial structure of said PE array is an N×M structure, said memory bandwidth is 2×, and a speed mode of said memory bandwidth is said low speed mode; The acceleration device according to claim 19, wherein N is a batch size and is a positive integer, and M is a weighted value range and is a positive integer equal to or greater than 2.

21. the adaptive data path controller controls the plurality of first multiplexers to input the first input data of the second data group to the second PE group in the first direction when the first PE group receives the first input data of the first data group, and controls the second multiplexer to input the second input data of the third data group to the second PE group in the second direction when the first PE group receives the second input data of the third data group; the size of each of the first data group and the second data group is N; 21. The acceleration device of claim 20, wherein the third data group and the fourth data group each have a size of M / 2.

22. A central processing unit for determining a memory bandwidth speed mode based on at least one of a neural network model and a batch size; and a PE array for implementing the neural network model, and an accelerator for controlling transmission paths of first input data and second input data of the PE array according to a speed mode of the memory bandwidth; When the speed mode is determined to be a high speed mode, the memory power consumption is greater than an initial setting standard of the memory power consumption, and when the speed mode is determined to be a low speed mode, the computing power consumption is greater than an initial setting standard of the computing power consumption; the memory bandwidth is related to a bandwidth of the first input data and the second input data received from the central processing unit; The data storage device, wherein the memory bandwidth in the high-speed mode is greater than the memory bandwidth in the low-speed mode.

23. The PE array includes a first PE group and a second PE group, each of the first and second PE groups including a plurality of PEs arranged in a first direction and a second direction different from the first direction; The accelerator comprises: a PE array adjustment block disposed between the first PE group and the second PE group in the PE array for selectively inputting one of the first input data of the first data group and the first input data of the second data group to the second PE group in the first direction in the PE array, and selectively inputting one of the second input data of the third data group and the second input data of the fourth data group to the second PE group in the second direction in the PE array; and 23. The data storage device of claim 22, further comprising an adaptive data path controller for controlling the PE array coordination block according to a speed mode of the memory bandwidth.

24. 24. The data storage device of claim 23, further comprising: a plurality of first multiplexers for inputting the first input data to the second PE group in the first direction; and a plurality of second multiplexers for inputting the second input data to the second PE group in the second direction.

25. 24. The data storage device of claim 23, wherein the accelerator further comprises a PE controller that communicates the speed mode of the memory bandwidth communicated from the central processing unit to the adaptive data path controller.

26. a memory controller that communicates the memory bandwidth speed mode to at least one memory die; and 23. The data storage device of claim 22, further comprising at least one memory die that changes a memory clock based on the speed mode of the memory bandwidth transmitted from the memory controller.

Citation Information

Patent Citations

  • Power control system and method for operating the same

    KR1020130087853A

  • Accelerator in convolutional neural network and operation method thereof

    KR1020180012439A

  • Optimizing dynamical resource allocations using a data heat map in disaggregated data centers

    US10893096B2

  • Data processing method, data processor and apparatus including a data processor

    US20120304024A1

  • Techniques to predict memory bandwidth demand for a memory device

    US20190101974A1