Skip to content

Commit 2954dac

Browse files
committed
[SYCL][Graph] Update to UR cmd-buf enqueue rename
Reflects change in name of UR entry-point from `urCommandBufferEnqueueExp` to `urEnqueueCommandBufferExp` in oneapi-src/unified-runtime#2606
1 parent 71ca51f commit 2954dac

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

sycl/cmake/modules/FetchUnifiedRuntime.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ if(SYCL_UR_USE_FETCH_CONTENT)
116116
CACHE PATH "Path to external '${name}' adapter source dir" FORCE)
117117
endfunction()
118118

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

122122
set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")

sycl/cmake/modules/UnifiedRuntimeTag.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Date: Fri Jan 31 10:15:03 2025 +0000
55
# Merge pull request #2575 from DBDuncan/duncan/extend-copies
66
# [CUDA][Bindless] Add support for device to device pitched copies and host to host copies
7-
set(UNIFIED_RUNTIME_TAG e2df8acd37c3c159364cfdf9dfdc1be35b71779e)
7+
set(UNIFIED_RUNTIME_TAG "cmd-buf_enqueue_refactor")

sycl/source/detail/graph_impl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1049,8 +1049,8 @@ exec_graph_impl::enqueue(const std::shared_ptr<sycl::detail::queue_impl> &Queue,
10491049
ur_result_t Res =
10501050
Queue->getAdapter()
10511051
->call_nocheck<
1052-
sycl::detail::UrApiKind::urCommandBufferEnqueueExp>(
1053-
CommandBuffer, Queue->getHandleRef(), 0, nullptr, &UREvent);
1052+
sycl::detail::UrApiKind::urEnqueueCommandBufferExp>(
1053+
Queue->getHandleRef(), CommandBuffer, 0, nullptr, &UREvent);
10541054
NewEvent->setHandle(UREvent);
10551055
if (Res == UR_RESULT_ERROR_INVALID_QUEUE_PROPERTIES) {
10561056
throw sycl::exception(

sycl/source/detail/scheduler/commands.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3601,8 +3601,8 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
36013601
MEvent->setHostEnqueueTime();
36023602
if (auto Result =
36033603
MQueue->getAdapter()
3604-
->call_nocheck<UrApiKind::urCommandBufferEnqueueExp>(
3605-
CmdBufferCG->MCommandBuffer, MQueue->getHandleRef(),
3604+
->call_nocheck<UrApiKind::urEnqueueCommandBufferExp>(
3605+
MQueue->getHandleRef(), CmdBufferCG->MCommandBuffer,
36063606
RawEvents.size(),
36073607
RawEvents.empty() ? nullptr : &RawEvents[0], Event);
36083608
Result != UR_RESULT_SUCCESS)

0 commit comments

Comments
 (0)