I've got an OpenCL program that utilizes the enqueue_kernel function inside my parent kernel.
Currently, after enqueue_kernel is called, enqueue_kernel is returning "-11" as its error code.
The CLK_XXX error codes (enqueue_kernel's return values) listed in the spec are not enumerated anywhere in the docs or header files, so I don't know which code I'm getting. How can I get my kernel to return meaningful errors?
Also, the spec states that by enabling the "-g" flag during clBuildProgram, enqueue_kernel will return more verbose codes. However, when I add "-g" to my list of flags, I get a compilation error saying "-g" flag is not recognized. I have the latest NVidia drivers which officially support OpenCL1.2, and unofficially support OpenCL2.0 (I'm not using any unsupported functions from 2.0 that I'm aware of, only the unofficially supported ones). I'm guessing I get a compilation error with "-g" because it's not officially or unofficially supported by NVidia yet. Is there a way to get NVidia's latest drivers to spit out better errors? A different flag, perhaps?
As a side note, I can get enqueue_kernel working for some child kernels, and not others...so it's not a matter of enqueue_kernel simply being unsupported on my drivers/hardware, hence the need to understand the error codes I'm getting.