O'Reilly logo

OpenCL Programming by Example by Koushik Bhattacharyya, Ravishekhar Banger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required