Docsity

GPU as a Modified Stream Processor: Transforming Computing Power, Exercises of Architecture

Partial preview of the text

Download GPU as a Modified Stream Processor: Transforming Computing Power and more Exercises Architecture in PDF only on Docsity!

A D N A N O Z S O Y A N D J E R O M E M I T C H E L L

C S C I B 6 4 9 PA R A L L E L A R C H I T E C T U R E S

A N D P R O G R A M M I N G

P R O F. A. C H A U H A N

GRAPHICS PROCESSING UNIT

ARCHITECTURES

GRAPHICS PROCESSING UNIT

  • Graphics Processing Unit (GPU)
    • A specialized circuit designed to rapidly manipulate and alter

memory

  • Accelerate the building of images in a frame buffer intended for

output to a display

  • GPU -> General Purpose Graphics Processing Unit

(GPGPU)

  • A general purpose graphics processing unit as a modified form

of stream processor

  • Transforms the computational power of a modern graphics

accelerator's shader pipeline into general-purpose computing

power

MODERN GPU ARCHITECTURE

  • Generic many core GPU
    • Less space devoted to control logic

and caches

  • Large register files to support

multiple thread contexts

  • Low latency hardware managed

thread switching

  • Large number of ALU per “core”

with small user managed cache per core

  • Memory bus optimized for

bandwidth

  • ~150 GBps bandwidth allows us to

service a large number of ALUs

simultaneously

Perhaad Mistry & Dana Schaa, Northeastern Univ Computer Architecture Research Lab, with Ben Gaster, AMD © 2011

On Board System Memory

High Bandwidth bus to ALUs

Simple ALUs

Cache

~ 150 GBps

WHAT IS BEHIND SUCH AN EVOLUTION?

  • The GPU is specialized for compute-intensive, highly data

parallel computation (exactly what graphics rendering is about)

  • So, more transistors can be devoted to data processing rather than

data caching and flow control

  • The fast-growing video game industry exerts strong economic

pressure that forces constant innovation (^5)

DRAM

Cache

ALU

Control ALU

ALU
ALU

DRAM

CPU GPU

GPU VENDORS

Courtesy of marketing and research firm Jon Peddie Research (JPR) * May 4 2011, Integrated GPUs, http://jonpeddie.com/press-releases/details/surprising-q1 -results-graphics-shipments-up-10.3-while- pc-shipments-down-5/

GPU VENDORS

May 17 2011 , Discrete GPUs, http://jonpeddie.com/publications/add-in-board-report/

Courtesy of marketing and research firm Jon Peddie Research (JPR)

NVIDIA ARCHITECTURE

  • OpenCL
    • Standards specification
  • Compute Unified Device Architecture (CUDA) Framework
    • A general purpose parallel computing architecture
    • A new parallel programming model and instruction set architecture
    • Leverages the parallel compute engine in NVIDIA GPUs
    • Software environment that allows developers to use C as a high-level

programming language

NVIDIA ARCHITECTURE

  • CUDA Capable devices
    • http://developer.nvidia.com/cuda-gpus
    • Tesla
    • Quadro
    • NVS
    • GeForce

NVIDIA ARCHITECTURE

  • Compute Capability
    • Specifications and features depend on compute capability
    • “backward compatible but not forward compatible”
    • Main differences between 1.x and 2.x
      • Increased the number of threads per blocks
      • Packing up to 462 cores in a single chip
      • Fermi can run multiple kernels simultaneously
      • Shared memory has been increased from 16 KB to 48KB
      • The number of streaming processors in one SM have been increased to 32.
      • ECC support
      • support for C++, virtual functions, function pointers, dynamic object

allocation, and C++ exception handling operations

  • CUDA Programming Guide 4.0 pg. 170-

NVIDIA ARCHITECTURE

  • Compute Capability
    • 1.x (1.0, 1.1, 1.2, 1.3)
      • A multiprocessors has 8 CUDA cores
      • 1 double-precision FP unit for double-precision FP arithmetic operations,
      • 2 special function units for single-precision FP transcendental functions

(these units can also handle single-precision floating-point multiplications),

  • 1 warp scheduler.
  • GPUDirect
    • NVIDIA GPUDirect™ Accelerated Communication With Network And

Storage Devices

NVIDIA ARCHITECTURE

  • GPUDirect
    • NVIDIA GPUDirect Peer-To-Peer (P2P) Communication Between

GPUs On The Same PCIe Bus.

NVIDIA ARCHITECTURE

GPU0 GPU1 GPU0 GPU

HARDWARE IMPLEMENTATION:

MEMORY ARCHITECTURE

  • The local, global, constant,

and texture spaces are regions

of device memory

  • Each multiprocessor has:
    • A set of 32-bit registers per

processor

  • On-chip shared memory
    • Where the shared memory

space resides

  • A read-only constant cache
    • To speed up access to the

constant memory space

  • A read-only texture cache
    • To speed up access to the

texture memory space 20

Device

Multiprocessor N

Multiprocessor 2 Multiprocessor 1

Device memory

Shared Memory

Instruction Unit Processor 1

Registers

Processor 2^ …

Registers

Processor M

Registers

Constant Cache

Texture Cache