Skip to content

Commit 0b6e43b

Browse files
committed
[L0 v2] add missing urCommadBufferEnqueueExp function
This is a regression after #2688
1 parent 98756a2 commit 0b6e43b

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

scripts/templates/queue_api.hpp.mako

-4
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,4 @@ struct ur_queue_t_ {
3737
virtual ${x}_result_t ${th.transform_queue_related_function_name(n, tags, obj, format=["type"])} = 0;
3838
%endif
3939
%endfor
40-
41-
virtual ur_result_t
42-
enqueueCommandBuffer(ze_command_list_handle_t, ur_event_handle_t *,
43-
uint32_t, const ur_event_handle_t *) = 0;
4440
};

source/adapters/level_zero/v2/command_buffer.cpp

+11
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

source/adapters/level_zero/v2/queue_api.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,4 @@ struct ur_queue_t_ {
160160
const ur_exp_enqueue_native_command_properties_t *,
161161
uint32_t, const ur_event_handle_t *,
162162
ur_event_handle_t *) = 0;
163-
164-
virtual ur_result_t enqueueCommandBuffer(ze_command_list_handle_t,
165-
ur_event_handle_t *, uint32_t,
166-
const ur_event_handle_t *) = 0;
167163
};

0 commit comments

Comments
 (0)