18 inline namespace _V1 {
29 : BufferSize_(BufferSize), MaxStatementSize_(MaxStatementSize),
30 PropList_(PropList), Buf_(
range<1>(BufferSize + OffsetSize + 1)),
44 char *Ptr = Acc.get_pointer();
45 std::memset(Ptr, 0, Buf_.
size());
64 auto ReinterpretedBuf = OffsetSubBuf.reinterpret<unsigned, 1>(
range<1>(2));
65 return ReinterpretedBuf.get_access<sycl::access::mode::atomic>(
72 return MaxStatementSize_;
84 auto Q = createSyclObjFromImpl<queue>(Queue);
87 access::target::host_buffer>(
90 char *FlushBufPtr = FlushBufAcc.get_pointer();
91 std::memset(FlushBufPtr, 0, FlushBufSize);
100 auto Q = detail::createSyclObjFromImpl<queue>(
101 sycl::detail::Scheduler::getInstance().getDefaultHostQueue());
102 event Event = Q.submit([&](
handler &cgh) {
110 auto FlushBufHostAcc =
115 if (!BufHostAcc.empty()) {
129 printf(
"%s", &(BufHostAcc[0]));
136 LeadEvent->getSubmittedQueue()->registerStreamServiceEvent(
size_t size() const noexcept
void set_write_back(bool flag=true)
accessor< T, dimensions, Mode, Target, access::placeholder::false_t, ext::oneapi::accessor_property_list<> > get_access(handler &CommandGroupHandler, const detail::code_location CodeLoc=detail::code_location::current())
size_t get_work_item_buffer_size() const
size_t get_max_statement_size() const
GlobalBufAccessorT accessGlobalFlushBuf(handler &CGH)
void initStreamHost(QueueImplPtr Queue)
stream_impl(size_t BufferSize, size_t MaxStatementSize, handler &CGH)
size_t size() const noexcept
GlobalOffsetAccessorT accessGlobalOffset(handler &CGH)
GlobalBufAccessorT accessGlobalBuf(handler &CGH)
Command group handler class.
Objects of the property_list class are containers for the SYCL properties.
Defines the iteration domain of either a single work-group in a parallel dispatch,...
decltype(Obj::impl) getSyclObjImpl(const Obj &SyclObject)
std::shared_ptr< event_impl > EventImplPtr
constexpr unsigned FLUSH_BUF_OFFSET_SIZE
std::shared_ptr< sycl::detail::queue_impl > QueueImplPtr
int printf(const FormatT *__format, Args... args)
constexpr mode_tag_t< access_mode::read_write > read_write
_Abi const simd< _Tp, _Abi > & noexcept