You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[UR] Make each profiling info variant for urEventGetProfilingInfo optional and improve its conformance test (#17067)
Migrated from oneapi-src/unified-runtime#2533
This patch turns all of the values returned by urEventGetProfilingInfo
to be optional and updates adapters to handle this by returning the
appropriate enum when it is not supported.
The tests have also been updated, to ensure that returning a counter of
"0" or values equal to the previous profiling event is no longer
considered a failure.
Copy file name to clipboardExpand all lines: unified-runtime/scripts/core/event.yml
+7-5
Original file line number
Diff line number
Diff line change
@@ -121,15 +121,15 @@ name: $x_profiling_info_t
121
121
typed_etors: True
122
122
etors:
123
123
- name: COMMAND_QUEUED
124
-
desc: "[uint64_t] A 64-bit value of current device counter in nanoseconds when the event is enqueued"
124
+
desc: "[uint64_t][optional-query] A 64-bit value of current device counter in nanoseconds when the event is enqueued"
125
125
- name: COMMAND_SUBMIT
126
-
desc: "[uint64_t] A 64-bit value of current device counter in nanoseconds when the event is submitted"
126
+
desc: "[uint64_t][optional-query] A 64-bit value of current device counter in nanoseconds when the event is submitted"
127
127
- name: COMMAND_START
128
-
desc: "[uint64_t] A 64-bit value of current device counter in nanoseconds when the event starts execution"
128
+
desc: "[uint64_t][optional-query] A 64-bit value of current device counter in nanoseconds when the event starts execution"
129
129
- name: COMMAND_END
130
-
desc: "[uint64_t] A 64-bit value of current device counter in nanoseconds when the event has finished execution"
130
+
desc: "[uint64_t][optional-query] A 64-bit value of current device counter in nanoseconds when the event has finished execution"
131
131
- name: COMMAND_COMPLETE
132
-
desc: "[uint64_t] A 64-bit value of current device counter in nanoseconds when the event and any child events enqueued by this event on the device have finished execution"
132
+
desc: "[uint64_t][optional-query] A 64-bit value of current device counter in nanoseconds when the event and any child events enqueued by this event on the device have finished execution"
0 commit comments