26 "buf.get_size() < len\n buf.get_size() = {},\n len = {}", buf.
get_size(), len));
std::uint32_t u32
32 bit unsigned integer
A buffer allocated in USM (Unified Shared Memory)
DeviceQueue & get_queue() const
Gets the DeviceQueue associated with the held allocation.
size_t get_size() const
Gets the number of elements in the buffer.
This header file contains utility functions related to exception handling in the code.
void kernel_call(sham::DeviceQueue &q, RefIn in, RefOut in_out, u32 n, Functor &&func, SourceLocation &&callsite=SourceLocation{})
Submit a kernel to a SYCL queue.
namespace for primitive algorithm (e.g. sort, scan, reductions, ...)
sham::DeviceBuffer< u32 > gen_buffer_index(sham::DeviceScheduler_ptr sched, u32 len)
Generates a buffer where buf[i] = i.
void fill_buffer_index(sham::DeviceBuffer< u32 > &buf, u32 len)
Fills a buffer with sequential indices, such that buf[i] = i.
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
A class that references multiple buffers or similar objects.