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(); ```