Skip to content

Commit 28d7280

Browse files
author
Jaime Arteaga
committed
Port Do not use piGetDeviceAndHostTimer for only host time query
intel#8996 Signed-off-by: Jaime Arteaga <[email protected]>
1 parent 7f8a6c5 commit 28d7280

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero_event.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urEventGetProfilingInfo(
426426
case UR_PROFILING_INFO_COMMAND_QUEUED:
427427
case UR_PROFILING_INFO_COMMAND_SUBMIT:
428428
// Note: No users for this case
429-
// TODO: Implement commmand submission time when needed,
430-
// by recording device timestamp (using zeDeviceGetGlobalTimestamps)
431-
// before submitting command to device
429+
// The "command_submit" time is implemented by recording submission
430+
// timestamp with a call to piGetDeviceAndHostTimer before command enqueue.
431+
//
432432
return ReturnValue(uint64_t{0});
433433
default:
434434
urPrint("urEventGetProfilingInfo: not supported ParamName\n");

0 commit comments

Comments
 (0)