Skip to content

Commit 059af6c

Browse files
committed
Put old interface removal behind preview
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 5f27871 commit 059af6c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sycl/include/sycl/queue.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2747,6 +2747,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
27472747
queue &Q, CommandGroupFunc &&CGF,
27482748
const sycl::detail::code_location &CodeLoc);
27492749

2750+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
27502751
/// TODO: Unused. Remove these when ABI-break window is open.
27512752
event submit_impl(std::function<void(handler &)> CGH,
27522753
const detail::code_location &CodeLoc);
@@ -2777,6 +2778,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
27772778
const detail::code_location &CodeLoc,
27782779
const detail::SubmitPostProcessF &PostProcess,
27792780
bool IsTopCodeLoc);
2781+
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
27802782

27812783
/// A template-free versions of submit.
27822784
event submit_with_event_impl(std::function<void(handler &)> CGH,

sycl/source/queue.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ event queue::mem_advise(const void *Ptr, size_t Length, int Advice,
180180
/*CallerNeedsEvent=*/true);
181181
}
182182

183+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
184+
/// TODO: Unused. Remove these when ABI-break window is open.
183185
event queue::submit_impl(std::function<void(handler &)> CGH,
184186
const detail::code_location &CodeLoc) {
185187
return submit_with_event_impl(CGH, {}, CodeLoc, true);
@@ -238,6 +240,7 @@ event queue::submit_impl_and_postprocess(
238240
return impl->submit(CGH, impl, SecondQueue.impl, CodeLoc, IsTopCodeLoc,
239241
&PostProcess);
240242
}
243+
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
241244

242245
event queue::submit_with_event_impl(std::function<void(handler &)> CGH,
243246
const detail::SubmissionInfo &SubmitInfo,

0 commit comments

Comments
 (0)