Docsity

Introduction to GPU: Architecture, Programming Model, and Performance, Study notes of Computer Architecture and Organization

Partial preview of the text

Download Introduction to GPU: Architecture, Programming Model, and Performance and more Study notes Computer Architecture and Organization in PDF only on Docsity!

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Introduction to GPU^ Introduction to GPU

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Talk outline

Market History Graphics computation Architectural drivers GeForce 6800 Future Statistics

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

GPU Target Applications

860.1 million total units 600 cell phones 5 Media Centers 100 consoles 50 home 10 gamers 3 General computing 1 CAD/CAM 50 units Interactive gaming 50 handheld Consumer

Visual simulations 1 professional Digital content creation units (M) detail sector

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Image Quality Evolution

Marooned - 1990 Hovertank 3D - 1991 Doom - 1993 Quake - 1996 Doom 2004

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Describing a

scene and materials

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Typical Rendering Phases

Pre-render: Shadow maps or shadow volumes for each light source Environment maps Render scene from observer’s viewpoint Accumulate contribution from each light source Post-render: Tone-map, flare, depth-of-field

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Architectural Drivers

Programmability

Evolved from configurable logic Enables developers’ added value

Parallelism

Independent streams of vertices and pixels highly data parallel

Memory Characteristics

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Programmer’s Model

Parallel Don’t lose the inherent parallelism! High level / abstracted No pointer math Two level compilation – JIT compiler Application-specific Rapid evolution

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Programmer’s Model

new features of GF Dual data type IEEE FP32 precision & IEEE-like FP Dynamic pixel branching Floating Point framebuffer blending Microsoft’s Direct3D VS/PS shader model 3. Languages HLSL and Cg compiled to GPU-independent assembly JIT compilation to GPU-specific target

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

GPUs vs. CPUs^ Workload offers more independent calculations

Enables wide and deep parallelism Simple programming model: Multi-threaded machine with single-threadedprogramming model Superscalar, up to 6 instructions Combination of compute resources programmable processors fixed-function processors rasterization texture filtering transcendental functions, inner product

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Framebuffer Controller

256-pin DDR-2 or GDDR-3 Schedules requests from all engines Transparent compress/decompress lossless bandwidth compression Maps from pixel-linear address to page & partition tiling Flexible in: Width, Depth, Frequency, Banks

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Performance Regimes

No one typical performance mode No single balance point Seek to maximize use of BW. Dozens of “speed of light” regimes limited only by memory bandwidth Z-only (no color) rendering Shadow calculations

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/

Vertex Processing Engine

ISA compatibility – 2 generations two instruction encodings single merged 123-bit VLIW internal instruction Six vector floating point processors 512 x 128 context RAM 32 x 128 temp regs 16 x 128 input and output 512 instructions Up to 3 threads per processor hides latency from the programmer

UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/05 UIUC 09/ Vertex Processing Engine MIMD Architecture VLIW issue issues tovector and scalar units Penalty free branching Shader Model 3.

Vertex Processor Detail

VertexTextureFetch Output Registers 16 x 128-bit SpecialFunction Unit Add Multiply L Texture Cache Input Registers 16 x 128-bit TemporaryRegisters32 x 128-bit Instruction RAM 512 x 123-bit Constant RAM512 x 128-bit Vertex Texture Fetch VPE threads hide latency Non-stalling up to 4 textures MIPMAPs, no filtering