Skip to content

Commit

Permalink
Fix kernel execution time report
Browse files Browse the repository at this point in the history
  • Loading branch information
Beanavil committed Jun 5, 2024
1 parent b8e7078 commit f220052
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions samples/extensions/khr/externalmemory/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,7 @@ int main(int argc, char* argv[])
printf("Kernel execution time as seen by host: %llu us.\n",
(unsigned long long)(dev_time + 500) / 1000);

printf("Kernel execution time as measured by device:\n");
printf("\t%llu us.\n",
printf("Kernel execution time as measured by device: %llu us.\n",
(unsigned long long)(cl_util_get_event_duration(
kernel_run, CL_PROFILING_COMMAND_START,
CL_PROFILING_COMMAND_END, &error)
Expand Down

0 comments on commit f220052

Please sign in to comment.