Chapter 6

OpenCL host-side memory model

Abstract

This chapter presents OpenCL’s host-side memory model, relating to the allocation and management of memory objects. It also provides an introduction to OpenCL’s support for shared virtual memory.

Keywords

buffer

image

pipe

shared virtual memory

memory management

memory allocation

In order to be portable across a variety of hardware, OpenCL provides a well-defined abstract memory model. The abstract memory model is general enough to map to a wide range of devices, yet provides strong enough memory ordering guarantees to express classes of parallelism important to developers. Providing an abstract memory model also serves as a clean interface between programmers and hardware. Using the abstract ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.