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 30, 2025
1 parent 20d4bec commit 0b60a12
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 @@ -6,4 +6,4 @@
# Merge pull request #2578 from Bensuo/ewan/remove_command_ref_counting
#
# Remove command-buffer command handle ref counting
set(UNIFIED_RUNTIME_TAG 14f4a3ba70b91b3adc411ec6bfc8ae86e948a990)
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 @@ -1049,8 +1049,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 @@ -3601,8 +3601,8 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
MEvent->setHostEnqueueTime();
if (auto Result =
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);
Result != UR_RESULT_SUCCESS)
Expand Down

0 comments on commit 0b60a12

Please sign in to comment.