Skip to content

Commit

Permalink
Remove copy command list fence
Browse files Browse the repository at this point in the history
  • Loading branch information
Bensuo committed Jun 6, 2024
1 parent 181ac97 commit 53694a4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions source/adapters/level_zero/command_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1227,19 +1227,15 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferEnqueueExp(
ZE2UR_CALL(zeCommandQueueExecuteCommandLists,
(ZeCommandQueue, 1, &CommandBuffer->ZeCommandList, ZeFence));

// The Copy command-list is submitted to the main copy queue iif it is not
// The Copy command-list is submitted to the main copy queue if it is not
// empty.
if (!CommandBuffer->MCopyCommandListEmpty) {
ze_fence_handle_t ZeCopyFence;
ZeStruct<ze_fence_desc_t> ZeCopyFenceDesc;
auto &QGroupCopy = Queue->getQueueGroup(true);
uint32_t QueueGroupOrdinal;
auto &ZeCopyCommandQueue = QGroupCopy.getZeQueue(&QueueGroupOrdinal);
ZE2UR_CALL(zeFenceCreate, (ZeCopyCommandQueue, &ZeFenceDesc, &ZeCopyFence));
CommandBuffer->ZeFencesList.push_back(ZeCopyFence);
ZE2UR_CALL(zeCommandQueueExecuteCommandLists,
(ZeCopyCommandQueue, 1, &CommandBuffer->ZeCopyCommandList,
ZeCopyFence));
ZE2UR_CALL(
zeCommandQueueExecuteCommandLists,
(ZeCopyCommandQueue, 1, &CommandBuffer->ZeCopyCommandList, nullptr));
}

// Execution event for this enqueue of the UR command-buffer
Expand Down

0 comments on commit 53694a4

Please sign in to comment.