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 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.