Processing Unit

The Out-of-Step backend pipeline in the arithmetic processing unit addresses low gather/scatter efficiency by allowing independent section processing and bypass control, ensuring continuous operation despite events, thus maintaining processing speed.

JP7561376B2Active Publication Date: 2024-10-04FUJITSU LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2021044100
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-03-17
Publication Date
2024-10-04
Estimated Expiration
2041-03-17

AI Technical Summary

Technical Problem

Conventional processor cores suffer from low efficiency in gather/scatter processing, leading to potential processing speed decreases due to events like bank collisions or cache misses.

Method used

The arithmetic processing unit is designed with an Out-of-Step backend pipeline that separates processing into sections using buffers, allowing sections to continue operations independently even if events occur, and employs bypass control to maintain processing speed.

Benefits of technology

This design effectively prevents pipeline stalls and operation cancellations, maintaining processing speed despite events like bank collisions or cache misses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007561376000002
    Figure 0007561376000002
  • Figure 0007561376000003
    Figure 0007561376000003
  • Figure 0007561376000004
    Figure 0007561376000004
Patent Text Reader

Abstract

To avoid pipeline stall and cancellation of element operations to prevent the reduction of a processing speed even in the case of the occurrence of an event inhibiting processing from continuing, such as a bank conflict or a cache miss in a section.SOLUTION: An arithmetic processing unit comprises: one or more lanes for processing at most one element operation of an instruction per cycle; and an element operation issue unit 100 for issuing element operations to the one or more lanes. The arithmetic processing unit is separated to a plurality of sections by buffers 101, 103, and 104 having a plurality of entries as a whole, wherein one or more sections disabled to continue processing of element operations stop the processing while the other sections store element operations progressing to downward sections into immediately downward buffers, thus continuing the processing.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a processor. [Background technology]

[0002] In the field of high-performance computing using supercomputers, High-Performance CG (HPCG) is attracting attention as a benchmark that measures performance closer to that of real-world applications. HPCG is a benchmark for the Conjugate Gradient (CG) method.

[0003] HPCG calculations involve solving simultaneous linear equations using the multigrid preconditioned conjugate gradient method (MGCG), and the inner product of the rows of sparse matrix A and dense vector x accounts for about 80% of the calculation. Because HPCG is based on a 27-point stencil, the number of non-zero elements in one row of sparse matrix A is very small at 27. For this reason, sparse matrix A is usually stored in the Compressed Sparse Row (CSR) format.

[0004] The load of dense vector x in this inner product gathers up elements corresponding to the non-zero elements 26 to 27 in row of sparse matrix A, and accesses are made in increments of 3 elements. This type of indirect, discontinuous load / store via a list of addresses is called gather / scatter. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Ryota Shioya, Kazuo Horio, Masahiro Goshima, Shuichi Sakai, “Register Cache System Not for Latency Reduction Purpose”, Proceedings of the 43rd Annual IEEE / ACM International Symposium on Microarchitecture (MICRO43), Pages 301-312, December 2010. [Non-Patent Document 2] Junji Yamada, Ushio Jimbo, Ryota Shioya, Masahiro Goshima, Shuichi Sakai, “Skewed Multistaged Multibanked Register File for Area and Energy Efficiency”, IEICE Transactions on Information and Systems, Vol. E100.D, Issue 4, Pages 822-837, April 2017. [Non-Patent Document 3] Junji Yamada, Jimbo Ushio, Ryota Shioya, Masahiro Goshima, Shuichi Sakai, “Bank-Aware Instruction Scheduler for a Multibanked Register File”, IPSJ Journal of Information Processing, Vol. 24, Pages 696-705, September 2018. Summary of the Invention [Problem to be solved by the invention]

[0006] However, conventional processor cores are inefficient at gathering and scattering, and the occurrence of gathering and scattering can result in a decrease in processing speed.

[0007] One aspect of this is to prevent pipeline stalls and instruction cancellations and suppress a decrease in processing speed even when an event occurs that makes it impossible to continue processing, such as a bank collision or cache miss. [Means for solving the problem]

[0008] In one aspect, the processing device comprises one or more lanes that process at most one element operation of an instruction per cycle, and an element operation issue unit that issues element operations to the one or more lanes, the whole being separated into multiple sections by a buffer having multiple entries, and one or more sections that are unable to continue processing element operations stop processing, while the other sections continue processing by storing the element operations proceeding to each of the downstream sections in the immediately succeeding buffer. Effect of the Invention

[0009] On the one hand, even if an event occurs in a section that makes it impossible to continue processing, such as a bank collision or cache miss, it is possible to avoid pipeline stalls or cancellation of element operations, thereby minimizing the decrease in processing speed. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram illustrating SIMD consecutive loads and gathers. [Diagram 2] FIG. 1 is a diagram illustrating gathering in a SIMD multi-banked primary data cache. [Diagram 3] 1 is a graph illustrating the probability of a bank collision. [Figure 4] FIG. 2 is a block diagram showing a schematic basic structure of a core. [Diagram 5] FIG. 7 is a block diagram showing a schematic diagram of an In-Step back-end pipeline for comparison with the Out-of-Step back-end pipeline in FIG. 6. [Figure 6] FIG. 2 is a block diagram illustrating an Out-of-Step back-end pipeline according to an embodiment. [Figure 7] FIG. 7 is a block diagram for explaining the effect of the Out-of-Step back-end pipeline shown in FIG. 6. [Figure 8] 7 is a diagram for explaining the effect of the Out-of-Step back-end pipeline shown in FIG. 6. [Figure 9] FIG. 7 is a diagram for explaining bypass control using a distributed Content-Addressable Memory (CAM) in the Out-of-Step back-end pipeline shown in FIG. 6. [Figure 10] FIG. 7 is a block diagram for explaining a dependency determinant bypass control and a bypass position in the Out-of-Step back-end pipeline shown in FIG. [Figure 11] FIG. 2 is a block diagram illustrating a schematic diagram of a dependency matrix generating circuit; [Figure 12] 13 is a graph for explaining a performance estimate of an inner product part of HPCG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] [A] Related Examples The high peak performance of recent high-performance processor cores is sometimes achieved by Single Instruction / Multiple Data stream (SIMD) units. In SIMD, v elements are packed into one register, and one instruction executes v operations simultaneously. This allows the peak performance to be increased by v times without changing the control unit. For example, with 512b SIMD, when used as 64b (double-precision floating-point numbers) x 8, the computing performance is 8 times higher.

[0012] In SIMD load / store, if the target elements are consecutive in memory, v consecutive elements can be accessed at once. Such consecutive load / store performance is v times faster, and the same SIMD effect can be achieved as with arithmetic.

[0013] On the other hand, if the target elements of a SIMD load / store are discontinuous in memory, the effect of SIMD cannot be achieved. Indirect and discontinuous load / store via a list of addresses is called gather / scatter. With gather / scatter, even if consecutive v elements are accessed, it is rare that all of the v elements can be used, and the performance of gather / scatter is much lower than v times.

[0014] FIG. 1 is a diagram illustrating SIMD consecutive loads and gathers.

[0015] In the consecutive load process shown by symbols A11 to A14, four elements stored at consecutive addresses in the primary data cache are read as shown by symbol A11. Then, a block including four elements is read by one access unit [1] as shown by symbol A12. Then, the four elements are written to a register file with a SIMD width of four elements as shown by symbol A13, and the four elements written to the register file are used by the execution unit as shown by symbol A14.

[0016] In the gather process shown by symbols A21 to A24, elements stored at non-consecutive addresses in the primary data cache are read as shown by symbol A21. In this case, four elements cannot be read at once, and four blocks containing four elements must be read by access units [1] to [4] as shown by symbol A22. Then, the four elements are written to the register file via the shifter as shown by symbol A23, and the four elements written to the register file are used by the execution unit as shown by symbol A24.

[0017] A multi-port memory that can access v elements at any address has area and energy of v 2 Therefore, in order to increase the gather / scatter performance by v times in the same way as the calculation performance, it is expected that a multi-bank system will be implemented as a pseudo multi-port system.

[0018] FIG. 2 is a diagram illustrating gathering in a multi-banked primary data cache of a SIMD.

[0019] In the gather process shown by symbols A31 to A34, as shown by symbol A31, the primary data cache is divided into four banks, #0 to #3. Even if the addresses are discontinuous, up to four elements can be read simultaneously from each of the banks #0 to #3. As shown by symbol A32, four elements can be read at once by one access unit [1]. Then, as shown by symbol A33, the four elements are written to the register file via a switch rather than a shifter. After that, the four elements written to the register file are used by the execution unit as shown by symbol A34.

[0020] However, in code A41, two elements are stored in bank #2, causing a bank collision (in other words, a bank contention). These two elements cannot be read simultaneously, which may result in a decrease in processing speed.

[0021] FIG. 3 is a graph illustrating the probability of a bank collision.

[0022] The probability of a bank collision, when the banks accessed are random, is expressed by the following formula (1): where b is the number of banks and v is the number of elements.

[0023]

number

[0024] For example, if the number of elements v is 16 and 32 banks are prepared, which is twice the number, bank collisions will occur with a probability of P(32,16) = 99.0%. To sufficiently reduce the collision probability, hundreds to thousands of banks would be required, which is unrealistic.

[0025] [B] Embodiment An embodiment will be described below with reference to the drawings. However, the embodiment described below is merely an example, and there is no intention to exclude the application of various modified examples and techniques not specified in the embodiment. In other words, the present embodiment can be implemented with various modifications within the scope of the gist of the embodiment. In addition, each figure does not intend to include only the components shown in the figure, but can include other functions, etc.

[0026] In the following drawings, the same reference numerals denote similar parts, and therefore the description thereof will be omitted.

[0027] [B-1] Prerequisites FIG. 4 is a block diagram showing a schematic diagram of the basic structure of the core.

[0028] The front-end pipeline shown by symbols B1 to B3 has, for example, two lanes #A and #B, fetches instructions, and supplies micro-operations (μOPs) to element operation issue units. Specifically, instructions are fetched from an instruction cache shown by symbol B1, and renamed (in other words, instruction analysis) by a rename logic shown by symbol B2 to generate μOPs. Then, at symbol B3, the generated μOPs are stored in the element operation issue units.

[0029] Instructions are defined by an Instruction Set Architecture (ISA), are cached from binary code in main memory to an instruction cache, and are fetched by the machine.

[0030] A μOP is a unit that breaks down a complex instruction found in x86, SVE, etc. into multiple simple operations. μOPs are converted from instructions fetched within the core and are subject to scheduling. SIMD μOPs are generated from SIMD instructions. Note that in cores that do not use μOPs, one equivalent μOP is generated for each instruction.

[0031] The element operation issuing unit B4 schedules μOPs and submits element operations to the back-end pipeline at appropriate times. Submitting an element operation to the back-end pipeline is called issuing.

[0032] The back-end pipeline shown by symbols B5 to B9 has, for example, three lanes #1 to #3, and processes the issued element operations. Specifically, element operations are issued in each of the lanes #1 to #3 shown by symbol B5, the register file is read in each of the lanes shown by symbol B6, the element operations are executed in the execution units of the lanes #1 to #3 shown by symbol B7, the element operations are executed in the execution unit of the lane #3 shown by symbol B8, and the register file is written back in each of the lanes #1 to #3 shown by symbol B9.

[0033] An element operation is the unit of processing for a lane of the back-end pipeline. In the SIMD case, one uop has multiple element operations of the width of the lane. In the non-SIMD scalar case, one uop can be understood to have one equivalent element operation. At most one element operation is issued to one lane of the back-end pipeline per cycle, and one lane pipelines at most one element operation of an instruction per cycle. Also, one element operation may again be of SIMD type, for example in the case of a 64b lane, it may process SIMD type element operations such as 16b x 4.

[0034] [B-2] Out-of-Step Backend Pipeline FIG. 5 is a block diagram showing a schematic diagram of an In-Step back-end pipeline 2 for comparison with the Out-of-Step back-end pipeline 1 in FIG.

[0035] In the In-Step back-end pipeline 2, as shown by symbol C8, the pipeline is logically divided into multiple consecutive stages by pipeline registers across all lanes. Therefore, the In-Step back-end pipeline 2 is a single pipeline that processes v element operations in parallel as a whole, and the entire back-end pipeline either advances or stops. As a result, the spatial and temporal positional relationship of element operations remains unchanged after being determined at the time of issue.

[0036] A part or all of one or more lanes may correspond to the operation of a SIMD instruction. In the example shown in Fig. 5, lanes #1 and #2 are scalar configurations, and lanes #3 and #4 are SIMD configurations. As shown by the symbol C1, the element operation issue unit issues element operations generated from different μOPs to lanes #1 and #2, respectively, and issues two element operations generated from one μOP to lanes #3 and #4.

[0037] As indicated by symbols C2 and C3, register readout is performed in two stages in lanes #1 to #4.

[0038] As shown by C4, element operations are executed in different execution units in lanes #1 and #2, while element operations are executed in SIMD execution units in lanes #3 and #4. As shown by C5, an operation is performed in lane #2, while element operations are executed in SIMD execution units in lanes #3 and #4.

[0039] Then, as indicated by symbols C6 and C7, register write-back is performed in two stages in lanes #1 to #4.

[0040] In the back-end pipeline, events that prevent the processing of element operations from continuing may occur, such as cache misses and bank collisions. The element operations cannot proceed to the next stage until the cache miss or bank collision is dealt with.

[0041] In the In-Step Backend Pipeline 2, even if an event occurs that makes it impossible to continue processing an element operation, such as a cache miss or bank collision, the spatial and temporal positional relationships between element operations that have already been issued are not changed.

[0042] A pipeline stall is when the entire pipeline stops due to an event that makes it impossible to continue processing element operations. In a pipeline stall, the relative positions between element operations are maintained the same before and after the stall.

[0043] On the other hand, there is also a method to cancel the element operation in question and the element operations that depend on it, or the element operation in question and all subsequent element operations, and reissue them, that is, start over from the issue. In this case, the positional relationship of the element operations that were not canceled is kept as it is, while the positional relationship between the canceled and reissued element operations is reconstructed from scratch. In this case, the positional relationship between the element operations that have already been issued is not changed.

[0044] In either case of a pipeline stall or cancellation of an element operation, if even one cache miss or bank collision occurs, many element operations are affected. The larger the core size, the greater the impact.

[0045] FIG. 6 is a block diagram illustrating an out-of-step back-end pipeline 1 according to the embodiment.

[0046] Out-of-Step is the negation and complement of In-Step. In the out-of-step back-end pipeline 1 (in other words, the arithmetic processing unit), element operations do not maintain the spatial and temporal positional relationships at the time of issuance.

[0047] A part or all of one or more lanes may correspond to the operation of a SIMD instruction. In the example shown in Fig. 6, like the In-Step back-end pipeline 2 shown in Fig. 5, lanes #1 and #2 are scalar configurations, and lanes #3 and #4 are SIMD configurations. As shown by the reference symbol D1, the element operation issuing unit 100 issues element operations generated from different μOPs to lanes #1 and #2, respectively, and issues two element operations generated from one μOP to lanes #3 and #4. The issued element operations are stored in the buffers 101, respectively.

[0048] As indicated by symbols D2 and D3, register read is performed over two stages in lanes #1 to #4. The register read result is stored in buffer 103 immediately before the execution unit.

[0049] As shown by D4, in lanes #1 and #2, element operations are executed by different scalar execution units, while in lanes #3 and #4, element operations are executed by SIMD execution units. As shown by D5, in lane #2, element operations are executed by the scalar execution unit, while in lanes #3 and #4, element operations are executed by the SIMD execution units. The execution results of the element operations are stored in the buffer 104 immediately before the register write back.

[0050] Then, as indicated by symbols D6 and D7, register write-back is performed in two stages in lanes #1 to #4.

[0051] In the out-of-step back-end pipeline 1, the element operation issue unit 100 may be the same as the in-step back-end pipeline 2, and may issue dependent element operations at a timing when data can be transferred by a register file or a bypass, assuming that no event occurs that makes it impossible to continue processing of element operations. Meanwhile, each lane of the out-of-step back-end pipeline 1 processes element operations correctly by arbitrarily changing the positional relationship of the element operations issued by the element operation issue unit 100.

[0052] Buffers 101, 103, and 104 serving as stage boundaries in the out-of-step back-end pipeline 1 in FIG. 6 are not single-entry pipeline registers but are buffers made up of multiple entries.

[0053] The whole is divided into several sections by buffers 101, 103, 104.

[0054] If a section has an element operation that cannot be continued due to a cache miss, bank collision, or the like, the section stops processing. This is called a section stall. On the other hand, the upstream section separated by a buffer can continue processing. If there is an element operation that proceeds to the stalled section after the upstream section finishes processing, it can be stored in the buffer between them. In the In-Step Back-End Pipeline 2 shown in FIG. 5, this buffer is a single-entry pipeline register (see reference symbol C8), so if the upstream does not stop, the element operation will be overwritten. In other words, in the Out-of-Step Back-End Pipeline 1, each section can stall independently. Unlike the pipeline register in reference symbol C8 of the In-Step Back-End Pipeline 2, the pipeline register 102 in the Out-of-Step Back-End Pipeline 1 does not span all lanes, but operates independently for each section.

[0055] The division into sections is not bound by lane boundaries. For example, since the read from buffer 101 and the write from buffer 103 can be performed for each of the two source operands, there are two register read sections for each lane, allowing the read from the two source operands not to be performed simultaneously. On the other hand, the read from buffer 104 is performed simultaneously on lane #3 and lane #4, and the register write back section for lane #3 and lane #4 spans lane #3 and lane #4.

[0056] The buffers 101, 103, and 104 in the out-of-step back-end pipeline 1 may be First In-First Out (FIFO) buffers, in which case overtaking of element operations does not occur within a lane.

[0057] That is, the out-of-step back-end pipeline 1 comprises one or more lanes that process at most one element operation of an instruction per cycle, and an element operation issue unit 100 that issues element operations to one or more lanes. The whole is separated into multiple sections by buffers 101, 103, and 104. One or more sections that can no longer continue processing element operations stop processing, while the other sections store element operations proceeding to each downstream section in the immediately succeeding buffer and continue processing element operations.

[0058] Either or both of the register file and the primary data cache have a multi-bank configuration, and a bank collision within the multi-bank configuration may be one of the factors that makes it impossible to continue processing of an element operation.

[0059] In the out-of-step back-end pipeline 1, since the result of the scheduling by the element operation issuing unit 100 is merely delayed, the hardware cost can be kept to a minimum.

[0060] FIG. 7 is a block diagram for explaining the effect of the Out-of-Step back-end pipeline 1 shown in FIG.

[0061] An example of randomly determining the bank to be accessed in an out-of-step back-end pipeline 1 having a primary data cache with a multi-bank configuration having six banks #1 to #6 as indicated by reference symbol E1 will be described with reference to FIG.

[0062] For each of lanes #1 to #3, element operations a1 to a3 are issued as shown by symbol E2, then element operations b1 to b3 are issued as shown by symbol E3, and then element operations c1 to c3 are issued as shown by symbol E4.

[0063] Fig. 8 is a diagram for explaining the effect of the Out-of-Step back-end pipeline 1 shown in Fig. 6. It shows which bank (#1 to #6) the issued element operation is in at each time.

[0064] As shown by symbols F11 to F15, five bank collisions occurred in the In-Step back-end pipeline 2, and 14 cycles were consumed to complete all element operations. The collision probability was P(6,3)=0.44, resulting in a performance degradation of 44%.

[0065] On the other hand, as shown by symbols F21 to F25, in the out-of-step back-end pipeline 1, five bank collisions occurred, just like in the in-step back-end pipeline 2, but only 10 cycles were consumed to complete all element operations, and the performance degradation was almost zero. The collision probability was P(6,3)=0.44, just like in the in-step back-end pipeline 2, but this is because the next element operation was processed in the same cycle even if a bank collision occurred.

[0066] [B-3] Bypass control In the out-of-step back-end pipeline 1, the execution results are correctly bypassed between element operations whose positional relationships have changed due to delays caused by section stalls.

[0067] All or some of the buffer and pipeline register entries located upstream from the execution unit that executes the elementary operation may have the capability to receive source operands from the bypass.

[0068] The buffer 103 immediately before the execution unit functions as a secondary element operation issuing unit that waits for delayed bypassed execution results as source operands. If the buffer 103 is a FIFO, when the source operands of the element operation at the top are available, it can be executed in the execution unit.

[0069] FIG. 9 is a diagram for explaining bypass control using a distributed CAM in the out-of-step back-end pipeline 1 shown in FIG.

[0070] In the back-end pipeline shown in Fig. 9, a bypass source execution unit shown as J1 is connected to a bypass destination execution unit shown as J3 via a bypass line shown as J2. In the bypass destination circuit, a bypass control circuit 105 controls a multiplexer (mux) 106 to perform bypass control. The bypass source circuit shown as J1 attaches a destination tag tagD that uniquely identifies the execution result to the bypass line J2 and sends it out. The bypass control circuit 105 compares the received tagD with the source tag tagL, and if they match, the multiplexer 106 takes in the execution result corresponding to tagD. The references 105 and 106 form a CAM (Content-Addressable Memory) that uses tags as keys.

[0071] The bypass control may be performed by tracking in which entry of a buffer or pipeline register each of two element operations that are transmitted or received via the bypass is located in response to a section stall.

[0072] The section stall may be tracked using a dependency matrix that represents the relationship of the necessity of transmission and reception via a bypass between two element operations in the form of a matrix.

[0073] FIG. 10 is a block diagram for explaining bypass control using a dependency matrix of the out-of-step back-end pipeline 1 shown in FIG.

[0074] Reference symbol K1 shows a block diagram of an Out-of-Step back-end pipeline 1 consisting of one lane. As shown by reference symbol K1, an element operation flowing through a lane has fields of an opcode, source operands src 1 and src 2, and a destination operand dst. In the block diagram shown by reference symbol K1, each of register read, execution, and register write back is one stage, and each stage is separated into a section by a three-entry buffer. Reference symbol K11 shows a pipeline register for saving the execution result for one cycle in order to extend the bypassable period by one cycle.

[0075] Reference symbol K2 indicates a dependency matrix between dst and src 1 shown in reference symbol K1. In addition, there is a dependency matrix between dst and src 2.

[0076] In K2, the part of the block diagram of K1 related to dst is extracted and rotated 90 degrees to the left above the horizontal axis (producer), and the part of the block diagram of K1 related to src 1 is extracted and drawn to the right of the vertical axis (consumer).

[0077] The bottom left of the two axes is the dependency matrix. The vertical axis (consumer) / horizontal axis (producer) indicate the buffer and pipeline register entries in the lane of the consumer / producer element operation. If an element operation stored in the pth entry counting from the upstream and an element operation stored in the cth entry counting from the upstream are in a dependent relationship via the former's dst and the latter's src 1, and it is necessary to send and receive the execution results through a bypass, the element in row c and column p of the dependency matrix is ​​set to "1".

[0078] Since a given source operand has at most one dependent destination operand, there is at most one element that is set in a row, i.e., one-hot. The dependency matrix may be generated by a dependency matrix generator circuit, which is an array of tag comparators.

[0079] FIG. 11 is a block diagram illustrating a schematic diagram of a dependency matrix generating circuit.

[0080] A "1" indicating that a bypass is necessary is generated by a dependency matrix generating circuit as shown in FIG. 11, and appears in any cell of a row in the dependency matrix that corresponds to the buffer before the register is read.

[0081] The dependency matrix is ​​shifted two-dimensionally, row / column-wise, to accommodate section stalls, so that the “1” representing a dependency either stays there or moves to the right, bottom-right, or down.

[0082] The bypass is performed after the cycle in which the producer passes through the execution stage, and each row then becomes the one-hot select input of the multiplexer from the bypass.

[0083] In the In-Step back-end pipeline 2, the relative positions of the producer and consumer do not change, so there are strict constraints on the timing of bypass.

[0084] On the other hand, in the Out-of-Step back-end pipeline 1, the relative positions of the producer and consumer can be changed for bypassing. Consumers that have not received execution results from the producer are waiting in the buffer 103 immediately before the execution unit, so it is sufficient to bypass them there.

[0085] Also, infrequently used bypasses may be omitted. A first bypass to an entry may be omitted if doing so guarantees that a downstream entry can receive source operands from a bypass other than the first bypass.

[0086] It is possible to set the presence or absence of a bypass for each cell of the dependency matrix of the code K2 shown in Fig. 10. A bypass is performed in a cycle in which a "1" exists in a cell with a bypass in the dependency matrix.

[0087] To ensure that you receive the necessary bypasses, you can arrange the cells with bypasses in the dependency matrix such that every "1" passes through at least one cell with a bypass.

[0088] To achieve this, it is sufficient to set the square in the rightmost column of code K21 to "bypassed."

[0089] However, receiving a bypass in the rightmost column of code K21 means that dependent two-element operations are always executed with an interval of at least two cycles. Therefore, in terms of performance, it is better to have a bypass in the squares indicated by "a" and "b" or "c" in code K2. "a" is the position when dependent two-element operations are executed back-to-back in two consecutive cycles. "b" and "c" are the positions when they are executed with an interval of one cycle. "c" is the more flexible position, but "b" is less expensive.

[0090] When the dependency matrix generation circuit as shown in Fig. 11 determines that the source operand needs to be received from the bypass, access to the register is not necessary. Therefore, when the register file is also multi-banked, unnecessary access to the register file may be omitted according to the determination of the dependency matrix generation circuit.

[0091] [C] Effect FIG. 12 is a graph for explaining the performance estimation of the inner product part of HPCG.

[0092] In the graph shown in Figure 12, the horizontal axis indicates the SIMD width v, and the vertical axis indicates the performance improvement ratio. The number of banks is 4v, which is twice the number of accesses. The dashed line shown with symbol M1 indicates the performance estimate of the inner product part of HPCG in a conventional supercomputer, and the dashed line shown with symbol M2 indicates the performance estimate of the inner product part of HPCG when a multi-bank primary data cache is adopted in a conventional supercomputer. Furthermore, the solid line shown with symbol M3 indicates the performance estimate of the inner product part of HPCG when an out-of-step back-end pipeline 1 is adopted in addition to a multi-bank primary data cache in a conventional supercomputer.

[0093] In the case shown by symbol M1, since the gather performance is constant, the performance improvement ratio hardly improves with respect to the SIMD width v. In addition, in the case shown by symbol M2, the performance improvement ratio is about twice as high as that of the case shown by symbol M1, but the performance improvement ratio does not improve for large SIMD widths v due to bank collisions.

[0094] On the other hand, in the case shown by the symbol M3, the performance improvement ratio can be improved linearly even for a large SIMD width v.

[0095] According to the out-of-step back-end pipeline 1 in the example of the embodiment described above, for example, the following advantageous effects can be obtained.

[0096] The out-of-step back-end pipeline 1 (in other words, an arithmetic processing device) comprises one or more lanes that process at most one element operation of an instruction every cycle, and an element operation issuing unit 100 that issues at most one element operation to each of the one or more lanes every cycle. The whole is separated into a plurality of sections by buffers. One or more sections that can no longer continue processing element operations stop processing, while the other sections continue operation while storing element operations to be sent to each downstream section in the immediately following buffer.

[0097] This makes it possible to avoid stalls or cancellation of element operations and suppress a decrease in processing speed even if a bank collision or cache miss occurs in a certain section.

[0098] [D] Other The disclosed technology is not limited to the above-described embodiment, and various modifications can be made without departing from the spirit of the present embodiment. Each configuration and each process of the present embodiment can be selected as necessary, or can be combined as appropriate. [Explanation of symbols]

[0099] 1: Out-of-Step Backend Pipeline 100: Element operation issuing unit 101: Buffer (just before register read) 102: Pipeline register 103: Buffer (immediately before the execution unit, secondary element operation issuing unit) 104: Buffer (just before register write back) 105: Bypass control circuit 106: Multiplexer 2: In-Step Backend Pipeline

Claims

1. one or more lanes each processing at most one element operation of an instruction per cycle; an elementary operation issuing unit that issues elementary operations to the one or more lanes; Equipped with The whole is divided into sections by buffers with multiple entries, One or more sections that are unable to continue processing element operations will stop processing, The other sections store the element operations that go to each downstream section in the immediately following buffer and continue processing. Processing unit.

2. the element operation issuing unit issues dependent element operations at a timing when data can be transferred by a register file or a bypass, assuming that the one or more sections will not be stopped. The processor according to claim 1 .

3. The buffer is a first in-first out (FIFO) buffer that does not allow element operations to overtake each other in each of the one or more lanes. The processor according to claim 1 or 2.

4. All or some of the entries of the buffer or pipeline register located upstream of the execution unit that executes the element operation have the function of receiving source operands from the bypass, A buffer located just before the execution unit that executes the element operation holds the element operation until the source operands required for execution are available. The processor according to any one of claims 1 to 3.

5. The bypass sending side sends the execution result to the bypass with a tag that uniquely identifies the execution result, and the bypass receiving side receives the execution result by comparing the tags to match, thereby performing a bypass even between element operations whose positional relationship has changed due to the stop of the section. The processor according to any one of claims 1 to 4.

6. a bypass control circuit for performing a bypass even between element operations whose positional relationship has changed by tracking in which entry of the buffer or pipeline register each of two element operations that transmit and receive via a bypass is located in response to the stop of the one or more sections; The processor according to any one of claims 1 to 4.

7. The tracking of the bypass control circuit includes: For each pair of source operands and destination operands of the one or more lanes, the sending and receiving element operations are in the buffer or the pipeline register as rows and columns; When a first element operation stored in the p-th entry counting from the upstream and a second element operation stored in the c-th entry counting from the upstream are in a dependent relationship via the destination operand of the first element operation and the source operand of the second element operation, and the execution result is transmitted and received through a bypass, a matrix in which elements in c rows and p columns are set is used, When issuing an element operation, set the corresponding element, by updating row-wise and column-wise in response to the stopping of the one or more sections, The processor according to claim 6.

8. a first bypass to an entry is omitted if omitting the first bypass ensures that a downstream entry can receive a source operand from a bypass other than the first bypass; The processor according to any one of claims 1 to 7.

9. Either or both of the register file and the primary data cache have a multi-bank configuration, and a bank collision within the multi-bank configuration is one of the causes of the suspension of the section. The processor according to any one of claims 1 to 8.

10. A part or all of the one or more lanes correspond to element operations of a Single Instruction / Multiple Data stream (SIMD) instruction, The processor according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Processor system

    JP2008198127A

  • Systems and Methods for Variable Lane Architecture

    JP2018521427A

  • Skip ahead allocation and retirement in dynamic binary translation based out-of-order processors

    US20190171461A1

  • Pipeline circuit, semiconductor device, and pipeline control method

    WO2011004532A1