Processing device and method for sharing storage between cache memory, local data storage and register file - Patents.com
By dynamically sharing SRAM between L1 cache and LDS based on application needs, the solution addresses inefficiencies in storage utilization, enhancing parallel processing efficiency and reducing latency in accelerated processing devices.
Patent Information
- Application Number
- JP2024509013
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-03
- Filing Date
- 2022-07-13
- Publication Date
- 2024-09-27
AI Technical Summary
Conventional accelerated processing devices face inefficiencies in storage utilization due to the limited sharing of L1 cache, local data storage (LDS), and register files, leading to increased latency and reduced parallel processing capabilities.
The proposed solution involves dynamically partitioning and sharing portions of the SRAM in the register file between L1 cache and LDS based on the specific application requirements, allowing for tailored storage allocation among SIMD units.
This approach enhances storage efficiency and reduces latency by reusing data more effectively across hardware blocks, optimizing performance without increasing physical space, thereby improving parallel processing capabilities.
Smart Images

Figure 2024535141000001
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of U.S. Patent Application No. 17 / 467,104, filed September 3, 2021, the contents of which are incorporated herein by reference. [Background technology]
[0002] Accelerated processing devices (APDs), such as graphical processing units (GPUs), artificial intelligence processors, and computational processors, are used to accelerate the processing of operations suitable for parallel processing (e.g., graphics operations). GPUs include multiple processor cores (e.g., compute units (CUs)) that perform operations in a parallel manner according to the single-instruction-multiple-data (SIMD) paradigm.
[0003] A more detailed understanding may be had from the following description, given by way of example in conjunction with the accompanying drawings, in which: [Brief description of the drawings]
[0004] [Figure 1] 1 is a block diagram of an example device in which one or more features of the present disclosure may be implemented. [Diagram 2] FIG. 1 is a block diagram illustrating example components for implementing one or more features of the present disclosure. [Diagram 3] 3 is a block diagram illustrating example components of a CU of the APD shown in FIG. 2 for implementing one or more features of the present disclosure. [Figure 4] FIG. 2 is a flow diagram illustrating an example method for partitioning memory blocks for shared storage based on a particular application in accordance with an aspect of the present disclosure. [Diagram 5] FIG. 4 is a flow diagram illustrating an exemplary method of executing a program in accordance with aspects of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0005] In addition to CUs, GPUs include different levels of caches (e.g., a level 1 cache (L1 cache) and a level 2 cache (L2 cache)). Each CU includes an L1 cache and a local data storage (LDS). The L1 cache and LDS are shared between the SIMD units of the CU. The L1 cache is part of the GPU memory, which includes the level 2 cache (shared by other CUs) and the main memory.
[0006] In some embodiments, the L1 cache storage is managed by HW cache logic. The LDS storage is managed by a software kernel running on the CU. The L1 cache is used to store data frequently accessed by the CU because the bandwidth between the CU and the L1 cache is larger than the bandwidth between the CU and other parts of memory (e.g., the L2 cache and main memory). Similarly, the bandwidth between the CU and the LDS is relatively large for sharing data between SIMD units of the CU. The L1 cache typically has a capacity in the range of 16KB to 32KB. The LDS typically has a fixed capacity (e.g., 64KB or more) defined by the standard (e.g., graphics standard) to which the GPU conforms.
[0007] Increasing the capacity of the L1 cache allows the L1 cache to store more frequently accessed data. However, both the L1 cache and the LDS occupy silicon area within the CU. Therefore, increasing the capacity of the L1 cache to allow the L1 cache to store more frequently accessed data also increases the area of the L1 cache in the GPU.
[0008] In some conventional accelerated processors, the data storage of the L1 cache and the LDS are shared between each other. For example, if it is determined that less storage space of the LDS is used, a portion (e.g., 16 KB) of the 64 KB of the LDS may be reserved for use by the LDS, and the remaining portion of the 64 KB of the LDS may be used by the L1 cache to store more frequently accessed data. Although these conventional accelerated processors allow the total area to be used more efficiently, some applications would benefit from the use of more storage capacity of the L1 cache.
[0009] A portion of a program (e.g., a block of instructions) is typically divided into wavefronts, each of which contains multiple work items or threads that follow the same control flow path. A register file is assigned to each SIMD unit of a CU, and each wavefront in a block is scheduled and processed on the SIMD units of the CU using the assigned register file. The size of the register file footprint per wavefront (i.e., the number of registers assigned to process the wavefront) is determined at compile time. If the register file footprint per wavefront is reduced, more waves can be processed in parallel, which can reduce overall latency because more wavefronts can be scheduled and processed in parallel by the CU while other wavefronts being processed are waiting for data from memory (i.e., memory accesses). If the register file footprint per wavefront is increased, the overall number of memory accesses is reduced, but fewer wavefronts can be processed in parallel by the CU. At execution time, wavefronts of blocks are scheduled according to the register file footprint determined for each wavefront and are either processed in parallel on different SIMD units of the CU or processed serially on the same SIMD unit.
[0010] The capacity of the register file of a CU ranges from 256KB to 512KB. That is, the capacity of the register file and its area are larger than the capacity and area of the L1 cache and the LDS. However, the storage of the register file is not easily shared between different parts of a program (e.g., wavefronts) executing in the GPU, and in some cases, the register file is not fully occupied. For example, in conventional architectures, the static random access memory (SRAM) portion of the register file is not shared between SIMD units. Thus, when the execution of a program involves making data in a register of a first SIMD unit available to a second SIMD unit, the first SIMD unit first pushes the data to the LDS 308, L1 cache 306, or another part of memory, from which the data is then accessed by the second SIMD unit. Thus, a thread of a wavefront can indirectly access another thread of the same wavefront through memory (e.g., main memory), but with a longer latency period than accessing the data directly. However, a thread in a wavefront cannot directly access another thread in the same wavefront through the register file.
[0011] A feature of the present disclosure provides a device and method for efficient processing of programs by sharing the combined storage of the L1 cache, LDS, and register file. Portions of the SRAM of the register file that are not shared by other SIMD units 138 in conventional architectures are reserved for the L1 cache and LDS and shared among the SIMD units of the CU. The amount or size of the portion of the register file reserved for the L1 cache and LDS is based on the application being executed. That is, the division between the L1 cache, LDS, and register file is tailored to the particular application being executed. For example, if the application being executed is determined to be an application that requires a large L1 cache capacity but does not require a larger register file, a larger portion of the register file is reserved for use as additional L1 cache storage. Alternatively, if the application being executed is determined to be an application that requires a larger register file but does not require a large L1 cache capacity or LDS, a smaller portion or no portion of the register file is reserved for the L1 cache or LDS.
[0012] An accelerated processing device is provided that includes a plurality of computational units, each of which includes a plurality of SIMD units, each of which includes a register file. The accelerated processing device also includes a LDS in communication with each of the SIMD units. The accelerated processing device also includes a first portion of a cache memory in communication with each of the SIMD units, and a second cache portion of the memory shared by the computational units. The computational units are configured to execute a program in which a storage portion of at least one of the register file of the SIMD units, the first portion of the cache memory, and the LDS is reserved as a portion of another of the register file, the first portion of the cache memory, and the LDS.
[0013] A method of executing a program is provided, the method including executing a first portion of the program in a computational unit of an accelerated processing device using data in a first portion of a register file, storing data from the first portion of the register file in a second portion of the register file instantiated as part of a first level cache memory, and reloading the data stored in the second portion of the register file into the first portion of the register file to execute the second portion of the program.
[0014] A processing device is provided that includes an accelerated processing device. The accelerated processing device includes a memory and a plurality of computation units including a plurality of SIMD units, each SIMD unit including a register file. The accelerated processing device also includes a LDS in communication with each of the SIMD units. The accelerated processing device also includes a cache memory having a first level in communication with each of the SIMD units and a second level shared between the computation units. The computation units are configured to execute a program in which a storage portion of at least one of the register file of the SIMD units, the first level of the cache memory, and the LDS is reserved as a portion of another of the register file, the first level of the cache memory, and the LDS.
[0015] 1 is a block diagram of an example device 100 in which one or more features of the present disclosure may be implemented. Device 100 may include, for example, a computer, a gaming device, a handheld device, a set-top box, a television, a mobile phone, or a tablet computer. Device 100 includes a processor 102, memory 104, storage 106, one or more input devices 108, and one or more output devices 110. Device 100 may also optionally include an input driver 112 and an output driver 114. It should be understood that device 100 may include additional components not shown in FIG. 1.
[0016] In various alternatives, the processor 102 includes a central processing unit (CPU), a GPU, a CPU and a GPU located on the same die, or one or more processor cores, each of which may be a CPU or a GPU. In various alternatives, the memory 104 is located on the same die as the processor 102 or is separate from the processor 102. The memory 104 may include volatile or non-volatile memory (e.g., random access memory (RAM), dynamic RAM (DRAM), cache).
[0017] Storage 106 includes fixed or removable storage (e.g., hard disk drive, solid state drive, optical disk, flash drive). Input devices 108 include, but are not limited to, a keyboard, a keypad, a touch screen, a touch pad, a detector, a microphone, an accelerometer, a gyroscope, a biometric scanner, or a network connection (e.g., a wireless local area network card for transmitting and / or receiving wireless IEEE 802 signals). Output devices 110 include, but are not limited to, a display, a speaker, a printer, a haptic feedback device, one or more optical, antennae, or network connections (e.g., a wireless local area network card for transmitting and / or receiving wireless IEEE 802 signals).
[0018] The input driver 112 communicates with the processor 102 and the input device 108, allowing the processor 102 to receive input from the input device 108. The output driver 114 communicates with the processor 102 and the output device 110, allowing the processor 102 to send output to the output device 110. It should be noted that the input driver 112 and the output driver 114 are optional components, and that the device 100 operates in the same manner when the input driver 112 and the output driver 114 are not present. The output driver 114 includes an APD 116 coupled to a display device 118. The APD is configured to accept computational and graphics rendering commands from the processor 102, process the computational and graphics rendering commands, and provide pixel output to the display device 118 for display. As described in more detail below, the APD 116 includes one or more parallel processing units configured to perform computations according to the SIMD paradigm. Thus, although various functions are described herein as being performed by or in conjunction with APD 116, in various alternatives, the functions described as being performed by APD 116 are additionally or alternatively performed by other computing devices having similar capabilities that are not driven by a host processor (e.g., processor 102) and that are configured to provide graphical output to display device 118. For example, it is contemplated that any processing system that performs processing tasks according to the SIMD paradigm may be configured to perform the functions described herein. Alternatively, it is contemplated that computing systems that do not perform processing tasks according to the SIMD paradigm perform the functions described herein.
[0019] FIG. 2 is a block diagram of device 100 and shows additional details regarding the execution of processing tasks on APD 116. Processor 102 maintains, in system memory 104, one or more control logic modules for execution by processor 102. The control logic modules include operating system 120, kernel mode driver 122, and applications 126. These control logic modules control various aspects of the operation of processor 102 and APD 116. For example, operating system 120 communicates directly with hardware and provides an interface to the hardware for other software executing on processor 102. Kernel mode driver 122 controls the operation of APD 116, for example, by providing an application programming interface ("API") to software executing on processor 102 (e.g., applications 126) to access various features of APD 116. Kernel mode driver 122 also includes a just-in-time compiler that compiles programs for execution by processing components of APD 116 (such as SIMD unit 138, described in more detail below).
[0020] APD 116 executes commands and programs for selected functions, such as graphic and non-graphic operations that may be suitable for parallel processing. APD 116 may be used to perform graphics pipeline operations, such as pixel operations, geometry calculations, and rendering of images to display device 118, based on commands received from processor 102. APD 116 also performs computational operations not directly related to graphics operations, such as operations related to video, physics simulations, computational fluid dynamics, or other tasks, based on commands received from processor 102.
[0021] The APD 116 includes a computation unit 132 that includes one or more SIMD units 138 that perform operations in a parallel manner according to the SIMD paradigm at the request of the processor 102. The SIMD paradigm is one in which multiple processing elements share a single program control flow unit and program counter, and thus execute the same program, but can execute the program on different data. In one example, each SIMD unit 138 includes 16 lanes, each lane executes the same instruction simultaneously with other lanes in the SIMD unit 138, but can execute the instruction on different data. Lanes can be switched off with prediction when not all lanes need to execute a given instruction. Prediction can also be used to execute programs with branching control flows. More specifically, for programs with conditional branches or other instructions where the control flow is based on calculations made by individual lanes, prediction of lanes corresponding to currently not executed control flow paths and serial execution of different control flow paths allows arbitrary control flow.
[0022] The basic unit of execution within the compute units 132 is the work item. Each work item represents a single instantiation of a program that executes in parallel on a particular lane. Work items may be executed simultaneously as a wavefront on a single SIMD unit 138. One or more wavefronts are included in a workgroup, which includes a collection of work items designated to execute the same program. A workgroup may be executed by executing each of the wavefronts that make up the workgroup. In the alternative, a wavefront may execute sequentially on a single SIMD unit 138, or partially or fully in parallel on different SIMD units 138. A wavefront may be thought of as the largest collection of work items that may be executed simultaneously on a single SIMD unit 138. Thus, if commands received from the processor 102 indicate that a particular program should be parallelized to an extent that the program cannot be run simultaneously on a single SIMD unit 138, the program is split into wavefronts that are either parallelized on two or more SIMD units 138, or serialized on the same SIMD unit 138 (or both parallelized and serialized, as appropriate). The scheduler 136 performs operations related to scheduling the various wavefronts on the different compute units 132 and SIMD units 138 .
[0023] The parallel processing provided by the computation units 132 is well suited to graphics-related operations, such as pixel value calculations, vertex transformations, and other graphics operations. Thus, in some cases, the graphics pipeline 134, which accepts graphics processing commands from the processor 102, provides computation tasks to the computation units 132 for execution in parallel.
[0024] Computation units 132 are also used to perform computational tasks that are not related to graphics or that are not performed as part of the normal operation of graphics pipeline 134 (e.g., custom operations performed to supplement the processing performed on the operation of graphics pipeline 134). Applications 126 or other software executing on processor 102 send programs defining such computational tasks to APD 116 for execution.
[0025] As described in more detail below, the APD 116 is configured to share the combined storage of the L1 cache, LDS, and register file. Portions of one or more of the memory blocks (i.e., SRAM, LDS, and L1 cache of the register file) are reserved (i.e., instantiated) for one or more of the other memory blocks based on the application being executed. The partition between the L1 cache, LDS, and register file is tailored to the particular use of the L1 cache, LDS, and register file by the application.
[0026] 3 is a block diagram illustrating example components of the CU 132 of the APD 116 shown in FIG. 2 for implementing one or more features of the present disclosure. For ease of explanation, the APD 116 is described as a GPU, which is an example of the APD 116.
[0027] As shown in FIG. 3, each SIMD unit 138 of a compute unit 132 includes a bank 304 of register files 302. As shown in the example of FIG. 3, each register file 302 has a storage capacity of 128 KB and includes four banks 304, each having a storage capacity of 32 KB. The number of SIMD units and the number of banks of each register file shown in FIG. 3 are merely examples. Features of the present disclosure may be implemented using a CU having any number of SIMD units and a register file with any number of banks. Additionally, the capacity of the register files and banks shown in FIG. 3 are merely examples. Features of the present disclosure may be implemented with capacities different from those shown in FIG. 3.
[0028] CU 132 also includes an L1 cache 306 that communicates with each of the four SIMD units 138 through interconnect 310 and with the GPU's next level of memory (e.g., an L2 cache, an L3 cache, main memory). Thus, any SIMD unit 138 can request data from the L1 cache or any other portion of memory.
[0029] The LDS 308 communicates with each of the four SIMD units 138 using an interconnect 312 and is accessible by any of the SIMD units 138. Also, data can be shared. Thus, any SIMD unit 138 can push data to the LDS 308 and another SIMD unit 138 can pull that data from the LDS 308. In contrast, in a conventional architecture, the register file 302 of each SIMD unit 138 is dedicated to each SIMD unit 138 and is not shared by the other SIMD units 138. Thus, when a SIMD unit 138 wants to make data available to another SIMD unit 138, the SIMD unit 138 pushes the data to the LDS 308, the L1 cache 306 (or another portion of memory that provides a longer latency) to make it accessible to the other SIMD unit 138.
[0030] A feature of the present disclosure reserves portions of the SRAM of the register file, which are typically not shared by other SIMD units 138, for L1 cache 306 through interconnect 310 and for LDS 308 through interconnect 312, and are therefore shareable between SIMD units 138. The amount or size of the portions of the register file reserved for L1 cache 306 and LDS 308 is based on the application being executed.
[0031] By being shared across the three hardware blocks, the stored data is reused more efficiently for an application. When it is determined that an application uses more capacity and bandwidth of any of the memory blocks (i.e., L1 cache 306, LDS 308, and register file 302), a portion of one or more of the other memory blocks is reserved for one memory block. For example, if it is determined that an application uses more registers for execution, a portion of L1 cache 306 and / or LDS 308 is reserved for register file 302. When it is determined that an application uses more cache memory for execution, a portion of register file 302 and / or LDS 308 (e.g., one or more banks 304) is reserved for use as additional L1 cache storage. When it is determined that an application uses more LDS capacity, a portion of register file 302 and / or L1 cache 306 (e.g., one or more banks 304) is reserved for use as additional LDS storage. That is, the division between L1 cache 306, LDS 308, and register file 302 is tailored to the particular application being executed.
[0032] 4 is a flow diagram illustrating an example method 400 for determining how to partition memory blocks for shared storage based on a particular application. The example shown in FIG. 4 describes portions of a program as wavefronts. However, features of the present disclosure may be implemented by executing other types of portions of a program.
[0033] The example shown in Figure 4 includes different decisions (i.e., decision d) on how to partition memory blocks based on the particular use case of the application being executed. The order in which the decisions are made in Figure 4 is merely an example. Features of the present disclosure may be implemented by making the decisions shown in Figure 4 in an order different from the order shown in Figure 4. It should be understood that the decisions shown in Figure 4 are not exhaustive and other combinations of partitioning memory blocks may be used to more efficiently execute an application.
[0034] As shown in block 402, an application begins execution. The application may be, for example, an application that includes graphics operations and non-graphics operations that are suitable for parallel processing. As the application executes, a processing device (e.g., a CPU) determines how to partition memory blocks (i.e., register file, L1 cache, and LDS).
[0035] As shown at decision block 404, the method 400 includes determining whether the application uses a non-zero sized LDS. If at block 404 it is determined that a non-zero sized LDS is used to execute the program ("YES"), then at block 406 a portion of the register file is reserved to contain LDS stores (i.e., to store data in the LDS). Next, at block 408, a portion of the register file is reserved for the L1 cache based on an L1 cache size specified by the application.
[0036] If, at block 404, it is determined that LDS stores are not used to execute the application (“NO”), then, at block 408, a portion of the register file is reserved for the L1 cache based on the L1 cache size specified by the application, without reserving a portion of the register file to contain LDS stores. For example, a larger portion of the register file may be reserved for the L1 cache when LDS stores are not used to execute the application than when non-zero sized LDS stores are used to execute the program.
[0037] After a portion of the register file is reserved for the L1 cache in block 408, the remainder of the register file (i.e., registers not reserved for the L1 cache and / or LDS stores) is allocated for executing the wavefront in block 410.
[0038] The size (number of registers) of the portion of the register file reserved for the L1 cache and / or LDS store is determined based on different factors such as, for example, the capacity and bandwidth of the L1 cache and / or LDS.
[0039] 5 is a flow diagram illustrating an example method 500 of executing a program in accordance with features of the present disclosure. The method 500 illustrated in FIG. 5 is merely one example of executing a program in accordance with features of the present disclosure where a decision is made to instantiate a portion of a register file of a CU as part of an L1 cache based on a particular application being executed. It should be understood that other methods of executing a program may be implemented similarly to the method illustrated in FIG. 5 where different decisions are made about how to partition memory blocks to instantiate a portion of a register file of a CU as part of an L1 cache based on a particular application being executed.
[0040] The example shown in Figure 5 describes portions of a program as wavefronts, however, features of the present disclosure may be implemented by executing other types of portions of a program.
[0041] As indicated at block 502, the method 500 includes initiating execution of a first wavefront, i.e., the first wavefront is executed by any of the SIMD units 138 shown in FIG.
[0042] As shown in block 504, the method 500 includes loading data into a first portion of a register file. That is, the data is loaded into any register of the register file 302 shown in FIG. 3. For example, the data is used by an ALU (not shown) to perform a calculation using the data loaded into the register of the first portion of the register file to execute a wavefront. As described above, in this example, a portion (i.e., the second portion) of the register file of the CU is instantiated as a portion of the L1 cache based on a particular application to be executed. For example, the application is determined to be an application that does not use a large register file for execution. Thus, the application is executed by generating additional L1 cache capacity by the second portion of the register file.
[0043] As shown in block 506, the method 500 includes storing data from the first portion of the register file to a second portion of the register file instantiated (reserved) as part of the L1 cache. For example, the data is stored in the second portion of the register file as part of a spill operation to free up space in the first portion of the register file for executing a second wavefront.
[0044] As shown in block 508, the method 500 includes reloading data from the second portion of the register file into the first portion of the register file to execute the second wavefront. The data reloading includes a register-to-register transfer, which has a higher bandwidth than an L1 cache-to-register transfer, which has a much higher bandwidth than an L2 cache (or main memory)-to-register transfer, thereby reducing latency.
[0045] Additionally or alternatively, the data in the second portion of the register file may be loaded into a portion of the register file of another SIMD unit, as indicated by the dashed line in block 510. That is, the second portion of the register file is instantiated as part of the L1 cache and is shared by other SIMD units of the CU. Thus, data may be transferred between SIMD units of the same CU with a larger bandwidth than transfers between registers and the L2 cache. Thus, applications may be executed more efficiently without increasing the footprint of memory blocks.
[0046] It should be understood that many variations are possible based on the disclosure herein, and although features and elements have been described above in particular combinations, each feature or element can be used alone without the other features and elements, or in various combinations with or without the other features and elements.
[0047] The various functional units illustrated in the figures and / or described herein (including, but not limited to, the processor 102, the input driver 112, the input device 108, the output driver 114, the output device 110, the accelerated processing device 116, the allocated registers 304, the register cache 306 of the register file 302, and the ALU 308) may be implemented as a general purpose computer, processor or processor core, or as a program, software or firmware stored in a non-transitory computer-readable storage medium or another storage medium executable by the general purpose computer, processor or processor core. The methods provided may be implemented in a general purpose computer, processor or processor core. Suitable processors include, by way of example, general purpose processors, special purpose processors, conventional processors, digital signal processors (DSPs), multiple microprocessors, one or more microprocessors associated with a DSP core, controllers, microcontrollers, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Array (FPGA) circuits, any other type of integrated circuit (IC), and / or state machines. Such processors can be manufactured by configuring a manufacturing process using the results of processed hardware description language (HDL) instructions and other intermediate data, including netlists (instructions that can be stored on a computer readable medium). The result of such processing can be a mask work that is used in a subsequent semiconductor manufacturing process to manufacture a processor implementing features of the present disclosure.
[0048] The methods or flow charts provided herein may be implemented in a computer program, software, or firmware embodied in a non-transitory computer-readable storage medium for execution by a general purpose computer or processor. Examples of non-transitory computer-readable storage media include read only memory (ROM), random access memory (RAM), registers, cache memory, semiconductor memory devices, magnetic media such as internal hard disks and removable disks, magneto-optical media, and optical media such as CD-ROM disks and digital versatile disks (DVDs).
Claims
1. 1. An acceleration processing device, comprising: A plurality of computing units; A cache memory, Each computing unit is a plurality of single instruction multiple data (SIMD) units each having a register file; a local data storage (LDS) in communication with each SIMD unit; The cache memory includes: a first portion in communication with each of the SIMD units of the plurality of computing units, and a second portion shared by two or more of the plurality of computing units; the plurality of computing units are configured to execute a program, and during execution of the program, a storage portion of at least one of the register file, the first portion of the cache memory, and the LDS of any one of the SIMD units is reserved as a portion of another of the register file, the first portion of the cache memory, and the LDS; Accelerated processing device.
2. the storage portion is reserved as the other of the register file, the first portion of the cache memory, and the LDS by instantiating the storage portion at program compilation time; The processing device of claim 1 .
3. The acceleration processing device is any one of a GPU, a calculation processor, and an artificial intelligence processor; The processing device of claim 1 .
4. the storage portions reserved as part of the register file, the first portion of the cache memory, and another portion of the LDS are determined based on the program being executed; The processing device of claim 1 .
5. the storage portion of the register file is reserved as part of a first portion of the cache memory; The computing unit comprises: Executing a first portion of the program using data in another storage portion of the register file; and storing data of the other storage portion of the register file in the storage portion of the register file reserved as part of the first portion of the cache memory; reloading data in the storage portion of the register file reserved as part of the first portion of the cache memory into the other storage portion of the register file to execute a second portion of the program; 4. The method of claim 3, The processing device of claim 1 .
6. the first part of the program and the second part of the program are wavefronts; The processing device of claim 5.
7. the storage portion of the register file is shared by other SIMD units of the compute unit; The processing device of claim 5.
8. the storage portion being a portion of a static random access memory (SRAM) of the register file; The processing device of claim 5.
9. the register file comprises a register bank; the storage portion of the register file reserved as part of the first portion of the cache memory comprises at least one register bank; The processing device of claim 1 .
10. 1. A method of executing a program, comprising the steps of: executing a first portion of the program on a computation unit of an accelerated processing device using data in a first portion of a register file; storing data of the first portion of the register file in a second portion of the register file instantiated as part of a first level cache memory; reloading the data stored in the second portion of the register file into the first portion of the register file to execute a second portion of the program. method.
11. executing the first portion of the program and the second portion of the program in a first single instruction multiple data (SIMD) unit of the compute unit; The method of claim 10.
12. the first part of the program and the second part of the program are wavefronts; The method of claim 10.
13. the second portion of the register file is instantiated at compile time as part of the first level cache memory; The method of claim 10.
14. the register file is part of a single instruction multiple data (SIMD) unit of a compute unit; the second portion of the register file is shared by other SIMD units of the compute unit; The method of claim 10.
15. loading the data of the second portion of the register file into a register file of one of the other SIMD units; 15. The method of claim 14.
16. 1. A processing device, comprising: Memory, an acceleration processing device, The acceleration processing device includes: A plurality of computing units; A cache memory, Each computing unit is a plurality of single instruction multiple data (SIMD) units each having a register file; a local data storage (LDS) in communication with each SIMD unit; The cache memory includes: a first level communicating with each SIMD unit and a second level shared between the plurality of computing units; the plurality of computing units are configured to execute a program in which a storage portion of at least one of the register file, the first level of the cache memory, and the LDS of any one of the SIMD units is reserved as a portion of another of the register file, the first level of the cache memory, and the LDS; Processing device.
17. the storage portion of the register file is reserved as part of a first level of the cache memory; The computing unit comprises: Executing a first portion of the program using data in another storage portion of the register file; and storing data of the other storage portion of the register file in the storage portion of the register file reserved as part of a first level of the cache memory; reloading data from the storage portion of the register file reserved as part of a first level of the cache memory into the other storage portion of the register file to execute a second portion of the program; 4. The method of claim 3, 17. The processing device of claim 16.
18. a first bandwidth between the storage portion of the register file and the other storage portion of the register file is greater than a second bandwidth between the register file and a second level of the cache memory; 20. The processing device of claim 17.
19. loading the data of the second portion of the register file into a register file of one of the other SIMD units; 17. The processing device of claim 16.
20. a central processing unit (CPU) for determining, based on the program being executed, an amount of the storage portion to be reserved as part of the register file, the first level of the cache memory, and the second level of the LDS; 20. The processing device of claim 19.
Citation Information
Patent Citations
System, method and computer program product for extending a cache using processor registers
US20120124299A1
