Providing reconfigurable fusion of processing elements (PEs) in vector processor-based devices
By reconfiguring the processing elements in the vector processor into fusion processing elements, the problem of poor performance of traditional vector processors in processing large loop entities is solved, and more efficient loop execution and resource utilization are achieved.
Patent Information
- Application Number
- CN201980045093.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-06-25
AI Technical Summary
When traditional vector processors process vectorizable loops, the mapping of the loop ontology leads to poor performance. Especially when the loop ontology is too large, the processing elements need to be split and dynamically reconfigured, resulting in performance loss and resource waste.
By introducing decoding/control circuits in vector processors, multiple processing elements are reconfigured into larger fused processing elements, reducing dependence on vector register files and achieving parallel execution of loop bodies.
It improves the performance of vector processors, reduces data transfer overhead between loop iterations, optimizes resource utilization, and improves processing efficiency.
Smart Images

Figure CN112470120B_ABST
Abstract
Description
[0001] Priority claim
[0002] This patent application claims priority to U.S. Non-Provisional Patent Application No. 16 / 028,072, filed on July 5, 2018, entitled “Providing Reconfigurable Fusion of Processing Elements (PEs) in Vector Processor-Based Devices,” which is assigned to the present assignee and is expressly incorporated herein by reference in its entirety. Technical Field
[0003] The disclosed techniques generally relate to vector processor-based devices, and more particularly to parallel processing of vectorizable loops using processing elements (PEs) of vector processor-based devices. Background Art
[0004] A vector processor-based device is a computing device that employs a vector processor capable of operating on a one-dimensional array of data (a "vector") using a single program instruction. A conventional vector processor includes a plurality of processing elements (PEs) organized into vector channels, each of which can perform computations in parallel with one another. As non-limiting examples, each of the PEs provided by a conventional vector processor may be an in-order processing unit, or may be a reconfigurable construct, such as a coarse-grained reconfigurable array (CGRA) comprising a programmable interconnect group of functional units. A vector processor-based device is particularly useful for processing vectorizable loops involving a high degree of data-level parallelism (DLP).
[0005] When processing a vectorizable loop, each PE of the vector processor can execute the same task in parallel (e.g., executing the same loop body of the vectorizable loop using different values of the sensing variable of the vectorizable loop). When processing a vectorizable loop using a traditional vector processor with reconfigurable PEs (e.g., a vector processor in which each PE is a CGRA), the performance of the vector processor depends largely on how the loop body of the vectorizable loop is mapped to the PE. In an ideal scenario, the PEs of the vector processor are configured once, and then each PE processes one loop iteration of the vectorizable loop in parallel until all loop iterations are executed. However, in practice, in some cases, the mapping of the loop body of the vectorizable loop to the PEs of the vector processor may result in poor performance. For example, if the loop body is too large to be processed by a single PE (e.g., because the operations required by the loop body are more than the number of functional units provided by the PE can perform), each loop iteration of the loop body must be split into multiple loop partitions, and after executing each loop partition, the PE must be dynamically reconfigured. Splitting each loop iteration in this way causes the vector processor to suffer a performance penalty due to the reconfiguration of the PEs and the need to communicate the results of each loop partition execution via the vector register file. Moreover, if the number of loop iterations is less than the number of PEs, several other available PEs will be left unused. Finally, in the case of vectorizable loops where data dependencies exist between loop iterations, data dependencies must be passed from one loop iteration to another via the vector register file, resulting in expensive computations. Summary of the invention
[0006] Various aspects disclosed in the specific embodiments include providing reconfigurable fusion of processing elements (PEs) in a vector processor-based device. In this regard, the vector processor-based device provides a vector processor comprising a plurality of PEs and a decoding / control circuit configured to group the plurality of PEs into larger "fused" PEs as needed. Some aspects also include a PE communication link that interconnects the plurality of PEs to enable communication between fused PEs and PEs including fused PEs without requiring vector register file access operations. In an exemplary operation, the decoding / control circuit receives an instruction block that contains a vectorizable loop that includes a loop body. The decoding / control circuit determines how many PEs of the plurality of PEs are needed to execute the loop body (e.g., based on comparing a number of instructions within the loop body with a number of functional units provided by each PE). Then, the decoding / control circuit reconfigures the plurality of PEs into one or more fused PEs, each fused PE including the determined number of PEs required to execute the loop body. Therefore, then, the plurality of PEs reconfigured into one or more fused PEs execute one or more loop iterations of the loop body.
[0007] In another aspect, a vector processor-based device is provided that provides reconfigurable fusion of PEs. The vector processor-based device includes a vector processor that includes a plurality of PEs, wherein each of the plurality of PEs includes a plurality of heterogeneous functional units. The vector processor-based device also includes a decoding / control circuit. The decoding / control circuit is configured to receive an instruction block that includes a vectorizable loop that includes a loop body. The decoding / control circuit is also configured to determine a required number of PEs that indicates the number of PEs required to execute the loop body among the plurality of PEs. The decoding / control circuit is also configured to reconfigure the plurality of PEs into one or more fused PEs, wherein each of the one or more fused PEs includes a required number of PEs among the plurality of PEs. The plurality of PEs are configured to execute one or more loop iterations of the loop body as one or more fused PEs.
[0008] In another aspect, a vector processor-based device is provided that provides reconfigurable fusion of PEs. The vector processor-based device includes a device for receiving an instruction block, the instruction block including a vectorizable loop, the vectorizable loop including a loop body. The vector processor-based device also includes a device for determining a required number of PEs, the required number of PEs indicating the number of PEs of the vector processor required to execute the loop body in a plurality of PEs. The vector processor-based device also includes a device for reconfiguring the plurality of PEs into one or more fused PEs, wherein each of the one or more fused PEs includes a required number of PEs in the plurality of PEs. The vector processor-based device also includes a device for executing one or more loop iterations of the loop body using the one or more fused PEs.
[0009] In another aspect, a method for providing reconfigurable fusion of PEs of a vector processor is provided. The method includes: receiving an instruction block by a decode / control circuit of a vector processor, the instruction block containing a vectorizable loop, the vectorizable loop including a loop body. The method also includes: determining a required number of PEs, the required number of PEs indicating the number of PEs of the vector processor required to execute the loop body from a plurality of PEs, wherein each of the plurality of PEs includes a plurality of heterogeneous functional units. The method also includes: reconfiguring the plurality of PEs into one or more fused PEs, wherein each of the one or more fused PEs includes a required number of PEs from the plurality of PEs. The method also includes: executing one or more loop iterations of the loop body as one or more fused PEs.
[0010] In another aspect, a non-transitory computer-readable medium is provided on which computer-executable instructions are stored for causing a vector processor of a device based on a vector processor to receive an instruction block, the instruction block containing a vectorizable loop, the vectorizable loop including a loop body. The computer-executable instructions also cause the vector processor to determine a required number of PEs, the required number of PEs indicating the number of PEs required to execute the loop body among a plurality of PEs of the vector processor, wherein each of the plurality of PEs includes a plurality of heterogeneous functional units. The computer-executable instructions also cause the vector processor to reconfigure the plurality of PEs into one or more fused PEs, wherein each of the one or more fused PEs includes a required number of PEs among the plurality of PEs. The computer-executable instructions also cause the vector processor to execute one or more loop iterations of the loop body as one or more fused PEs. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a block diagram illustrating a vector processor-based device configured to provide reconfigurable fusion of processing elements (PEs);
[0012] Figure 2 is a block diagram illustrating an exemplary mapping of a loop ontology to multiple conventional PEs, wherein the loop ontology fits into a single PE;
[0013] Figure 3 is a block diagram illustrating an exemplary mapping of a loop ontology to multiple conventional PEs, where the loop ontology will not fit into a single PE;
[0014] Figure 4 This diagram shows how to Figure 1 A block diagram of reconfiguring a PE provided by a vector processor-based device into a fused PE;
[0015] Figure 5A and Figure 5B It's a picture. Figure 1 A flowchart of exemplary operations performed by a vector processor-based device for providing reconfigurable fusion of PEs; and
[0016] Figure 6 Yes, it can include Figure 1 A block diagram of an exemplary processor-based system of a vector processor-based device. DETAILED DESCRIPTION
[0017] Now, with reference to the accompanying drawings, several exemplary aspects of the present disclosure are described. The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any aspect described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other aspects.
[0018] Various aspects disclosed in the specific embodiments include providing reconfigurable fusion of processing elements (PEs) in vector processor-based devices. In this regard, Figure 1A vector processor based device 100 is illustrated that implements a block-based dataflow instruction set architecture (ISA) and provides a vector processor 102 including a decode / control circuit 104. The vector processor 102 includes a plurality of PEs 106(0) to 106(P), each of which may include a coarse-grained reconfigurable array (CGRA), an in-order processing unit, or a superscalar processor as non-limiting examples. Each of the PEs 106(0) to 106(P) includes a plurality of heterogeneous functional units 108(0) to 108(F), 108'(0) to 108'(F) programmably interconnected via functional unit communication links 110, 110'. The functional unit communication links 110, 110' serve as dedicated communication paths within each corresponding PE of the plurality of PEs 106(0) to 106(P) and are configured to exchange data between the heterogeneous functional units 108(0) to 108(F), 108'(0) to 108'(F) during instruction execution, each PE of the plurality of PEs 106(0) to 106(P) included in the heterogeneous functional units 108(0) to 108(F), 108'(0) to 108'(F). The decode / control circuitry 104 may programmably reconfigure the interconnect provided by the functional unit communication links 110, 110' in accordance with the processing requirements of the instructions to be executed by each corresponding PE 106(0) to 106(P). It should be appreciated that the vector processor-based device 100 may include more than one vector processor. Figure 1 The vector processor 102 shown may be more or less, and / or may provide more or fewer PEs (each PE having more or fewer heterogeneous functional units 108(0) to 108(F), 108'(0) to 108'(F)) than Figure 1 There are more or fewer PEs 106 ( 0 ) to 106 (P) shown.
[0019] exist Figure 1 In the example of , PEs 106(0)-106(P) are each bidirectionally communicatively coupled to a crossbar switch 112 via channels 114(0)-114(P), through which data (e.g., results of executing loop iterations of a vectorizable loop) can be read from and written to a vector register file 116. Figure 1 The crossbar switch 112 in the example of FIG. 1 is communicatively coupled to a direct memory access (DMA) controller 118 , which is configured to perform memory access operations to read data from or write data to a system memory 120 . Figure 1DMA controller 118 is further configured to control crossbar switch 112 to exchange data between vector register file 116, system memory 120, and PEs 106(0)-106(P), and to store and retrieve vectors and vector elements in vector register file 116. According to some aspects, system memory 120 may include double data rate (DDR) memory as a non-limiting example.
[0020] In exemplary operation, data stream instruction blocks such as instruction block 122 are fetched from system memory 120 and may be cached in instruction block cache 124 to reduce memory access latency associated with fetching frequently accessed instruction blocks. Instruction block 122 is decoded by decode / control circuitry 104, and the decoded instructions are assigned to PEs of a plurality of PEs 106(0) to 106(P) for execution by scheduler circuitry 126. To facilitate execution, PEs 106(0) to 106(P) may receive real-time incoming data values as input from vector register file 116, and after executing the instructions, may write real-time output data values as output to vector register file 116.
[0021] It should be understood that Figure 1 The vector processor-based device 100 may include elements such as Figure 1 More or fewer elements are shown. The vector processor-based device 100 may include any of the following: known digital logic elements, semiconductor circuits, processing cores and / or memory structures, and other elements, or a combination thereof. The various aspects described herein are not limited to any particular arrangement of elements, and the disclosed techniques can be easily extended to various structures and layouts on a semiconductor die or package.
[0022] One application for which the vector processor-based device 100 may be well suited is processing vectorizable loops. Figure 1, the instruction block 122 includes a vectorizable loop 130, which includes a loop body 132. To process the loop body 132, the decode / control circuit 104 maps each loop iteration of the loop body 132 to a different PE of the plurality of PEs 106(0) to 106(P), which then execute the loop iterations in parallel. However, as noted above, the ultimate performance of the vector processor 102 when processing the loop body 132 may depend in large part on how the loop iterations of the loop body 132 are mapped to the PEs 106(0) to 106(P). For example, if the loop body 132 is too large to be processed by a single PE of the plurality of PEs 106(0) to 106(P), each loop iteration of the loop body 132 must be divided into a plurality of loop partitions, and after executing each loop partition, the PEs 106(0) to 106(P) must be dynamically reconfigured. This may result in a performance penalty due to reconfiguration of PEs 106 ( 0 ) through 106 (P) and the need to communicate intermediate results of each loop partition execution and / or data dependencies between loop iterations via vector register file 116 .
[0023] Therefore, in this regard, Figure 1The decode / control circuitry 104 is configured to aggregate the plurality of PEs 106(0) to 106(P) into a larger "fused" PE. Upon receiving the instruction block 122, the decode / control circuitry 104 determines how many of the plurality of PEs 106(0) to 106(P) are needed to execute the loop body 132 of the vectorizable loop 130. This number is referred to herein as the "required number of PEs" and may be determined based on, for example, a comparison of the number of instructions within the loop body 132 and the number of heterogeneous functional units 108(0) to 108(F), 108'(0) to 108'(F) provided by each of the PEs 106(0) to 106(P). In some aspects, the decode / control circuitry 104 may obtain information about the instructions within the loop body 132 from compiler-generated metadata 134 provided as part of the instruction block 122 (e.g., as part of an instruction block header, as a non-limiting example). The decode / control circuitry 104 reconfigures the plurality of PEs 106(0)-106(P) into one or more fused PEs (not shown), each fused PE including the required number of PEs 106(0)-106(P) required to execute the loop body 132. The plurality of PEs 106(0)-106(P) reconfigured into the one or more fused PEs then execute one or more loop iterations of the loop body 132. In a use case where the plurality of PEs 106(0)-106(P) are reconfigured into a plurality of fused PEs, each of the fused PEs may execute one loop iteration of the loop body 132 in parallel with other fused PEs in the plurality of fused PEs. If the number of loop iterations is greater than the number of fused PEs, the decode / control circuitry 104 may perform loop unrolling such that each fused PE executes multiple loop iterations of the loop body 132.
[0024] Some aspects of the vector processor 102 also provide additional links between the PEs 106(0) to 106(P) to improve system performance when the PEs 106(0) to 106(P) are operating as fused PEs and when the PEs 106(0) to 106(P) are operating in a non-fused mode. In particular, Figure 1The vector processor 102 in the example of FIG. 1 may include a PE communication link 136 interconnecting the PEs 106(0) to 106(P). When the PEs 106(0) to 106(P) are operating in a conventional non-fused mode, the PE communication link 136 enables data dependencies between loop iterations to be communicated between the PEs 106(0) to 106(P) (e.g., when processing vectorizable loops with reduction operations and / or vectorizable loops with carried dependencies, as non-limiting examples), without accessing the vector register file 116. When the PEs 106(0) to 106(P) are operating as fused PEs, the PE communication link 136 communicates inter-iteration data dependencies among the fused PEs and also facilitates communication among the heterogeneous functional units 108(0) to 108(F), 108'(0) to 108'(F) within the different PEs 106(0) to 106(P) that make up each fused PE. Because the functional unit communication links 110, 110' are dedicated to a given PE 106(0)-106(P), the PE communication links 136 can effectively serve as data paths among the heterogeneous functional units 108(0)-108(F), 108'(0)-108'(F) that make up each fused PE.
[0025] To further illustrate how the mapping of loop bodies (such as loop body 132) to PEs 206(0) through 206(P) may negatively impact the performance of conventional vector processor-based devices, a diagram is provided. Figure 2 and Figure 3 . Figure 2 An example 200 is illustrated in which a loop body 202 of a vectorizable loop 204 fits within each of a plurality of legacy PEs 206(0) through 206(P). Figure 2 , vectorizable loop 204 is a “for” loop in which an induction variable i begins with an initial value of zero (0) and is then incremented with each loop iteration until it reaches a value specified by a number N. For each loop iteration of vectorizable loop 204, the instructions (i.e., addition instructions, shift instructions, and subtraction instructions) contained in loop body 202 are executed using the current value of induction variable i for that loop iteration. Thus, to execute vectorizable loop 204, loop iterations 208(0) to 208(N) of loop body 202 are assigned to corresponding PEs 206(0) to 206(P), wherein each of loop iterations 208(0) to 208(N) uses a different value for induction variable i. It should be noted that in Figure 2In the example of FIG. 2 , it is assumed that the number N is less than or equal to the number P of PEs 206(0) to 206(P) and it is further assumed that each of the plurality of PEs 206(0) to 206(P) includes a sufficient number of heterogeneous functional units to execute the instructions within loop body 202. Thus, for all values of the induction variable i of loop body 202, PEs 206(0) to 206(P) are able to execute all loop iterations 208(0) to 208(N) in parallel, thereby yielding optimal performance.
[0026] In contrast, Figure 3 An example 300 is illustrated in which a loop body 302 of a vectorizable loop 304 does not fit into each of a plurality of legacy PEs 306(0) through 306(P). Figure 3 As seen in the figure, the loop body 302 and Figure 2 308(0)-308(N), the loop iterations 308(0)-308(N) are divided into two (2) loop partitions 310(0), 310(1) for processing.
[0027] During execution, as indicated by arrow 312, PEs 306(0)-306(P) are first configured to execute a first loop partition 310(0). Then, as indicated by arrow 314, PEs 306(0)-306(P) are reconfigured to execute a second loop partition 310(1). If the number N of loop iterations 308(0)-308(N) is greater than the number P of PEs 306(0)-306(306), PEs 306(0)-306(P) must be repeatedly reconfigured during execution, which may incur a significant performance penalty. Furthermore, PEs 306(0)-306(P) must use a memory block such as Figure 1 A vector register file, such as vector register file 116 of , stores and retrieves any data dependencies and / or intermediate results generated during execution of loop partitions 310 ( 0 ), 310 ( 1 ), which may incur additional performance penalties.
[0028] Figure 4 It shows how to Figure 1 The decoding / control circuit 104 will Figure 1 The PEs 106(0) to 106(P) provided by the vector processor-based device 100 are reconfigured into one or more fused PEs to solve Figure 3 A block diagram of the scenario shown. Figure 4In the example of FIG. 1 , PEs 106(0) to 106(P) have been organized into a plurality of fused PEs 400(0) to 400(F), wherein each of the plurality of fused PEs 400(0) to 400(F) includes two (2) PEs of PEs 106(0) to 106(P). Thus, fused PE 400(0) includes PEs 106(0), 106(1), and fused PE 400(1) includes PEs 106(2), 106(3), and so on, and each pair of PEs 106(0) to 106(P) is configured to interact and operate as a single fused PE. Figure 4 As shown, in some aspects, PE communication link 136 may also facilitate communications among PEs 106 ( 0 ) through 106 (P) that make up converged PEs 400 ( 0 ) through 400 (F).
[0029] It should be understood that, in addition to Figure 4 In addition to the arrangement shown, decode / control circuitry 104 may reconfigure PEs 106(0) to 106(P) into an arrangement of fused PEs 400(0) to 400(F). For example, decode / control circuitry 104 may reconfigure multiple PEs of PEs 106(0) to 106(P) into each of fused PEs 400(0) to 400(F) as needed to better balance instruction level parallelism (ILP) with data level parallelism (DLP) for a particular application. In extreme cases where maximum ILP is needed, decode / control circuitry 104 may even reconfigure all PEs 106(0) to 106(P) into a single fused PE 400.
[0030] To illustrate the Figure 1 FIG. 5 is provided for an exemplary operation of reconfigurable fusion of PEs 106(0) to 106(P) in a vector processor-based device 100. For clarity, reference is made to FIG. 5 when describing FIG. Figure 1 and Figure 45 begins with the decode / control circuitry 104 of the vector processor 102 receiving an instruction block 122, the instruction block 122 comprising a vectorizable loop 130, the vectorizable loop 130 including a loop body 132 (block 500). In this regard, the decode / control circuitry 104 may be referred to herein as “means for receiving an instruction block, the instruction block comprising a vectorizable loop, the vectorizable loop including a loop body”. The decode / control circuitry 104 determines a required number of PEs, the required number of PEs indicating the number of PEs required to execute the loop body 132 from among a plurality of PEs 106(0) to 106(P) of the vector processor 102, wherein each of the plurality of PEs 106(0) to 106(P) comprises a plurality of heterogeneous functional units 108(0) to 108(F), 108′(0) to 108′(F) (block 502). Thus, the decode / control circuitry 104 may be referred to herein as “means for determining a number of PEs indicating a number of PEs of a plurality of PEs of a vector processor that are required to execute a loop body.” In some aspects, the operation of block 502 for determining the number of PEs required may include determining the number of PEs required based on compiler-generated metadata 134 for the instruction block 122 (block 504).
[0031] The decode / control circuit 104 then reconfigures the plurality of PEs 106(0) to 106(P) into one or more fused PEs 400(0) to 400(F), wherein each of the one or more fused PEs 400(0) to 400(F) includes a desired number of PEs from the plurality of PEs 106(0) to 106(P) (block 506). Thus, the decode / control circuit 104 may be referred to herein as “means for reconfiguring the plurality of PEs into one or more fused PEs, wherein each of the one or more fused PEs includes a desired number of PEs from the plurality of PEs”. Then, the processing in Figure 5B Continue at block 508.
[0032] Now, refer to Figure 5B In some aspects, the decode / control circuitry 104 may determine whether the count of one or more loop iterations to be executed exceeds the count of one or more fused PEs 400(0) to 400(F) (block 508). If not, processing continues at block 510. However, if it is determined at decision block 508 that the count of one or more loop iterations to be executed does exceed the count of one or more fused PEs 400(0) to 400(F), the decode / control circuitry 104 may perform loop unrolling such that each of the one or more fused PEs 400(0) to 400(F) executes a plurality of loop iterations of the one or more loop iterations (block 512). Processing then continues at block 510.
[0033] Then, the PEs 106(0)-106(P) execute one or more loop iterations of the loop body 132 as one or more fused PEs 400(0)-400(F) (block 510). In this regard, the plurality of PEs 106(0)-106(P) may be referred to herein as "means for executing one or more loop iterations of the loop body using one or more fused PEs." In some aspects, the operations of block 510 for executing one or more loop iterations of the loop body 132 as one or more fused PEs 400(0)-400(F) may include the PEs 106(0)-106(P) of each of the one or more fused PEs 400(0)-400(F) communicating via the PE communication link 136 (block 514). Some aspects of one or more fused PEs 400(0) to 400(F) including multiple fused PEs 400(0) to 400(F) may provide operations of box 510 for executing one or more loop iterations of loop body 132 as one or more fused PEs 400(0) to 400(F) may include: executing one loop iteration of loop body 132 in parallel with other fused PEs in the multiple fused PEs 400(0) to 400(F) by each of the multiple fused PEs 400(0) to 400(F) (box 516).
[0034] Providing reconfigurable fusion of PEs in vector processor-based devices according to various aspects disclosed herein can be provided in or integrated into any processor-based device. Examples include, but are not limited to, set-top boxes, entertainment units, navigation devices, communication devices, fixed location data units, mobile location data units, global positioning system (GPS) devices, mobile phones, cellular phones, smart phones, session initiation protocol (SIP) phones, tablet computers, tablet phones, servers, computers, portable computers, mobile computing devices, wearable computing devices (e.g., smart watches, health products or fitness trackers, glasses, etc.), desktop computers, personal digital assistants (PDAs), monitors, computer monitors, televisions, tuners, radios, satellite radios, music players, digital music players, portable music players, digital video players, video players, digital video disc (DVD) players, portable digital video players, automobiles, vehicle components, avionics systems, drones, and multi-rotor helicopters.
[0035] In this regard, Figure 6 The diagram shows that Figure 11. The processor-based system 600 corresponds to the vector processor-based device 100 of FIG. The processor-based system 600 includes one or more central processing units (CPUs) 602, each of which includes one or more processors 604 (which, in some aspects, may be similar to Figure 1 PE 106 (0) to 106 (P) corresponding to), the one or more processors 604 include Figure 1 The decode / control circuit 104 of the processor 600 may be a CPU 602. The CPU 602 may have a cache memory 606 coupled to the processor 604 for quickly accessing temporarily stored data. The CPU 602 may be coupled to a system bus 608 and may couple master devices and slave devices included in the processor-based system 600 to each other. As is well known, the CPU 602 may communicate with other devices by exchanging address, control, and data information on the system bus 608. For example, the CPU 602 may communicate a bus transaction request to a memory controller 610, which is an example of a slave device.
[0036] Other master devices and slave devices may be connected to the system bus 608. Figure 6 As illustrated, these devices may include a memory system 612, one or more input devices 614, one or more output devices 616, one or more network interface devices 618, and one or more display controllers 620, as examples. The input device(s) 614 may include any type of input device, including, but not limited to, input keys, switches, voice processors, etc. The output device(s) 616 may include any type of output device, including, but not limited to, audio indicators, video indicators, other visual indicators, etc. The network interface device(s) 618 may be any device configured to allow data to be exchanged with a network 622. The network 622 may be any type of network, including, but not limited to, a wired or wireless network, a private or public network, a local area network (LAN), a wireless local area network (WLAN), a wide area network (WAN), a BLUETOOTH TM network, and the Internet. The network interface device(s) 618 may be configured to support any type of communication protocol desired. The memory system 612 may include one or more memory units 624(0) through 624(N).
[0037] The CPU(s) 602 may also be configured to access the display controller(s) 620 via the system bus 608 to control information sent to the display(s) 626. The display controller(s) 620 sends information to the display(s) 626 for display via one or more video processors 628, which process the information to be displayed into a format suitable for the display(s) 626. The display(s) 626 may include any type of display including, but not limited to, a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, and the like.
[0038] It will also be appreciated by those skilled in the art that various illustrative logic blocks, modules, circuits and algorithms described in conjunction with certain aspects disclosed herein can be implemented as electronic hardware, stored in a memory or another computer-readable medium and executed by a processor or other processing device, or a combination of the two. As an example, the master device and slave device described herein can be used for any circuit, hardware component, integrated circuit (IC), or IC chip. The memory disclosed herein can be a memory of any type and size, and can be configured to store any type of desired information. In order to clearly illustrate this interchangeability, various illustrative components, blocks, modules, circuits and steps have been described above in terms of functionality. How to implement this functionality depends on specific applications, design choices, and / or design constraints imposed on the entire system. The technician can implement the described functionality in a varying manner for each specific application, but this implementation determination should not be interpreted as causing a departure from the scope of the present disclosure.
[0039] The various illustrative logical blocks, modules, and circuits described in conjunction with the various aspects disclosed herein may be implemented or performed using a processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. The processor may be a microprocessor, but in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices (e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration).
[0040] The various aspects disclosed herein may be embodied in hardware and instructions stored in hardware, and may reside in, for example, random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disks, removable disks, CD-ROMs, or any other form of computer-readable media known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in a remote station. In an alternative, the processor and storage medium may reside in a remote station, a base station, or a server as discrete components.
[0041] It should also be noted that the operation steps described in any of the exemplary aspects of the exemplary aspects herein are described to provide examples and discussions. The described operations can be performed in many different orders other than the illustrated order. Further, the operations described in a single operation step can actually be performed in several different steps. Additionally, one or more operation steps discussed in the exemplary aspects can be combined. It should be understood that it is obvious to those skilled in the art that the operation steps illustrated in the flow chart can be modified in many different ways. It should also be understood by those skilled in the art that any of a variety of different techniques and skills can be used to represent information and signals. For example, the data, instructions, commands, information, signals, bits, symbols, and chips that may be cited throughout the above-mentioned specification can be represented by voltage, current, electromagnetic waves, magnetic fields or particles, light fields or particles, or any combination thereof.
[0042] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Therefore, the disclosure is not intended to be limited to the examples and designs described herein, but is consistent with the widest scope consistent with the principles and features disclosed herein.
Claims
1. A vector processor-based device providing reconfigurable fusion of processing elements, the vector processor-based device comprising a vector processor, the vector processor comprising: a plurality of processing elements, wherein each processing element of the plurality of processing elements comprises a plurality of heterogeneous functional units; as well as The decoding / control circuit is configured as follows: receiving an instruction block, the instruction block comprising a vectorizable loop, the vectorizable loop comprising a loop body; determining a required number of processing elements based on comparing the number of instructions within a loop body to the number of functional units in the plurality of heterogeneous functional units provided by each of the plurality of processing elements, the required number of processing elements indicating the number of processing elements in the plurality of processing elements required to execute the loop body; reconfiguring the plurality of processing elements into a plurality of fused processing elements, wherein each fused processing element in the plurality of fused processing elements comprises: a desired number of processing elements in the plurality of processing elements; determining that the loop body includes more loop iterations than a number of fused processing elements among the plurality of fused processing elements; and In response to determining that the loop body includes more loop iterations than a number of fused processing elements among the plurality of fused processing elements, performing loop unrolling such that the fused processing elements among the plurality of fused processing elements execute a plurality of loop iterations of the loop body; Each fused processing element among the plurality of processing elements is configured to execute loop iterations of the loop body in parallel with other fused processing elements among the plurality of fused processing elements executing loop iterations of the loop body.
2. The vector processor based device of claim 1, wherein: Each of the plurality of fused processing elements is interconnected via a processing element communication link; and Each fused processing element of the plurality of fused processing elements is configured to execute the loop iteration of the loop body by being further configured to communicate via the processing element communication link.
3. The vector processor based device of claim 1, wherein each of the plurality of processing elements comprises one of: a coarse grain reconfigurable array (CGRA), an in-order processing unit, and a superscalar processor.
4. The vector processor based device of claim 1, wherein the decode / control circuit is configured to determine the required number of processing elements based on compiler generated metadata for the instruction block.
5. The vector processor based device of claim 1, integrated into an integrated circuit (IC).
6. The vector processor-based device of claim 1 , integrated into a device selected from the group consisting of: a set-top box; an entertainment unit; a navigation device; a communication device; a fixed location data unit; a mobile location data unit; a global positioning system (GPS) device; a mobile phone; a cellular phone; a smart phone; a session initiation protocol (SIP) phone; a tablet computer; a phablet; a server; a computer; a portable computer; a mobile computing device; a wearable computing device; a desktop computer; a personal digital assistant (PDA); a monitor; a computer monitor; a television; a tuner; a radio; a satellite radio; a music player; a digital music player; a portable music player; a digital video player; a video player; a digital video disc (DVD) player; a portable digital video player; an automobile; a vehicle component; an avionics system; an unmanned aircraft; and a multicopter.
7. A vector processor-based device providing reconfigurable fusion of processing elements, comprising: means for receiving an instruction block, the instruction block comprising a vectorizable loop, the vectorizable loop comprising a loop body; means for determining a required number of processing elements based on comparing the number of instructions within the loop body to the number of functional units in a plurality of heterogeneous functional units provided by each of the plurality of processing elements, the required number of processing elements indicating the number of processing elements in a plurality of processing elements of a vector processor that are required to execute the loop body; means for reconfiguring the plurality of processing elements into a plurality of fused processing elements, wherein each of the plurality of fused processing elements comprises a desired number of processing elements of the plurality of processing elements and is configured to execute loop iterations of the loop body in parallel with other fused processing elements of the plurality of fused processing elements executing loop iterations of the loop body; for determining that the loop body includes more loop iterations than the number of fused processing elements among the plurality of fused processing elements; as well as Means for performing loop unrolling in response to determining that the loop body includes more loop iterations than a number of fused processing elements among the plurality of fused processing elements such that a fused processing element among the plurality of fused processing elements executes a plurality of loop iterations of the loop body.
8. A method for providing reconfigurable fusion of processing elements of a vector processor, the method comprising: receiving, by a decode / control circuit of the vector processor, an instruction block, the instruction block comprising a vectorizable loop, the vectorizable loop comprising a loop body; determining a required number of processing elements, the required number of processing elements indicating a number of processing elements of a plurality of processing elements of the vector processor required to execute the loop body, wherein: Each processing element of the plurality of processing elements comprises a plurality of heterogeneous functional units; and determining the required number of processing elements based on comparing the number of instructions within a loop body to the number of functional units in the plurality of heterogeneous functional units provided by each of the plurality of processing elements; reconfiguring the plurality of processing elements into a plurality of fused processing elements, wherein each fused processing element in the plurality of fused processing elements includes a desired number of processing elements in the plurality of processing elements; executing, by each of the plurality of fused processing elements, loop iterations of the loop body in parallel with other of the plurality of fused processing elements executing loop iterations of the loop body; determining that the loop body includes more loop iterations than a number of fused processing elements among the plurality of fused processing elements; and In response to determining that the loop body includes more loop iterations than a number of fused processing elements among the plurality of fused processing elements, loop unrolling is performed such that the fused processing elements among the plurality of fused processing elements execute a plurality of loop iterations of the loop body.
9. The method according to claim 8, wherein: Each of the plurality of fused processing elements is interconnected via a processing element communication link; as well as Executing the loop iteration of the loop body includes communicating via the processing element communication link.
10. The method of claim 8, wherein each of the plurality of processing elements comprises one of: a coarse-grained reconfigurable array (CGRA), an in-order processing unit, and a superscalar processor.
11. The method of claim 8, wherein the required number of processing elements is determined based on compiler-generated metadata for the instruction block.
12. A non-transitory computer readable medium having computer executable instructions stored thereon for causing a vector processor of a vector processor-based device to: receiving an instruction block, the instruction block comprising a vectorizable loop, the vectorizable loop comprising a loop body; determining a required number of processing elements, the required number of processing elements indicating a number of processing elements of a plurality of processing elements of the vector processor required to execute the loop body, wherein: Each of the plurality of processing elements comprises a plurality of heterogeneous functional units; and determining the required number of processing elements based on comparing the number of instructions within a loop body to the number of functional units in the plurality of heterogeneous functional units provided by each of the plurality of processing elements; reconfiguring the plurality of processing elements into a plurality of fused processing elements, wherein each fused processing element in the plurality of fused processing elements comprises: a desired number of processing elements in the plurality of processing elements; executing, by each of the plurality of fused processing elements, loop iterations of the loop body in parallel with other of the plurality of fused processing elements executing loop iterations of the loop body; determining that the loop body includes more loop iterations than a number of fused processing elements among the plurality of fused processing elements; and In response to determining that the loop body includes more loop iterations than a number of fused processing elements among the plurality of fused processing elements, loop unrolling is performed such that the fused processing elements among the plurality of fused processing elements execute a plurality of loop iterations of the loop body.
13. The non-transitory computer-readable medium of claim 12, wherein the computer-executable instructions for causing the vector processor of the vector processor-based device to execute the loop iteration of the loop body comprise: Computer executable instructions for causing the vector processors to communicate via a processing element communication link.
14. The non-transitory computer readable medium of claim 12, wherein the computer executable instructions for causing the vector processor of the vector processor-based device to determine the required number of processing elements comprise: Computer executable instructions for causing the vector processor to determine the required number of processing elements based on compiler generated metadata for the instruction block.
Citation Information
Patent Citations
Providing reconfigurable fusion of processing elements (PEs) in vector-processor-based devices
US10846260B2
Scheduler of reconfigurable array, method of scheduling commands, and computing apparatus
US20100199069A1
