High Bandwidth Memory and Systems
By storing the zero value position of sparse data in the HBM buffer die and detecting data similarity, the data write request is optimized, which solves the problem of access delay and low bandwidth efficiency of HBM when processing sparse data, and improves the performance of GPU and other devices. data transmission efficiency and performance.
Patent Information
- Application Number
- CN202010324953.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-12
- Filing Date
- 2020-04-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-04-22
AI Technical Summary
In applications such as deep neural networks, high-bandwidth memory (HBM) has problems with access latency and low bandwidth efficiency when processing sparse data and data similarity, especially in accelerators with limited memory pins such as graphics processing units (GPUs). middle.
Optimize the cycle time of data write requests by using bitmaps to store the zero value locations of sparse data in HBM's buffer die and generate data bus indications based on data sparsity and similarity characteristics, using data compression technology and logging to improve performance.
It effectively reduces the search delay and bandwidth consumption of HBM, improves the overall performance, especially in devices such as GPU, and improves data transmission efficiency and dynamic power management.
Smart Images

Figure CN111881071B_ABST
Abstract
Description
Technical Field
[0001] The subject matter disclosed herein relates to high bandwidth memory (HBM). More specifically, the subject matter disclosed herein relates to a system and method for reducing internal and external HBM accesses based on data characteristics to improve overall HBM performance. Background Art
[0002] Machine learning applications such as deep neural networks use compute and memory to train on diverse data sets to provide accurate inferences. As high performance computing (HPC) and graphics algorithms become further data and compute intensive, high bandwidth memory requirements will become more important, especially for memory pin-constrained accelerators such as graphics processing units (GPUs). Summary of the invention
[0003] Example embodiments provide an HBM that may include a memory and a controller. The controller may receive a data write request from a processor external to the HBM, and the controller may be configured to: store an entry indicating at least one address of data of the data write request in the memory, wherein the storage of the entry may include sparse data or data value similarity based on the data write request, wherein the sparse data includes a predetermined percentage of data values equal to zero in the data of the data write request, and the data value similarity may include a predetermined amount of spatial value locality of the data values in the data of the data write request; and generate an indication that the data bus is available for operation during the cycle time of the data write request based on the data write request including the sparse data or data value similarity. In one embodiment, the predetermined percentage of data values equal to zero may be based on a predetermined data granularity. In another embodiment, the predetermined amount of spatial value locality may be based on a predetermined data granularity.
[0004] Another example embodiment provides a system that may include a processor, an HBM, and a controller. The controller may include a memory and may be configured to: receive a data write request from the processor; store an entry indicating at least one address of data of the data write request in the memory of the controller based on the data write request that may include sparse data, wherein the sparse data may include a predetermined percentage of data values equal to zero in the data of the data write request; and generate an indication that a data bus is available for operation during a cycle time of the data write request based on the data write request including the sparse data. In one embodiment, the predetermined percentage of data values equal to zero for the sparse data may be based on a predetermined data granularity. In another embodiment, the controller may also be configured to: store an entry indicating at least one address of data of the data write request in the memory of the controller based on the data of the data write request that also includes data value similarity, and generate the indication that the data bus is available for operation during the cycle time of the data write request based on the data write request that also includes data value similarity, and wherein the data value similarity may include a predetermined amount of spatial value locality, and the predetermined amount of spatial value locality of data value similarity may be based on a predetermined data granularity.
[0005] Example embodiments provide a method, which may include: receiving, at a controller of an HBM, a data write request from a processor external to the HBM; storing, by the controller, an entry indicating at least one address of data of the data write request in a memory of the controller based on data of the data write request including sparse data or data value similarity; and generating, by the controller, an indication that a data bus is available for operation during a cycle time of the data write request based on data of the data write request including the data value similarity, wherein the sparse data may include a predetermined percentage of data values equal to zero in the data of the data write request, and the data value similarity may include a predetermined amount of spatial value locality of data values in the data of the data write request. In one embodiment, the data of the data write request may include the predetermined amount of spatial value locality, the indication may be based on the data of the data write request including the predetermined amount of spatial value locality, and the method may further include: generating, by the controller, the indication that the data bus is available for operation during the cycle time of the data write request based on the data write request also including the predetermined amount of spatial value locality. In another embodiment, the data of the data write request may include the predetermined percentage of data values equal to zero, the indication may be based on the data of the data write request including the predetermined percentage of data values equal to zero, and wherein the method may further include: generating, by the controller, the indication that the data bus is available for operation during a cycle time of the data write request based on the data write request also including the predetermined percentage of data values equal to zero, wherein the predetermined percentage of data values equal to zero may be based on a predetermined data granularity. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The embodiments will be more clearly understood from the following brief description in conjunction with the accompanying drawings. The accompanying drawings represent non-limiting examples described herein. In the following sections, various aspects of the subject matter disclosed herein will be described with reference to exemplary embodiments shown in the accompanying drawings, in which the same reference numerals refer to the same or similar elements, and in the accompanying drawings:
[0007] Figure 1A depicts a plan view of an example embodiment of a typical HBM system according to the subject matter disclosed herein;
[0008] Figure 1B depicts a side view of an example embodiment of a typical HBM system according to the subject matter disclosed herein;
[0009] Figure 2A and Figure 2B respectively depicting example graphs of activation density at different layers of two commonly used exemplary neural networks according to the subject matter disclosed herein;
[0010] Figure 3 depicts an exemplary 32-bit data bus between an output driver, e.g., of an HBM memory, and an input buffer, e.g., of a GPU, according to the subject matter disclosed herein;
[0011] Figure 4A depicts a block diagram of an example embodiment of an HBM system according to the subject matter disclosed herein;
[0012] Figure 4B depicts a block diagram of another example embodiment of an HBM system according to the subject matter disclosed herein;
[0013] Figure 5 is a relative timing diagram depicting a data write request operation in a case where data associated with the data write request is sparse data in accordance with the subject matter disclosed herein; and
[0014] Figure 6 is a relative timing diagram depicting data write request operations in the event that data associated with consecutive data write requests have data value similarities in accordance with the subject matter disclosed herein; and
[0015] Figure 7 is a flow chart of an example embodiment of a method for improving HBM overall performance in response to a data write request operation when data associated with the data write request is sparse data or has data value similarity according to the subject matter disclosed herein. DETAILED DESCRIPTION
[0016] In the following detailed description, many specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be appreciated by those skilled in the art that the disclosed aspects may be practiced without these specific details. In other cases, well-known methods, processes, components, and circuits are not described in detail so as not to obscure the subject matter disclosed herein.
[0017] Throughout the specification, reference to "one embodiment" or "embodiment" means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment disclosed herein. Therefore, the phrases "in one embodiment" or "in an embodiment" or "according to an embodiment" (or other phrases with similar meanings) appearing in various positions throughout this specification may not necessarily all refer to the same embodiment. In addition, specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In this regard, as used herein, the word "exemplary" means "used as an example, instance or illustration". Any embodiment described as "exemplary" herein should not be interpreted as necessarily preferred or advantageous over other embodiments. In addition, specific features, structures or characteristics may be combined in any suitable manner in one or more embodiments. Moreover, depending on the context discussed herein, a singular term may include a corresponding plural form, and a plural term may include a corresponding singular form. Similarly, hyphenated terms (e.g., "two-dimensional", "predetermined", "pixel-specific", etc.) may occasionally be used interchangeably with corresponding non-hyphenated versions (e.g., "two-dimensional", "predetermined", "pixel-specific", etc.), and capitalized terms (e.g., "Counter Clock", "RowSelect", "PIXOUT", etc.) may be used interchangeably with corresponding non-capitalized versions (e.g., "counter clock", "row select", "pixout", etc.). Such occasional interchangeability should not be construed as contradictory.
[0018] In addition, depending on the context discussed herein, singular terms may include corresponding plural forms, and plural terms may include corresponding singular forms. It should also be noted that the various drawings (including component diagrams) shown and discussed herein are for illustrative purposes only and are not drawn to scale. Similarly, various waveforms and timing diagrams are shown for illustrative purposes only. For example, for clarity, the size of some elements may be enlarged relative to other elements. In addition, if deemed appropriate, reference numerals are repeated between the drawings to indicate corresponding and / or similar elements.
[0019] The terms used herein are only for the purpose of describing some example embodiments, and are not intended to limit the subject matter claimed for protection. As used herein, the singular forms "one", "an" and "the" are intended to also include plural forms, unless the context clearly indicates the opposite. It will also be understood that the terms "including" and / or "comprising" when used in this specification indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof. As used herein, the terms "first", "second", etc. are used as marks of the nouns they precede, and do not mean any type of ordering (e.g., space, time, logic, etc.) unless clearly defined as such. In addition, the same reference numerals may be used in two or more figures to refer to parts, components, blocks, circuits, units or modules with the same or similar functions. However, such use is only for the purpose of simplifying the description and facilitating discussion; it does not mean that the structural or architectural details of these components or units are the same in all embodiments, or that such commonly referenced parts / modules are the only way to implement some example embodiments disclosed herein.
[0020] It will be understood that when an element or layer is referred to as being "on," "connected to," or "coupled to" another element or layer, it may be directly on, directly connected to, or coupled to the other element or layer, or there may be intervening elements or layers. Conversely, when an element is referred to as being "directly on," "directly connected to," or "directly coupled to" another element or layer, there are no intervening elements or layers. Similar reference numerals always represent similar elements. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0021] As used herein, the terms "first", "second", etc. are used as labels for the nouns they precede, and do not imply any type of ordering (e.g., spatial, temporal, logical, etc.) unless explicitly defined as such. In addition, the same reference numerals may be used in two or more figures to refer to parts, components, blocks, circuits, units, or modules having the same or similar functions. However, such use is only for simplicity of description and ease of discussion; it does not mean that the structural or architectural details of these components or units are the same in all embodiments, or that such commonly referenced components / modules are the only way to implement some example embodiments disclosed herein.
[0022] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the subject matter belongs. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and that these terms will not be interpreted as an ideal or overly formal meaning unless explicitly defined as such herein.
[0023] As used herein, the term "module" refers to any combination of software, firmware, and / or hardware configured to provide the functionality described herein in conjunction with a module. Software may be implemented as a software package, code, and / or instruction set or instructions, and as used in any embodiment described herein, the term "hardware" may include, for example, hardwired circuits, programmable circuits, state machine circuits, and / or firmware storing instructions executed by programmable circuits, alone or in any combination. Modules may be implemented as circuits that form part of a larger system, such as, but not limited to, an integrated circuit (IC), a system on a chip (SoC), etc. The various components and / or functional blocks disclosed herein may be implemented as modules that may include software, firmware, and / or hardware that provide the functionality described herein in conjunction with various components and / or functional blocks.
[0024] Figure 1A A plan view of an example embodiment of a typical HBM system 100 is depicted. Figure 1B A side view of an example embodiment of a typical HBM system 100 is depicted. The HBM system 100 may include a motherboard 101, a printed circuit board (PCB) 102, an interposer 103, a buffer die 104, one or more dynamic random access memory (DRAM) chips (DRAM chips 105a-105d are shown), and a host processing device (i.e., a logical processor) 106 (such as a central processing unit (CPU), a GPU, or a tensor processing device (TPU)). The buffer die 104 and the DRAM chips may configure the HBM.
[0025] PCB 102 may be electrically connected to motherboard 101 through an array of solder balls 107. Interposer 103 may be disposed on PCB 102. Buffer die 104 may be disposed on interposer 103. DRAM chips 105 may be stacked and disposed on buffer die 104. Buffer die 104 may be electrically connected to host processing device 106 through I / O bus 108, which may pass through interposer 103. In one embodiment, I / O bus 108 may include 1024 data lines and one or more control and address (CA) lines.
[0026] In one embodiment, HBM can be configured to have the following HBM architecture, which can include a 1024-bit wide data bus (i.e., part of the I / O bus 108), and can provide a traditional mode and a pseudo channel mode. In the traditional mode, the I / O bus 108 can be configured to have eight channels (CH0-CH7) with 128 bits per channel, and a burst length (BL) of 2. Each channel in the traditional mode can have a dedicated CA bus. In the pseudo channel mode, the I / O bus 108 can be configured to have 16 channels with 64 bits per channel, and a burst length (BL) of 4. In the pseudo channel mode, two pseudo channels can share the same CA bus.
[0027] Deep learning applications may exhibit data sparsity characteristics and / or data similarity characteristics due to iterative floating point / fixed point operations. Data sparsity may typically be caused by the use of rectified linear units (ReLU) that prune negative values or the use of low-precision weights during the inference phase. ReLU or parameterized rectified linear units (PReLu) that can reduce weight values are widely used in convolutional neural networks (CNNs) and ranking and recommendation models. But by far, the largest source of zeros occurs when trained neural networks are pruned by removing some weights to reduce the overall model size. Data similarity may be more common in CNNs, mainly due to the spatial value locality of pixel values in images. The data sparsity associated with deep learning applications can grow to an average of approximately 40-50% based on, for example, rectified linear unit (ReLU) activation functions and / or zero weights.
[0028] Figure 2A and Figure 2B Depicted are example graphs of activation density at different layers of two commonly used exemplary neural networks. In each graph, the abscissa represents a given layer within the exemplary neural network, and the ordinate represents the activation density (i.e., 1-sparseness). The specific activation density of each corresponding layer of the two commonly used exemplary neural networks shows how the specific activation density changes when the network is trained. For example, a specific activation density of 40% density would mean that 60% of the activation values are zero.
[0029] The address mapping metadata that may be associated with sparse data can grow to the order of megabytes, and the locations of zero values in the address mapping metadata may change rapidly during the training of a machine learning model and may be difficult to track. Storing such metadata in an HBM located off-chip from a logical processor may increase lookup latency and may reduce HBM memory bandwidth. The subject matter disclosed herein provides functionality in a buffer die 104 stacked below a DRAM chip of an HBM to compactly store a zero location bitmap in, for example, a static random access memory (SRAM), and may be used to detect sparse data memory writes that may be discarded or eliminated, as well as for other bus operations.
[0030] Data can be organized in an area structure (SOA) arrangement or an area structure (AOS) arrangement. For example, pixel data such as red (R), green (G), and blue (B) data can be organized in an SOA arrangement, where the RGB data of each corresponding pixel is organized as a memory area. The same RGB data of each pixel can be organized as an AOS arrangement, so that all R data are arranged together, all G data are arranged together, and all B data are arranged together. In either arrangement, the spatial value locality of the data can contain data with similar patterns or values. In addition, many floating-point data in deep learning applications exhibit data locality in the exponential part of the floating-point value. That is, many values used in deep learning applications may be between -1 and +1. The locality of the data can be used to save HBM bus bandwidth and reduce the trigger rate dynamic power in HBM.
[0031] Figure 3 An exemplary 32-bit data bus 301 between an output driver 302, such as an HBM, and an input buffer 303, such as a GPU, is depicted. A first transaction 304 and a second transaction 305 are depicted as being transmitted from the output driver 302 to the input buffer 303 via the data bus 301. Example content of the first transaction 304 is shown at 306. The bits of the first transaction 304 indicated at 307 have similarity. In this particular case, the similarity of the bits indicated at 307 are all equal. In another embodiment, the similarity of the bits may not be that the bits are all equal, but have values within a predetermined range of values. In yet another embodiment, the specific position of the bit that can be determined to be similar may be different from the position indicated at 307. The similarity of the bits of the first transaction 304 can be used to save HBM bus bandwidth and reduce the trigger rate dynamic power in the HBM system.
[0032] The subject matter disclosed herein provides the following HBM system architecture, which uses two data characteristics, data sparsity and data similarity, to improve the overall performance of HBM by implementing the functions disclosed herein in the buffer die 104 of HBM. An example embodiment of the architecture disclosed herein uses a bitmap to store the location of zero values of sparse data, and sends corresponding communications to the memory controller of the host processing device, where specific sparse writes can be discarded or eliminated, thereby saving bus cycles that can be used for other operations. Another example embodiment of the architecture disclosed herein detects similarities that occur in data of consecutive data writes, and uses data compression techniques and / or logging to improve application and HBM performance. When data compression is used, the compressed data can be compressed into a series of blocks in the memory of the HBM system architecture.
[0033] One embodiment of the HBM system architecture disclosed herein implements functions that are physically close to the HBM system to use data sparsity and data value similarity, thereby improving the performance of the memory system without making any changes to the command and / or address bus protocol. As used herein, the term "close" or "closeness" refers to functions and / or functionality implemented on the buffer die 104 of the HBM according to the subject matter disclosed herein. Such functions and / or functionality can also be implemented in the input / output (IO) peripherals inside the DRAM chip without affecting the core array. The proximity of the function relative to the HBM can provide usefulness because the buffer die 104 of the HBM can have a larger available area that can implement a bitmap in SRAM, while the bitmap cannot be implemented inside an accelerator such as a GPU. The SRAM of the accelerator may be a valuable resource that can be used to accelerate matrix / tensor operations, and the SRAM memory in the buffer die 104 of the HBM, for example, can be used for near memory acceleration functions, as in the example described herein. In another embodiment disclosed herein, the address location (metadata) of zero-valued data can be stored in a large address space that can be located on the buffer die 104 of the HBM. The functional logic disclosed herein to detect data sparsity and executed by the buffer die 104 of the HBM can be used to compactly store a bitmap containing zero positions in, for example, an SRAM, thereby enabling detection of sparse memory writes and discarding or eliminating them. Similarly, the functionality disclosed herein can be configured to detect data similarity between consecutive writes and compress similar values. This can save memory bus cycles and can be used to provide an overall higher number of memory transfers, thereby increasing data bandwidth to the GPU, which may be sensitive to data bandwidth.
[0034] Figure 4AA block diagram of an example embodiment of an HBM system 400 according to the subject matter disclosed herein is depicted. The HBM system 400 may include a sparse-dense control engine 401 and a memory 402. In one embodiment, the HBM system 400 may utilize a larger buffer die area and may include logic and SRAM. The sparse-dense control engine 401 may provide functionality for determining the sparsity or density of data relative to a zero value. The sparse-dense control engine 401 may be implemented as any combination of hardware and software and may be referred to as a module. In one embodiment, the memory 402 may be SRAM. The HBM system 400 may be located on a buffer die 410 between a host processing device 420 such as a CPU, GPU, or TPU and an HBM 430.
[0035] In one embodiment, the HBM system 400 can detect whether the data associated with the data write request has a sparse data characteristic, and can use the command / decode circuit 403 to signal or communicate information related to the detection of the sparse data characteristic to the memory controller 421 of the host processing device 420 through a message and / or through a reserved for future use (RFU) pin. The sparse data characteristic can be based on whether the data contains a predetermined percentage of values equal to zero.
[0036] Alternatively, the HBM system 400 can detect whether the data associated with the data write request has a data similarity characteristic, and can use the command / decode circuit 403 to signal or communicate information related to the detection of the data similarity characteristic to the memory controller 421 of the host processing device 420 through a message and / or through an RFU pin. The data value similarity includes a predetermined amount of spatial value locality of the data value of the data of the data write request. The identification of data value similarity can be based on data granularity, also referred to as spatial value locality in this article, which can be automatically determined and / or user-selectable. Data value similarity can also be based on an encoding technique that measures the Hamming distance between two data values and assigns a corresponding similarity score.
[0037] In operation, the sparse-dense control engine 401 receives a data write request from the host processing device 420 and determines whether the data associated with the write request has sparse data characteristics. That is, the sparse-dense control engine 401 determines whether the value equal to 0 in the data associated with the write request exceeds a predetermined percentage. In one embodiment, if, for example, about 40% or more of the data is equal to 0, the data of the write request is considered to be sparse. For the data of the write request, other percentages may also be considered sparse data. In addition, the granularity of the data width can be made finer (i.e., 4kB to 1kB, 1kB to 128B, or 128B to 32B) or coarser in order to change the number of entries that can be considered sparse while also managing the metadata overhead for tracking sparse entries. The granularity change can be signaled via the RFU pin or the error correction code (ECC) pin.
[0038] If the sparse-dense control engine 401 determines that the write data is sparse, the sparse-dense control engine 401 stores metadata related to the address of the data equal to 0 in the memory 402. The sparse-dense control engine 401 then communicates to the memory controller 421 and / or the HBM 430 that the data write to the HBM 430 can be discarded or eliminated for the sparse data equal to 0. The communication that the data write can be discarded can be sent to the memory controller 421 of the host processing device 420 through the command / decode circuit 403, so that the cycle that would have been used by the host processing device 420 to write the 0-valued data to the HBM 430 can be used for other tasks. In an alternative embodiment, the host processing device 420 can signal the memory controller 421 through the RFU pin available between the buffer die 410 and the host processing device 420. Additionally or alternatively, the sparse-dense control engine 401 can signal the HBM 430 that the cycle that would have been used to write the 0-valued data to the HBM 430 can be used for other tasks.
[0039] The address of each 0 value may be recorded directly into the memory 402. In some examples, the recorded address may be 32 bits. In other examples, the address may include more or less than 32 bits. In one embodiment, the memory 402 may be organized as a cache that stores the recorded addresses. In one embodiment, the memory 402 may be organized as a line buffer cache. In yet another example, the recorded addresses may form a bitmap, where each bit represents an access block. For this embodiment, the bitmap may be compressed to reduce its size. When compressed, the bitmap may form a cache line whose size is based on the cache size of the host processing device 420. Preset bits may be used to select an exact value so that the encoding may be reduced to an exact size. For example, if the host processing device 420 has a storage capacity of 8GB and a cache line of 128 bytes, the bitmap may have 64 million (i.e., 64M) entries. A 64 megabit (Mb) map may be used to represent that each of the 64M entries is 8MB in size, and depending on the compression technique, the 8MB size may be compressed to only 2MB in size. Alternatively, the metadata may be stored in the memory 402, such as 2 to 3 bits per access block. The size of the memory 402 may set how many metadata entries may be stored in the memory 402.
[0040] During a data read request, if a hit or match occurs on an address stored in the bitmap, the bitmap can be decompressed. Once the host processing device 420 has sent an ACTIVATE command for a particular row, all columns within the DRAM row can be speculatively decompressed, thereby ensuring minimal latency overhead for decompression. As used herein, the term "speculatively" means that the corresponding compression entries of all columns within the activated DRAM row can be assumed to have been requested by the host, thereby helping to partially hide the decompression latency by starting the process early rather than waiting until a specific column command is issued with tRCD cycles after the ACTIVATE command. Based on the use of metadata, read access can have a computational complexity of O(1).
[0041] In one embodiment, a dedicated instruction set architecture 450 may be used to instantiate and perform operations in the HBM system 400 according to the subject matter disclosed herein. An application programming interface (API), which may include software drivers 451 and libraries 452, may be provided as part of the dedicated instruction set architecture 450 that accesses the HBM system 400 to transparently integrate the functionality disclosed herein into any existing machine learning framework.
[0042] Figure 55 is a relative timing diagram 500 depicting a data write request operation in the event that data associated with the write request contains sparse data in accordance with the subject matter disclosed herein. The timing diagram 500 includes relative timing of a clock signal 501, a CA bus 502, and a data (DQ) bus 503 during a data write request operation. Figure 5 A portion of the CA bus 502 depicted in FIG. 4 may extend between the host processing device 420 and the sparse-dense control engine 401 , while a portion of the DQ bus 503 depicted may extend between the sparse-dense control engine 401 and the HBM 430 .
[0043] Initially, the host processing device 420 sends an activation (ACT) command 504 and then sends a write request (WR) command 505. For this example, the sparse-dense control engine 401 determines that the write data is sparse, and the sparse-dense control engine 401 discards or eliminates the data write to the HBM 430 for data equal to 0, as shown in no operation (NOP) 506. The host computing device 420 continues the write request by sending a precharge (PRE) command 507. In one embodiment, the precharge can close the opened row in the DRAM memory bank and can prepare the memory bank for the next row activation. More specifically, the precharge can raise the internal bit line voltage back to Vdd / 2 so that the row value can be sensed after the next activation. During the time when the NOP is being executed, the clock cycle and the DQ bus can be used for other operations. As used herein, the term "other operations" refers to other conventional DRAM read, write and activate commands that can use released or available cycles.
[0044] Figure 4B 4 is a block diagram depicting another example embodiment of an HBM system 400' in accordance with the subject matter disclosed herein. Figure 4A 4 , the HBM system 400 ′ can be located on a buffer die 410 between a host processing device 420 such as a CPU, GPU, or TPU and an HBM 430. The HBM system 400 ′ can include a sparse-dense control engine 401 and a memory 402. In one embodiment, the memory 402 can be an SRAM. In one embodiment, the HBM system 400 ′ can use an ECC engine 404 to signal or communicate information related to the detection of sparse data characteristics or the detection of data similarity characteristics to a memory controller 421 of the host processing device 420. The ECC function is typically not used during the training of a deep neural network, so the communication path associated with the ECC engine 404 can be reconfigured to signal or communicate that data write operations can be discarded or eliminated, and memory cycles can be used for other operations.
[0045] The operation of the HBM system 400' is similar to Figure 4A . The sparse-dense control engine 401 receives a data write request from a host processing device 420 and determines whether the data associated with the data write request is sparse data. That is, the sparse-dense control engine 401 determines whether the value equal to 0 in the data associated with the write request exceeds a predetermined percentage. In one embodiment, if, for example, about 40% or more of the data is equal to 0, the data of the write request is considered to be sparse. If the sparse-dense control engine 401 determines that the write data is sparse, the sparse-dense control engine 401 can store metadata related to the address of the data equal to 0 in the memory 402. Then, the sparse-dense control engine 401 discards or eliminates the data write to the HBM 430 for the data equal to 0, and sends a signal to the memory controller 421 of the host processing device 420 through the ECC circuit 404 to indicate that the cycle that should have been used to write the 0-valued data to the HBM 430 can be used for other tasks. In an alternative embodiment, the memory controller 421 may be signaled through a reserved for future use (RFU) pin available between the buffer die 410 and the host processing device 420 .
[0046] For both HBM system 400 and HBM system 400', a data read request may include a parallel or sideband lookup of HBM 430 and memory 402. The delay associated with the data read request may be small, however, such a delay may not adversely affect the host processing device 420. The corresponding mapping entry for the entire row may be extracted into the HBM register. The column access may first be looked up in memory 402, and if there is a match, the sparse data may be returned through the sparse data bus between memory 402 and sparse-dense control engine 401. If there is no match, the requested data is returned through the DQ bus between HBM 430 and sparse-dense control engine 401 with an additional delay compared to the case where there is a match for the data stored in memory 402. The corresponding metadata of the sideband lookup request address. Then, the metadata may be used in parallel to determine whether the access is a "sparse" access or a "dense" access, where the main motivation may be to eliminate read zero values from the HBM. If the access is determined to be a sparse access, the read command is not issued and the cycle is released. If the access is determined to be a dense access, a read command is issued and "dense" data is read from the HBM. The return path on the ECC / DQ bus may depend on sparse / dense access. The ECC path may provide control information with a value of zero. If the control information on the ECC path indicates a non-zero value, a conventional read command may be issued and the read data may be returned on the DQ bus. When the ECC path is used for sparse / dense access, HBM 430 is able to implement the ECC function, so the read value may be protected from errors until the buffer die. However, data transmission from the DRAM to the host may have errors. For example, a cyclic redundancy check (CRC) implemented in the host may correct and detect such errors. The released ECC pin may be used in the above mechanism to detect whether the read data is sparse (during the DRAM activation command). If the data is sparse, a read command may not be issued and the row may be closed by a precharge command.
[0047] Alternative example embodiments of the HBM system may have Figure 4A or Figure 4BAny configuration depicted in , and the data value similarity between consecutive data write requests can be detected. This alternative exemplary embodiment can compress and / or record similarity data to improve the performance of the application by reducing the width of data write access and providing available bus width for other operations inside and outside HBM 430. Data value similarity and spatial value locality can help perform memory bandwidth compression in buffer die 410. Metadata can be generated, which can be used to record the detected data similarity. The identification of data value similarity can be based on data granularity, which can be automatically determined and / or user-selectable. Data value similarity can also be based on an encoding technique that measures the Hamming distance between two data values and assigns a corresponding similarity score. Spare pins (e.g., ECC pins and / or RFU pins) can be used to signal the available bus width to an external host processing device 420 and / or HBM430.
[0048] The sparse-dense control engine 401 can be configured to track the data of the continuous data write request and encode the data showing the similarity of the data value using any appropriate encoding technology. The encoded data and / or metadata associated with the encoded data can be stored in the memory 402. The data read request can utilize parallel search of both the memory 402 and the HBM 430. If a match occurs in the metadata stored in the memory 402, the encoded data can be decoded and returned to the host processing device 420. The size of the metadata can vary between entries depending on the encoding technology used, and can be changed to fit the cache size of the memory 402. In addition, the size of the metadata can be a function of the cache size / sector of the host processing device 420. In one embodiment, the memory controller 421 can track previous values and select an encoding scheme to reduce the data width. In one embodiment, the size of the metadata can be dynamically changed to different encoding schemes as a background process and / or during the refresh operation of the HBM 430. The decoding process can generate the encoding scheme, special optimization bits, the number of similar values, etc. used in the encoding process.
[0049] Figure 6 6 is a relative timing diagram 600 depicting data write request operations when data associated with consecutive write requests have data value similarity according to the subject matter disclosed herein. Timing diagram 600 includes relative timing of clock signal 601, CA bus 602, and DQ bus 603.
[0050] For two consecutive data write requests 604 and 605, the host processing device 420 sends a first activation (ACT1) command 606, a first write request (WR1) command 607, and a precharge (PRE) command 608, and then sends a second activation (ACT2) command 609, a second write request (WR2) command 610, and a precharge (PRE) command 611. For this example, if the sparse-dense control engine 401 determines that the data 612 and 613 of the two write requests 604 and 605 have data value similarity characteristics, the sparse-dense control engine 401 encodes the similar data, stores the encoded data and the metadata of the encoded data in the memory 402, and sends a signal (not shown) to notify that there is a bus width availability that can be used for other operations, such as read, write, and activate commands for ordinary DRAM access. Since these operations are scheduled in the release time slot, the overall bandwidth efficiency can be improved and the throughput can be improved.
[0051] Figure 7 700 is a flowchart of an example embodiment of a method for improving HBM overall performance in response to a data write request operation when the data associated with the write request is sparse data or has data value similarity according to the subject matter disclosed herein. At 701, a controller (e.g., Figure 4A sparse-dense control engine 401 in HBM430) from a processor external to HBM430 (e.g., Figure 4A The host processing device 420 in the embodiment receives a data write request. At 702, based on the data of the data write request including sparse data or data value similarity, an entry indicating at least one address of the data of the data write request is stored in a memory such as Figure 4A In a memory such as memory 402 in the memory. At 703, an indication that a data bus is available for operation during a cycle time of a data write request is generated based on the data of the data write request including sparse data or data value similarity.
[0052] Those skilled in the art will recognize that the innovative concepts described herein may be modified and varied over a wide range of applications. Therefore, the scope of the claimed subject matter should not be limited to any of the specific exemplary teachings discussed above, but rather should be defined by the appended claims.
Claims
1. A high bandwidth memory HBM device, include: Memory; A data bus configured to transfer data from the processor to the high bandwidth memory HBM; as well as A controller receives a data write request from the processor, wherein the controller is configured to: Determining whether the data of the data write request includes sparse data; Based on the data of the data write request including sparse data, storing an entry in the memory, the entry including metadata of the data of the data write request; generating, based on the data of the data write request including sparse data, an indication that the data bus can be used by the processor for other operations other than the data write request during a cycle time of the data write request; as well as The indication is communicated to the processor. 2 . The HBM device of claim 1 , wherein the sparse data includes a predetermined percentage of data values equal to zero in the data of the data write request, and the predetermined percentage of data values equal to zero is based on a predetermined data granularity.
3. The HBM device of claim 1 , wherein the entry is a first entry, the metadata is a first metadata, and based on the data of the data write request further includes data value similarity, the controller further stores a second entry in the memory, the second entry including second metadata of the data of the data write request, and the amount of the data value similarity is based on a predetermined data granularity.
4. The HBM device according to claim 1 , wherein the controller is further configured to receive a data read request for a read access to the HBM from the processor, and Wherein the controller is further configured to determine whether an address corresponding to the data read request is stored as an entry in the memory. 5 . The HBM device of claim 4 , wherein the controller is further configured to perform sideband access in addition to the parallel memory lookup and the HBM lookup.
6. The HBM device according to claim 3, wherein the second entry includes information related to the data value similarity of the data of the data write request, and The controller is further configured to compress the second entry to reduce data width. 7 . The HBM device of claim 1 , wherein the controller is further configured to compress the metadata into a series of blocks in the memory.
8. A high bandwidth memory HBM system, include: processor; High bandwidth memory HBM; a data bus configured to transmit data from the processor to the HBM; as well as A controller including a memory, the controller being configured to: receiving a data write request from the processor, determining whether the data of the data write request includes sparse data, storing an entry in the memory of the controller based on the data of the data write request including sparse data, the entry including metadata of the data of the data write request, generating an indication that the data bus can be used by the processor for other operations other than the data write request during a cycle time of the data write request based on the data of the data write request including sparse data, and The indication is communicated to the processor. 9 . The HBM system of claim 8 , wherein the sparse data includes a predetermined percentage of data values equal to zero in the data of the data write request, and the predetermined percentage of data values equal to zero of the sparse data is based on a predetermined data granularity.
10. The HBM system of claim 8, wherein the entry is a first entry, the metadata is a first metadata, and the controller is further configured to: Based on the data of the data write request further including data value similarity, further storing a second entry in the memory of the controller, the second entry including second metadata of the data of the data write request, and generating the indication that the data bus can be used by the processor for the other operation during a cycle time of the data write request based on the data of the data write request also including data value similarity, and wherein the data value similarity comprises a predetermined amount of spatial value locality of data values in the data of the data write request, and Wherein the predetermined amount of spatially valued locality of the data value similarity is based on a predetermined data granularity.
11. The HBM system according to claim 8, wherein the controller is further configured to receive a data read request for a read access to the HBM from the processor, and Wherein the controller is further configured to determine whether an address corresponding to the data read request is stored as an entry in the memory.
12. The HBM system of claim 11, wherein the controller is further configured to perform sideband access in addition to the parallel memory lookup and the HBM lookup.
13. The HBM system according to claim 10, wherein the second entry includes information related to data value similarity of the data of the data write request, and The controller is further configured to compress the second entry to reduce data width.
14. The HBM system of claim 8, wherein the controller is further configured to compress the metadata into a series of blocks in the memory.
15. A method for high bandwidth memory HBM, include: receiving, at a controller of the HBM, a data write request from a processor external to the HBM, wherein the HBM includes a data bus configured to transfer data from the processor to the HBM; Determining, by the controller, whether the data of the data write request includes sparse data; Based on the data of the data write request including sparse data, storing, by the controller, an entry in a memory of the controller, the entry including metadata of the data of the data write request; Based on the data of the data write request including sparse data, generating, by the controller, an indication that the data bus can be used by the processor for other operations other than the data write request during a cycle time of the data write request; as well as The indication is communicated by the controller to the processor.
16. The method of claim 15, wherein the entry is a first entry, the metadata is a first metadata, and the sparse data includes a predetermined percentage of data values equal to zero in the data of the data write request, wherein the data of the data write request further includes data value similarity, the data value similarity including a predetermined amount of spatial value locality of data values in the data of the data write request, and the indication is further based on the data of the data write request including the predetermined amount of spatial value locality, and The method also include: Based on the data of the data write request further including data value similarity, the controller further stores a second entry in the memory of the controller, the second entry including second metadata of the data of the data write request, and Based on the data of the data write request further including data value similarity, the controller generates the indication that the data bus can be used by the processor for the other operation during a cycle time of the data write request.
17. The method of claim 15, wherein the sparse data includes a predetermined percentage of data values equal to zero, and the data indicating the data write request is based on the data includes the predetermined percentage of data values equal to zero, and Wherein the predetermined percentage of data values of the sparse data that are equal to zero is based on a predetermined data granularity.
18. The method according to claim 15, further comprising: include: receiving a data read request for a read access to the HBM from the processor; determining whether an address corresponding to the data read request is stored as an entry in the memory; as well as Based on the address corresponding to the data read request being stored as an entry in the memory, a sideband access is performed in addition to the parallel memory lookup and the HBM lookup.
19. The method according to claim 16, wherein the second entry includes information related to the data value similarity of the data of the data write request, The method also include: The second entry is compressed to reduce the data width.
20. The method according to claim 15, further comprising: include: The metadata is compressed into a series of blocks in the memory.
