Skip to content

Commit 00533e0

Browse files
[SYCL][ABI-Break] Remove deprecated barrier API (#10219)
1 parent f87be6f commit 00533e0

File tree

8 files changed

+5
-63
lines changed

8 files changed

+5
-63
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ set(SYCL_MAJOR_VERSION 7)
3636
set(SYCL_MINOR_VERSION 0)
3737
set(SYCL_PATCH_VERSION 0)
3838

39-
set(SYCL_DEV_ABI_VERSION 7)
39+
set(SYCL_DEV_ABI_VERSION 8)
4040
if (SYCL_ADD_DEV_VERSION_POSTFIX)
4141
set(SYCL_VERSION_POSTFIX "-${SYCL_DEV_ABI_VERSION}")
4242
endif()

sycl/include/sycl/handler.hpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,12 +2547,6 @@ class __SYCL_EXPORT handler {
25472547
setType(detail::CG::Barrier);
25482548
}
25492549

2550-
/// Prevents any commands submitted afterward to this queue from executing
2551-
/// until all commands previously submitted to this queue have entered the
2552-
/// complete state.
2553-
__SYCL2020_DEPRECATED("use 'ext_oneapi_barrier' instead")
2554-
void barrier() { ext_oneapi_barrier(); }
2555-
25562550
/// Prevents any commands submitted afterward to this queue from executing
25572551
/// until all events in WaitList have entered the complete state. If WaitList
25582552
/// is empty, then the barrier has no effect.
@@ -2561,15 +2555,6 @@ class __SYCL_EXPORT handler {
25612555
/// before barrier command can be executed.
25622556
void ext_oneapi_barrier(const std::vector<event> &WaitList);
25632557

2564-
/// Prevents any commands submitted afterward to this queue from executing
2565-
/// until all events in WaitList have entered the complete state. If WaitList
2566-
/// is empty, then the barrier has no effect.
2567-
///
2568-
/// \param WaitList is a vector of valid SYCL events that need to complete
2569-
/// before barrier command can be executed.
2570-
__SYCL2020_DEPRECATED("use 'ext_oneapi_barrier' instead")
2571-
void barrier(const std::vector<event> &WaitList);
2572-
25732558
/// Copies data from one memory region to another, each is either a host
25742559
/// pointer or a pointer within USM allocation accessible on this handler's
25752560
/// device.

sycl/include/sycl/queue.hpp

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -383,19 +383,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
383383
return submit([=](handler &CGH) { CGH.ext_oneapi_barrier(); }, CodeLoc);
384384
}
385385

386-
/// Prevents any commands submitted afterward to this queue from executing
387-
/// until all commands previously submitted to this queue have entered the
388-
/// complete state.
389-
///
390-
/// \param CodeLoc is the code location of the submit call (default argument)
391-
/// \return a SYCL event object, which corresponds to the queue the command
392-
/// group is being enqueued on.
393-
__SYCL2020_DEPRECATED("use 'ext_oneapi_submit_barrier' instead")
394-
event submit_barrier(
395-
const detail::code_location &CodeLoc = detail::code_location::current()) {
396-
return ext_oneapi_submit_barrier(CodeLoc);
397-
}
398-
399386
/// Prevents any commands submitted afterward to this queue from executing
400387
/// until all events in WaitList have entered the complete state. If WaitList
401388
/// is empty, then ext_oneapi_submit_barrier has no effect.
@@ -412,22 +399,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
412399
CodeLoc);
413400
}
414401

415-
/// Prevents any commands submitted afterward to this queue from executing
416-
/// until all events in WaitList have entered the complete state. If WaitList
417-
/// is empty, then submit_barrier has no effect.
418-
///
419-
/// \param WaitList is a vector of valid SYCL events that need to complete
420-
/// before barrier command can be executed.
421-
/// \param CodeLoc is the code location of the submit call (default argument)
422-
/// \return a SYCL event object, which corresponds to the queue the command
423-
/// group is being enqueued on.
424-
__SYCL2020_DEPRECATED("use 'ext_oneapi_submit_barrier' instead")
425-
event submit_barrier(
426-
const std::vector<event> &WaitList,
427-
const detail::code_location &CodeLoc = detail::code_location::current()) {
428-
return ext_oneapi_submit_barrier(WaitList, CodeLoc);
429-
}
430-
431402
/// Performs a blocking wait for the completion of all enqueued tasks in the
432403
/// queue.
433404
///

sycl/source/handler.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,6 @@ void handler::ext_oneapi_barrier(const std::vector<event> &WaitList) {
729729
[](const event &Event) { return detail::getSyclObjImpl(Event); });
730730
}
731731

732-
__SYCL2020_DEPRECATED("use 'ext_oneapi_barrier' instead")
733-
void handler::barrier(const std::vector<event> &WaitList) {
734-
handler::ext_oneapi_barrier(WaitList);
735-
}
736-
737732
using namespace sycl::detail;
738733
bool handler::DisableRangeRounding() {
739734
return SYCLConfig<SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING>::get();

sycl/test-e2e/Basic/enqueue_barrier.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main() {
1818
[&](sycl::handler &cgh) { cgh.single_task<class kernel2>([]() {}); });
1919

2020
// call handler::barrier()
21-
Q1.submit([&](sycl::handler &cgh) { cgh.barrier(); });
21+
Q1.submit([&](sycl::handler &cgh) { cgh.ext_oneapi_barrier(); });
2222

2323
Q1.submit(
2424
[&](sycl::handler &cgh) { cgh.single_task<class kernel3>([]() {}); });
@@ -38,7 +38,9 @@ int main() {
3838
[&](sycl::handler &cgh) { cgh.single_task<class kernel6>([]() {}); });
3939

4040
// call handler::barrier(const std::vector<event> &WaitList)
41-
Q3.submit([&](sycl::handler &cgh) { cgh.barrier({Event1, Event2}); });
41+
Q3.submit([&](sycl::handler &cgh) {
42+
cgh.ext_oneapi_barrier({Event1, Event2});
43+
});
4244

4345
Q3.submit(
4446
[&](sycl::handler &cgh) { cgh.single_task<class kernel7>([]() {}); });

sycl/test/abi/sycl_symbols_linux.dump

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4031,7 +4031,6 @@ _ZN4sycl3_V17handler28setStateExplicitKernelBundleEv
40314031
_ZN4sycl3_V17handler30memcpyFromHostOnlyDeviceGlobalEPvPKvbmm
40324032
_ZN4sycl3_V17handler6memcpyEPvPKvm
40334033
_ZN4sycl3_V17handler6memsetEPvim
4034-
_ZN4sycl3_V17handler7barrierERKSt6vectorINS0_5eventESaIS3_EE
40354034
_ZN4sycl3_V17handler8finalizeEv
40364035
_ZN4sycl3_V17handler8prefetchEPKvm
40374036
_ZN4sycl3_V17handlerC1ESt10shared_ptrINS0_3ext6oneapi12experimental6detail10graph_implEE

sycl/test/abi/sycl_symbols_windows.dump

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,6 @@
885885
?associateWithHandler@handler@_V1@sycl@@AEAAXPEAVSampledImageAccessorBaseHost@detail@23@W4image_target@23@@Z
886886
?associateWithHandler@handler@_V1@sycl@@AEAAXPEAVUnsampledImageAccessorBaseHost@detail@23@W4image_target@23@@Z
887887
?associateWithHandlerCommon@handler@_V1@sycl@@AEAAXV?$shared_ptr@VAccessorImplHost@detail@_V1@sycl@@@std@@H@Z
888-
?barrier@handler@_V1@sycl@@QEAAXAEBV?$vector@Vevent@_V1@sycl@@V?$allocator@Vevent@_V1@sycl@@@std@@@std@@@Z
889-
?barrier@handler@_V1@sycl@@QEAAXXZ
890888
?begin@exception_list@_V1@sycl@@QEBA?AV?$_Vector_const_iterator@V?$_Vector_val@U?$_Simple_types@Vexception_ptr@std@@@std@@@std@@@std@@XZ
891889
?begin@kernel_bundle_plain@detail@_V1@sycl@@IEBAPEBVdevice_image_plain@234@XZ
892890
?begin_recording@modifiable_command_graph@detail@experimental@oneapi@ext@_V1@sycl@@QEAA_NAEAVqueue@67@@Z
@@ -1333,8 +1331,6 @@
13331331
?start@HostProfilingInfo@detail@_V1@sycl@@QEAAXXZ
13341332
?start_fusion@fusion_wrapper@experimental@codeplay@ext@_V1@sycl@@QEAAXXZ
13351333
?stringifyErrorCode@detail@_V1@sycl@@YAPEBDH@Z
1336-
?submit_barrier@queue@_V1@sycl@@QEAA?AVevent@23@AEBUcode_location@detail@23@@Z
1337-
?submit_barrier@queue@_V1@sycl@@QEAA?AVevent@23@AEBV?$vector@Vevent@_V1@sycl@@V?$allocator@Vevent@_V1@sycl@@@std@@@std@@AEBUcode_location@detail@23@@Z
13381334
?submit_impl@queue@_V1@sycl@@AEAA?AVevent@23@V?$function@$$A6AXAEAVhandler@_V1@sycl@@@Z@std@@AEBUcode_location@detail@23@@Z
13391335
?submit_impl@queue@_V1@sycl@@AEAA?AVevent@23@V?$function@$$A6AXAEAVhandler@_V1@sycl@@@Z@std@@V123@AEBUcode_location@detail@23@@Z
13401336
?submit_impl_and_postprocess@queue@_V1@sycl@@AEAA?AVevent@23@V?$function@$$A6AXAEAVhandler@_V1@sycl@@@Z@std@@AEBUcode_location@detail@23@AEBV?$function@$$A6AX_N0AEAVevent@_V1@sycl@@@Z@6@@Z

sycl/test/warnings/sycl_2020_deprecations.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,6 @@ int main() {
170170
auto SL = sycl::INTEL::source_language::opencl_c;
171171
(void)SL;
172172

173-
// expected-warning@+1{{'submit_barrier' is deprecated: use 'ext_oneapi_submit_barrier' instead}}
174-
Queue.submit_barrier();
175-
176-
// expected-warning@+1{{'barrier' is deprecated: use 'ext_oneapi_barrier' instead}}
177-
Queue.submit([&](sycl::handler &CGH) { CGH.barrier(); });
178-
179173
sycl::multi_ptr<int, sycl::access::address_space::global_space,
180174
sycl::access::decorated::yes>
181175
a(nullptr);

0 commit comments

Comments
 (0)