Last Updated: February 25, 2016
·
295
· gagallo7

OpenCL - Don't use the word "_image" in a kernel

Don't use the _image word in a OpenCL 1.1 kernel, because it may be¹ a reserved word.
If you try to run a program with some variable or typedef named _image, the program will freeze and no error/warning will be displayed.

One week to discover this problem that challenged me 2 months ago.

¹ I didn't find anything about the _image keyword in the OpenCL's manual/reference.