Chapter 7. OpenCL C Programming

To support cross platform compatibility across a large combination of OpenCL devices, every OpenCL device should be compliant to a standard. OpenCL C language specification is based out of the C99 standard (ISO/IEC 9899:1999). Besides this there are certain restrictions, which are applicable to all the OpenCL C kernels. A compliant C kernel code is compiled by the OpenCL runtime compiler using the clBuildProgram function. In this chapter we will discuss the specifications and restrictions for writing an OpenCL compliant C kernel code. The following bullet list states the topics which will be discussed in this chapter:

  • Built-in data types
  • Conversions and type casting
  • Address space qualifiers
  • Function qualifiers
  • Built-in ...

Get OpenCL Programming by Example 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.