Skip to content

Commit e202bf0

Browse files
committed
[L0 v2] add missing urCommadBufferEnqueueExp function
This is a regression after #2688
1 parent ea8bbf6 commit e202bf0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/adapters/level_zero/v2/command_buffer.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,15 @@ urCommandBufferGetInfoExp(ur_exp_command_buffer_handle_t hCommandBuffer,
193193
return exceptionToResult(std::current_exception());
194194
}
195195

196+
ur_result_t urCommandBufferEnqueueExp(
197+
ur_exp_command_buffer_handle_t CommandBuffer, ur_queue_handle_t UrQueue,
198+
uint32_t NumEventsInWaitList, const ur_event_handle_t *EventWaitList,
199+
ur_event_handle_t *Event) try {
200+
return UrQueue->get().enqueueCommandBuffer(
201+
CommandBuffer->commandListManager.getZeCommandList(), Event,
202+
NumEventsInWaitList, EventWaitList);
203+
} catch (...) {
204+
return exceptionToResult(std::current_exception());
205+
}
206+
196207
} // namespace ur::level_zero

0 commit comments

Comments
 (0)