Skip to content

Commit

Permalink
[SYCL][Graph] Update to UR cmd-buf enqueue rename
Browse files Browse the repository at this point in the history
Reflects change in name of UR entry-point from
`urCommandBufferEnqueueExp` to `urEnqueueCommandBufferExp`
in oneapi-src/unified-runtime#2606
  • Loading branch information
EwanC committed Jan 23, 2025
1 parent 2ea15fb commit 6ac4ddc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sycl/cmake/modules/FetchUnifiedRuntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if(SYCL_UR_USE_FETCH_CONTENT)
CACHE PATH "Path to external '${name}' adapter source dir" FORCE)
endfunction()

set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git")
set(UNIFIED_RUNTIME_REPO "https://github.com/Bensuo/unified-runtime.git")
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/UnifiedRuntimeTag.cmake)

set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")
Expand Down
2 changes: 1 addition & 1 deletion sycl/cmake/modules/UnifiedRuntimeTag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Date: Wed Jan 22 15:54:22 2025 +0000
# Merge pull request #2193 from aarongreig/aaron/clarifyIsNativeHandleOwned
# Clarify spec around isNativeHandleOwned.
set(UNIFIED_RUNTIME_TAG 3f6dbf3e4bec2ba7bfe7e4cebe998b51852baadc)
set(UNIFIED_RUNTIME_TAG "cmd-buf_enqueue_refactor")
4 changes: 2 additions & 2 deletions sycl/source/detail/graph_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1058,8 +1058,8 @@ exec_graph_impl::enqueue(const std::shared_ptr<sycl::detail::queue_impl> &Queue,
ur_result_t Res =
Queue->getAdapter()
->call_nocheck<
sycl::detail::UrApiKind::urCommandBufferEnqueueExp>(
CommandBuffer, Queue->getHandleRef(), 0, nullptr, &UREvent);
sycl::detail::UrApiKind::urEnqueueCommandBufferExp>(
Queue->getHandleRef(), CommandBuffer, 0, nullptr, &UREvent);
NewEvent->setHandle(UREvent);
if (Res == UR_RESULT_ERROR_INVALID_QUEUE_PROPERTIES) {
throw sycl::exception(
Expand Down
4 changes: 2 additions & 2 deletions sycl/source/detail/scheduler/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3583,8 +3583,8 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
MEvent->setHostEnqueueTime();
ur_result_t Err =
MQueue->getAdapter()
->call_nocheck<UrApiKind::urCommandBufferEnqueueExp>(
CmdBufferCG->MCommandBuffer, MQueue->getHandleRef(),
->call_nocheck<UrApiKind::urEnqueueCommandBufferExp>(
MQueue->getHandleRef(), CmdBufferCG->MCommandBuffer,
RawEvents.size(), RawEvents.empty() ? nullptr : &RawEvents[0],
Event);
SetEventHandleOrDiscard();
Expand Down

0 comments on commit 6ac4ddc

Please sign in to comment.