summaryrefslogtreecommitdiff
path: root/src/cl_event.c
diff options
context:
space:
mode:
authorLi Peng <peng.li@linux.intel.com>2014-05-26 19:25:59 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-05-30 14:53:28 +0800
commit0db692659e4bc6ce25c19cb56ae07f2c46425d6e (patch)
tree92fac8f676d67cc1576f8d3a5c8540c987abfa63 /src/cl_event.c
parentf9074f9ff4e24da2ee92fc84a8dcff0604346d28 (diff)
Fix timestamp on HASWELL
The GPU timestamp should be lower 36 bit on HASWELL Signed-off-by: Li Peng <peng.li@intel.com> Reviewed-by: He Junyan <junyan.he@inbox.com>
Diffstat (limited to 'src/cl_event.c')
-rw-r--r--src/cl_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cl_event.c b/src/cl_event.c
index 101e735f..bcd4a6fb 100644
--- a/src/cl_event.c
+++ b/src/cl_event.c
@@ -498,11 +498,11 @@ cl_int cl_event_get_timestamp(cl_event event, cl_profiling_info param_name)
event->timestamp[param_name - CL_PROFILING_COMMAND_QUEUED] = ret_val;
return CL_SUCCESS;
} else if(param_name == CL_PROFILING_COMMAND_START) {
- cl_gpgpu_event_get_exec_timestamp(event->gpgpu_event, 0, &ret_val);
+ cl_gpgpu_event_get_exec_timestamp(gpgpu, event->gpgpu_event, 0, &ret_val);
event->timestamp[param_name - CL_PROFILING_COMMAND_QUEUED] = ret_val;
return CL_SUCCESS;
} else if (param_name == CL_PROFILING_COMMAND_END) {
- cl_gpgpu_event_get_exec_timestamp(event->gpgpu_event, 1, &ret_val);
+ cl_gpgpu_event_get_exec_timestamp(gpgpu, event->gpgpu_event, 1, &ret_val);
event->timestamp[param_name - CL_PROFILING_COMMAND_QUEUED] = ret_val;
return CL_SUCCESS;
}