Skip to content

WritingOpenCLKernels

Olivier Chafik edited this page Nov 10, 2022 · 1 revision

Notes and tips on how to write OpenCL kernels

Converting from C code

  • remove static qualifier
  • qualify pointers as either __global or __local (and don't change the qualification)
  • ban double values, use float values instead (many devices don't support doubles)