Appendix A

An introduction to OpenCL

Abstract

This chapter introduces OpenCL to CUDA programmers. It shows the direct correspondence between OpenCL concepts and CUDA concepts. It also presents a direct correspondence between OpenCL device architecture and CUDA device architecture. It uses the Direct Coulomb Summation kernel to illustrate the practical use of OpenCL features.

Keywords

OpenCL; Open Compute Language; NDRange; work group; work item; kernel; context; compute unit; command queue; standard

Chapter Outline

Get Programming Massively Parallel Processors, 3rd Edition 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.