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.
Written by Guilherme Alcarde Gallo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Opencl
Authors
Related Tags
#opencl
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#