Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion source/adapters/level_zero/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ ur_result_t urEventGetProfilingInfo(

// For timestamped events we have the timestamps ready directly on the event
// handle, so we short-circuit the return.
if (isTimestampedEvent) {
// We don't support user events with timestamps due to requiring the UrQueue.
if (isTimestampedEvent && Event->UrQueue) {
uint64_t ContextStartTime = Event->RecordEventStartTimestamp;
switch (PropName) {
case UR_PROFILING_INFO_COMMAND_QUEUED:
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/level_zero/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,7 @@ ur_result_t _ur_buffer::getZeHandle(char *&ZeHandle, access_mode_t AccessMode,
nullptr, 0u, nullptr));
}
if (waitlist.ZeEventList) {
delete waitlist.ZeEventList;
delete[] waitlist.ZeEventList;
}
}
Allocation.Valid = true;
Expand Down
Loading