Skip to content

Commit 76a3898

Browse files
author
Jaime Arteaga
authored
[SYCL][L0] Correctly use global timestamps, instead of context (#6122)
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
1 parent 861161a commit 76a3898

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5331,15 +5331,15 @@ pi_result piEventGetProfilingInfo(pi_event Event, pi_profiling_info ParamName,
53315331
case PI_PROFILING_INFO_COMMAND_START: {
53325332
ZE_CALL(zeEventQueryKernelTimestamp, (Event->ZeEvent, &tsResult));
53335333
uint64_t ContextStartTime =
5334-
(tsResult.context.kernelStart & TimestampMaxValue) * ZeTimerResolution;
5334+
(tsResult.global.kernelStart & TimestampMaxValue) * ZeTimerResolution;
53355335
return ReturnValue(ContextStartTime);
53365336
}
53375337
case PI_PROFILING_INFO_COMMAND_END: {
53385338
ZE_CALL(zeEventQueryKernelTimestamp, (Event->ZeEvent, &tsResult));
53395339

53405340
uint64_t ContextStartTime =
5341-
(tsResult.context.kernelStart & TimestampMaxValue);
5342-
uint64_t ContextEndTime = (tsResult.context.kernelEnd & TimestampMaxValue);
5341+
(tsResult.global.kernelStart & TimestampMaxValue);
5342+
uint64_t ContextEndTime = (tsResult.global.kernelEnd & TimestampMaxValue);
53435343

53445344
//
53455345
// Handle a possible wrap-around (the underlying HW counter is < 64-bit).

0 commit comments

Comments
 (0)