File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,19 @@ class SyclTimer:
46
46
sycl_dt, wall_dt = timer.dt
47
47
48
48
Remark:
49
- The timer synchronizes the queue at the entrance and the
50
- exit of the context.
49
+ The timer submits barriers to the queue at the entrance and the
50
+ exit of the context and uses profiling information from events
51
+ associated with these submissions to perform the timing. Thus
52
+ :class:`dpctl.SyclTimer` requires the queue with "enable_profiling"
53
+ property. In order to be able to collect the profiling information
54
+ the property `dt` ensures that both submitted barriers complete
55
+ their execution and thus effectively synchronizing the queue.
51
56
52
57
Args:
53
- host_timer (callable): A callable such that host_timer() returns current
54
- host time in seconds.
55
- time_scale (int, float): Ratio of the unit of time of interest and
56
- one second.
58
+ host_timer (callable): A callable such that host_timer() returns current
59
+ host time in seconds.
60
+ time_scale (int, float): Ratio of the unit of time of interest and
61
+ one second.
57
62
"""
58
63
59
64
def __init__ (self , host_timer = timeit .default_timer , time_scale = 1 ):
You can’t perform that action at this time.
0 commit comments