Skip to content

Commit bf2b21e

Browse files
authored
[SYCL][Graph] Remove calls to urCommandBufferReleaseCommandExp (#16670)
Reflects UR change from oneapi-src/unified-runtime#2578 where we no longer need to manually manage the lifetimes of the individual commands in a UR command-buffer.
1 parent eaa9c63 commit bf2b21e

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# commit 3a1b4c7b9ba952fad6f6ad36c01101bbf368347b
2-
# Merge: c270a6b8 264d0468
1+
# commit 14f4a3ba70b91b3adc411ec6bfc8ae86e948a990
2+
# Merge: 4643d1c0 3ed86fae
33
# Author: Kenneth Benzie (Benie) <[email protected]>
4-
# Date: Tue Jan 28 15:16:58 2025 +0000
5-
# Merge pull request #2594 from kbenzie/benie/cl-core-functions-no-dlopen
6-
# Fix invalid use of dlopen()
7-
set(UNIFIED_RUNTIME_TAG 3a1b4c7b9ba952fad6f6ad36c01101bbf368347b)
4+
# Date: Wed Jan 29 13:55:27 2025 +0000
5+
#
6+
# Merge pull request #2578 from Bensuo/ewan/remove_command_ref_counting
7+
#
8+
# Remove command-buffer command handle ref counting
9+
set(UNIFIED_RUNTIME_TAG 14f4a3ba70b91b3adc411ec6bfc8ae86e948a990)

sycl/source/detail/graph_impl.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -951,15 +951,6 @@ exec_graph_impl::~exec_graph_impl() {
951951
}
952952
}
953953
}
954-
955-
for (auto &Iter : MCommandMap) {
956-
if (auto Command = Iter.second; Command) {
957-
ur_result_t Res = Adapter->call_nocheck<
958-
sycl::detail::UrApiKind::urCommandBufferReleaseCommandExp>(Command);
959-
(void)Res;
960-
assert(Res == UR_RESULT_SUCCESS);
961-
}
962-
}
963954
} catch (std::exception &e) {
964955
__SYCL_REPORT_EXCEPTION_TO_STREAM("exception in ~exec_graph_impl", e);
965956
}

0 commit comments

Comments
 (0)