Skip to content

Commit

Permalink
[SYCL] Remove queue::discard_or_return (#14550)
Browse files Browse the repository at this point in the history
Was marked for the removal during ABI Breaking window. There is
`queue_impl::discard_or_return` already.
  • Loading branch information
aelovikov-intel committed Jul 12, 2024
1 parent 46528f9 commit 71a144a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions sycl/include/sycl/queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2728,11 +2728,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
#endif // __SYCL_USE_FALLBACK_ASSERT
}

/// Checks if the event needs to be discarded and if so, discards it and
/// returns a discarded event. Otherwise, it returns input event.
/// TODO: move to impl class in the next ABI Breaking window
event discard_or_return(const event &Event);

// Function to postprocess submitted command
// Arguments:
// bool IsKernel - true if the submitted command was kernel, false otherwise
Expand Down
8 changes: 0 additions & 8 deletions sycl/source/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,6 @@ event queue::mem_advise(const void *Ptr, size_t Length, int Advice,
/*CallerNeedsEvent=*/true);
}

event queue::discard_or_return(const event &Event) {
if (!(impl->MDiscardEvents))
return Event;
using detail::event_impl;
auto Impl = std::make_shared<event_impl>(event_impl::HES_Discarded);
return detail::createSyclObjFromImpl<event>(Impl);
}

event queue::submit_impl(std::function<void(handler &)> CGH,
const detail::code_location &CodeLoc) {
return impl->submit(CGH, impl, CodeLoc);
Expand Down
1 change: 0 additions & 1 deletion sycl/test/abi/sycl_symbols_linux.dump
Original file line number Diff line number Diff line change
Expand Up @@ -3132,7 +3132,6 @@ _ZN4sycl3_V15queue10wait_proxyERKNS0_6detail13code_locationE
_ZN4sycl3_V15queue11submit_implESt8functionIFvRNS0_7handlerEEERKNS0_6detail13code_locationE
_ZN4sycl3_V15queue11submit_implESt8functionIFvRNS0_7handlerEEES1_RKNS0_6detail13code_locationE
_ZN4sycl3_V15queue15ext_oneapi_prodEv
_ZN4sycl3_V15queue17discard_or_returnERKNS0_5eventE
_ZN4sycl3_V15queue18throw_asynchronousEv
_ZN4sycl3_V15queue20memcpyToDeviceGlobalEPvPKvbmmRKSt6vectorINS0_5eventESaIS6_EE
_ZN4sycl3_V15queue20wait_and_throw_proxyERKNS0_6detail13code_locationE
Expand Down
1 change: 0 additions & 1 deletion sycl/test/abi/sycl_symbols_windows.dump
Original file line number Diff line number Diff line change
Expand Up @@ -3767,7 +3767,6 @@
?destroy_image_handle@experimental@oneapi@ext@_V1@sycl@@YAXAEAUunsampled_image_handle@12345@AEBVqueue@45@@Z
?device_has@queue@_V1@sycl@@AEBA_NW4aspect@23@@Z
?die@pi@detail@_V1@sycl@@YAXPEBD@Z
?discard_or_return@queue@_V1@sycl@@AEAA?AVevent@23@AEBV423@@Z
?empty@kernel_bundle_plain@detail@_V1@sycl@@QEBA_NXZ
?enable_ext_oneapi_default_context@detail@_V1@sycl@@YAX_N@Z
?end@HostProfilingInfo@detail@_V1@sycl@@QEAAXXZ
Expand Down

0 comments on commit 71a144a

Please sign in to comment.