Hello!
I am trying to do my homework, but there is a problem.
Task is to measure full opencl kernel execution time and measure each kernel thread time.

I read this http://software.intel.com/sites/land...ing_Events.htm and learned how to measure full execution time. But i cant find anything about measure each kernel thread time.

I'm trying to use standart methods in kernel, such as gettimeofday(i work in FC17), but there is no successfull - when i'm trying to make import <sys/time.h> in kernel, i had an errors, when trying to run program, smth like this:catastrophic error, type long long is undefined.

Is there a possibility to measure each kernel thread execution time?
Thanks.