Discussion created by Pennycook on Mar 23, 2011
Latest reply on Mar 23, 2011 by himanshu.gautam

I have a kernel that works perfectly when compiled for the CPU using version 2.2 of the SDK.  When I try and compile it using version 2.3, however, I get a CL_INVALID_KERNEL_NAME error.

I can't figure out why.

Compilation fails even when the kernel is empty.

Am I using some deprecated functionality, or is this a bug?


As is always the way with these things, I've just located the issue.

The clBuildProgram() in Version 2.2 of the SDK skips over compile flags that it doesn't recognise, printing a warning into the build log; Version 2.3 fails but doesn't explain why.

I had "-cl-nv-opt-level=3" and "-cl-nv-verbose" in the options list (for when the kernels are built for NVIDIA hardware).

__kernel void blts_kernel( __global double* v, __global const double* u, __global const int* wavefront_offsets_2d, __global const int* wavefront_offsets_3d, __global const int* columns, __global const int* rows, __global const int* thread_mapping, __const int wavefront, __const int starting_k) {