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
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ ur_exp_command_buffer_handle_t_::ur_exp_command_buffer_handle_t_(
const ur_exp_command_buffer_desc_t *desc)
: commandListManager(
context, device,
std::forward<v2::raii::command_list_unique_handle>(commandList)),
std::forward<v2::raii::command_list_unique_handle>(commandList),
v2::EVENT_FLAGS_COUNTER, nullptr),
isUpdatable(desc ? desc->isUpdatable : false) {}

ur_result_t ur_exp_command_buffer_handle_t_::finalizeCommandBuffer() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ ur_command_list_manager::getWaitListView(const ur_event_handle_t *phWaitEvents,
ze_event_handle_t
ur_command_list_manager::getSignalEvent(ur_event_handle_t *hUserEvent,
ur_command_t commandType) {
if (hUserEvent && queue) {
if (hUserEvent) {
*hUserEvent = eventPool->allocate();
(*hUserEvent)->resetQueueAndCommand(queue, commandType);
return (*hUserEvent)->getZeEvent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ struct ur_command_list_manager {
ur_command_list_manager(ur_context_handle_t context,
ur_device_handle_t device,
v2::raii::command_list_unique_handle &&commandList,
v2::event_flags_t flags = v2::EVENT_FLAGS_COUNTER,
ur_queue_t_ *queue = nullptr);
v2::event_flags_t flags, ur_queue_t_ *queue);
ur_command_list_manager(ur_command_list_manager &&src) = default;
~ur_command_list_manager();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ur_queue_immediate_in_order_t::ur_queue_immediate_in_order_t(
}
}
}),
eventFlagsFromQueueFlags(flags)) {}
eventFlagsFromQueueFlags(flags), this) {}

ze_event_handle_t ur_queue_immediate_in_order_t::getSignalEvent(
locked<ur_command_list_manager> &commandList, ur_event_handle_t *hUserEvent,
Expand Down