I have tried to profile the code but codeXL just refuses to profile.
-if i try the time based profiling then the program doesn't load.
-if i set the profiler to profile for the gpu it tells me that the program doesn't use openCL.
-if i attach to the program then no samples will be made at all.
i have attached a very simple example program