Chapter 7

OpenCL device-side memory model

Abstract

This chapter presents OpenCL’s device-side memory model, including memory spaces, memory objects, and consistency models.

Keywords

global memory

local memory

constant memory

private memory

memory spaces

memory ordering

synchronization

barriers

fences

atomics

consistency

buffers

images

pipes

acquire

release

generic address space.

The device-side memory model defines the abstract memory spaces that work-items within an OpenCL application may target when executing a kernel. The memory model also defines the memory consistency that work-items can expect in each memory space. This chapter discusses each memory space in detail, describes the mapping of memory objects to memory spaces, and introduces ...

Get Heterogeneous Computing with OpenCL 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.