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 O’Reilly online learning.

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