Chapter 3

Introduction to OpenCL

Abstract

This chapter provides an introduction to the basics of using the OpenCL standard when developing parallel programs. It describes the different abstraction models defined in the standard and also presents a basic example of an OpenCL program to place some of the abstraction in context. It also provides an example of the OpenCL C++ application programming interface.

Keywords

OpenCL

parallel programming

parallel programming abstractions

heterogeneous computing

vector addition

3.1 Introduction

This chapter introduces OpenCL, the programming fabric that will allow us to weave our application to execute concurrently. Programmers familiar with C and C++ should have little trouble understanding the OpenCL ...

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.