cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

ctwang_thomas
Journeyman III
Journeyman III

strangely exexcute earlier kernel in runtime

I am using SDK 2.4,CATALYST 11.6 in linux.

When I  edit the kernel.cl  and compile and run again,

I found the result based on the earlier kernel I made, not the newest .cl  file.

Is there something I missed?

Tags (1)
0 Kudos
Reply
2 Replies
Jawed
Adept II
Adept II

strangely exexcute earlier kernel in runtime

rename kernel.cl to kernel.off and see what happens when you run your program. It may be that the program is reading a different instance of the kernel.cl file.

0 Kudos
Reply
himanshu_gautam
Grandmaster
Grandmaster

strangely exexcute earlier kernel in runtime

if you are referring to the SDK samples, I would suggest you to edit the kernel file that is present with the executable rather than the one present with the solution file. You can also press rebuild after editing kernel and your edited kernel should be copied to the executable directory as a post build event.

0 Kudos
Reply