email
menu

The OpenCL Programming Book

Introducing published books

The OpenCL Programming Book

The OpenCL Programming Book starts with the basics of parallelization, then covers the main concepts and terminology, also teaching how to set up a development environment for OpenCL, while concluding with a walkthrough of the source code of an implementation of the fast Fourier transform (FFT) and Mersenne twister algorithms written in OpenCL.

The revised edition includes a summary of changes made in the OpenCL Specification, version 1.2, including a reference of new corresponding functions, and updates to the execution environments.

It is highly recommended for those wishing to get started with programming in OpenCL.

Purchase e-book

The OpenCL Programming Book

Publisher
Fixstars
Author
Ryoji Tsuchiyama, Takashi Nakamura, Takuro Iizuka, Akihiro Asahara, Jeongdo Son, Satoshi Miki
Translator
Satoru Tagawa
Publish Date
4/26/2012 (Original: 3/31/2010)
Supported
OpenCL Version OpenCL 1.2
Pages
324 pages
Price
USD $12.85 (Amazon Kindle)

The book starts with the basics of parallelization, covers the main concepts, grammar, and setting up a development environment for OpenCL, concluding with source-code walkthroughs of the FFT and Mersenne Twister algorithms written in OpenCL. It is highly recommended for those wishing to get started on programming in OpenCL.

Foreword

OpenCL is an exciting new open standard that is bringing the power of programming complex multi-processor systems to a much wider audience than ever before. Khronos is fully committed not only to creating the specification but also fostering a rich and diverse OpenCL ecosystem. A vital piece of any living standard is enabling the industry to understand it truly, letting it tap into the full potential power of the technology.

Fixstars is a skilled OpenCL practitioner and is ideally qualified to create state-of-the-art OpenCL educational materials. I wholeheartedly recommend this book to anyone seeking to understand and start using the amazing power of OpenCL.

Neil Trevett President, The Khronos Group
Buy Now picture_as_pdf Read Sample

Sample Code

The OpenCL Programming Book 1.2

The sample code contained in the book can be downloaded from here:

Download (zip:2.16MB)

Requirements to execute the sample code

The sample code was tested with following environments:

  • NVIDIA CUDA SDK 4.1 + NVIDIA C2050
  • AMD APP SDK 2.6 + AMD FirePro v7900
  • Intel OpenCL SDK 1.5 + Intel Core i7 2600

And operating systems:

  • Linux: Ubuntu 11.04 x86_64
  • Mac: Mac OS X Lion 10.7
  • Windows: Windows 7 Pro 64-bit (tested only with AMD's OpenCL)

If you use an NVIDIA GPU on Windows, please turn off TDR to disable graphics timeout. For more information, please visit:
http://www.microsoft.com/whdc/device/display/wddm_timeout.mspx open_in_new

Limitation specific to sample code 6-2/4

Due to hardware resources used within the kernel, the NVIDIA GPU must contain more than 16 CUDA cores.

The OpenCL Programming Book 1.0

The sample code contained in the book can be downloaded here:

Download (zip:2.16MB)

Limitations in executing the sample code

The sample code will not run on the OpenCL environment that comes with the CUDA SDK 3.0. Please download the OpenCL SDK from the link below.
https://developer.nvidia.com/opencl open_in_new

Also, when using an NVIDIA GPU on Windows, the TDR (a graphics timeout function) must be turned off. For details, please visit the link below.
http://www.microsoft.com/whdc/device/display/wddm_timeout.mspx open_in_new

Limitation specific to sample code 6-2/4

Due to hardware resources used within the kernel, the NVIDIA GPU must contain more than 16 CUDA cores.

FREE HTML version

Older version has been published for FREE!

arrow_upward

Fixstars  Solutions

Social Links