Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions sycl/include/sycl/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,19 @@ using EnableIfFP = typename std::enable_if_t<std::is_same_v<F, float> ||
T>;

using GlobalBufAccessorT = accessor<char, 1, sycl::access::mode::read_write,
sycl::access::target::global_buffer,
sycl::access::placeholder::false_t>;
sycl::access::target::device>;

constexpr static access::address_space GlobalBufAS =
TargetToAS<sycl::access::target::global_buffer>::AS;
TargetToAS<sycl::access::target::device>::AS;
using GlobalBufPtrType =
typename detail::DecoratedType<char, GlobalBufAS>::type *;
constexpr static int GlobalBufDim = 1;

using GlobalOffsetAccessorT = accessor<unsigned, 1, sycl::access::mode::atomic,
sycl::access::target::global_buffer,
sycl::access::placeholder::false_t>;
sycl::access::target::device>;

constexpr static access::address_space GlobalOffsetAS =
TargetToAS<sycl::access::target::global_buffer>::AS;
TargetToAS<sycl::access::target::device>::AS;
using GlobalOffsetPtrType =
typename detail::DecoratedType<unsigned, GlobalBufAS>::type *;
constexpr static int GlobalOffsetDim = 1;
Expand Down