Skip to content

Commit 0b60a12

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 20d4bec commit 0b60a12

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
@@ -6,4 +6,4 @@
66
# Merge pull request #2578 from Bensuo/ewan/remove_command_ref_counting
77
#
88
# Remove command-buffer command handle ref counting
9-
set(UNIFIED_RUNTIME_TAG 14f4a3ba70b91b3adc411ec6bfc8ae86e948a990)
9+
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)