GCN (also known as Graphics Core Next) is a series of graphics processor architectures developed by AMD. GCN was introduced in 2012 as a non-VLIW redesign of AMD's TeraScale architecture.
Introduction CPUs typically expose programming models architecturally equivalent to the classic RISC pipeline where individual scalar instructions are fetched, decoded, and executed sequentially. In contrast, GPUs typically expose an explicitly data-parallel programming model. In both GCN and TeraScale, programs are organized as parallel threads, where each thread considers different elements of an input data set. Threads are executed in hardware in groups of 64 called a "wavefront". Wavefronts differ from a classic RISC pipeline in that all threads in the wavefront share a single program counter, and execute in parallel and in lock-step. The ability to issue 64 operations per instruction fetch significantly reduces area and power requirements.
History In AMD's previous TeraScale design, vector ALUs executed 16 groups of 4 scalar operations from a single wavefront per cycle. Each operation's placement within a group is determined statically, and correspond to TeraScale VLIW instruction slots. Effective utilization of all available slots in each instruction depends on a compiler's ability to find independent operations within a single wavefront. The GCN architecture removes the instruction slot concept completely: each (non-VLIW) instruction instead encodes a single operation. A single vector unit now executes 16 scalar operations from 4 different wavefronts per cycle. AMD's goal in making this change was to make the performance and occupancy of GCN dependent on wavefront-parallelism, contrast to TeraScale which is dependent on a compiler's ability to find independent operations within a single wavefront.
Instruction set The GCN instruction set is owned by AMD and was developed specifically for GPUs.
Compiler Support LLVM has code generation support for all GCN variants. Mesa uses the Mesa-internal ACO compiler for GCN code generation. GCC implements code generation for Vega and Vega 7nm. Older versions of GCC previously included code generation support for Fiji (Volcanic Islands), though this was removed in GCC 15. All other GCN variants are unsupported. GCC 10 introduced offloading via OpenMP and OpenACC.
Architecture
Command processing
Graphics Command Processor The Graphics Command Processor (GCP) is a functional unit of the GCN microarchitecture. Among other tasks, it is responsible for the handling of asynchronous shaders.
Asynchronous Compute Engine The Asynchronous Compute Engine (ACE) is a distinct functional block serving computing purposes, whose purpose is similar to that of the Graphics Command Processor.
Schedulers Since the third iteration of GCN, the hardware contains two schedulers: one to schedule "wavefronts" during shader execution (the CU Scheduler, or Compute Unit Scheduler) and the other to schedule execution of draw and compute queues. The latter helps performance by executing compute operations when the compute units (CUs) are underutilized due to graphics commands limited by fixed function pipeline speed or bandwidth. This functionality is known as Async Compute. For a given shader, the GPU drivers may also schedule instructions on the CPU to minimize latency.
Geometric processor
The geometry processor contains a Geometry Assembler, a Tesselator, and a Vertex Assembler. The Tesselator is capable of doing tessellation in hardware as defined by Direct3D 11 and OpenGL 4.6.
Compute units One compute unit (CU) combines 64 shader processors with 4 texture mapping units (TMUs). The compute units are separate from, but feed into, the render output units (ROPs). Each compute unit consists of the following:
a CU scheduler a Branch & Message Unit 4 16-lane-wide SIMD Vector Units (SIMD-VUs) 4 64 KiB vector general-purpose register (VGPR) files 1 scalar unit (SU) a 8 KiB scalar GPR file a local data share of 64 KiB 4 Texture Filter Units 16 Texture Fetch Load/Store Units a 16 KiB level 1 (L1) cache Four Compute units are wired to share a 16KiB L1 instruction cache and a 32KiB L1 data cache, both of which are read-only. A SIMD-VU operates on 16 elements at a time (per cycle), while a SU can operate on one a time (one/cycle). In addition, the SU handles some other operations, such as branching. Every SIMD-VU has some private memory where it stores its registers. There are two types of registers: scalar registers (S0, S1, etc.), which hold 4 bytes number each, and vector registers (V0, V1, etc.), which each represent a set of 64 4-byte numbers. On the vector registers, every operation is done in parallel on the 64 numbers. which correspond to 64 inputs. For example, it may work on 64 different pixels at a time (for each of them the inputs are slightly different, and thus you get slightly different color at the end). Every SIMD-VU has room for 512 scalar registers and 256 vector registers. AMD has claimed that each GCN compute unit (CU) has 64 KiB Local Data Share (LDS).
CU scheduler The CU scheduler is the hardware functional block, choosing which wavefronts the SIMD-VU executes. It picks one SIMD-VU per cycle for scheduling. This is not to be confused with other hardware or software schedulers.
… excerpt ends here. Continue reading the full article.





