cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Pennycook
Journeyman III

CL_INVALID_KERNEL_NAME with APP SDK 2.3 [Solved]

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?

EDIT:

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) {

0 Likes
1 Reply
himanshu_gautam
Grandmaster

I am not sure if anything can be determined by the kernel signature you provided. Please post a valid testcase so issue can be reproduced.

Please post your system info: CPU,GPU,SDK,DRIVER,OS.

Are you able to run other SDK samples?

0 Likes