From 4bf7ad404e8b4711f4ea6482b621a7d38c545b98 Mon Sep 17 00:00:00 2001 From: Beatriz Navidad Vilches Date: Wed, 5 Jun 2024 06:53:44 +0000 Subject: [PATCH] Fix kernel execution time report --- samples/extensions/khr/externalmemory/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/extensions/khr/externalmemory/main.c b/samples/extensions/khr/externalmemory/main.c index f00b7036..d0d3bd28 100644 --- a/samples/extensions/khr/externalmemory/main.c +++ b/samples/extensions/khr/externalmemory/main.c @@ -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)