Commit 51e8d95
authored
[SYCL][host_task] Align host_task event submission clock with start/end clock (#18377)
The submission time for host_task events was previously obtained using
`std::chrono::steady_clock`, while the command start and end times were
derived from `high_resolution_clock`. This discrepancy in clock epochs
led to meaningless duration calculations when users used submission time
as a reference.
This update standardizes the clock source by switching the submission
time to use `high_resolution_clock`, ensuring consistent and meaningful
timing results for host_task events.
Note: `steady_clock` is not related to wall clock. See
https://en.cppreference.com/w/cpp/chrono/steady_clock1 parent 495f397 commit 51e8d95
2 files changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
585 | | - | |
586 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
37 | 51 | | |
38 | 52 | | |
0 commit comments