From 53a51d05c37b16f8a74b73d73cce2733d89d3d19 Mon Sep 17 00:00:00 2001 From: Cristian-Vasile Achim <66278390+csccva@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:31:44 +0200 Subject: [PATCH] Update Readme.md --- exercises/sycl/12-basic-profiling/Readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/exercises/sycl/12-basic-profiling/Readme.md b/exercises/sycl/12-basic-profiling/Readme.md index 3c420e2..9fb424b 100644 --- a/exercises/sycl/12-basic-profiling/Readme.md +++ b/exercises/sycl/12-basic-profiling/Readme.md @@ -2,7 +2,12 @@ Start from the [skeleton](naive.cpp). Look for the lines `//TODO` -In this exercise you need to implement a basic measurement of the execution time for a kernel performing matrix-matrix multiplication. Compute the executiomn time of the kernel by taking the difference between the end of the execution of the kernel and the start of the execution. +In this exercise you need to implement a basic measurement of the execution time for a kernel performing matrix-matrix multiplication. +First modify the **queue** definition and enable profiling +```cpp +queue q{property::queue::enable_profiling{}}; +``` +Next set-up `sycl::event` object. the same way is done in the [previous exercise](/exercises/sycl/03-axpy/). Compute the execution time of the kernel by taking the difference between the end of the execution of the kernel and the start of the execution. ``` e.get_profiling_info() - e.get_profiling_info(); ```