Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
csccva authored Nov 26, 2024
1 parent 42685f0 commit 53a51d0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion exercises/sycl/12-basic-profiling/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<info::event_profiling::command_end>() - e.get_profiling_info<info::event_profiling::command_start>();
```
Expand Down

0 comments on commit 53a51d0

Please sign in to comment.