37 std::shared_ptr<DeviceContext>
ctx;
103 auto e =
q.submit([&](sycl::handler &h) {
141 elist.consumed =
true;
143 auto e =
q.submit([&](sycl::handler &h) {
A SYCL queue associated with a device and a context.
std::string queue_name
The name of this queue.
DeviceProperties & get_device_prop()
Retrieves the properties of the associated device.
sycl::event submit(EventList &elist, Fct &&fct)
Submits a kernel to the SYCL queue, adding the events in the provided EventList as dependencies.
bool wait_after_submit
Whether to wait for the kernel to finish after submitting it.
std::shared_ptr< DeviceContext > ctx
The device context of this queue.
sycl::queue q
The SYCL queue associated with this context.
bool in_order
Whether the queue is in order.
sycl::event submit(Fct &&fct)
Submits a kernel to the SYCL queue.
Class to manage a list of SYCL events.
void apply_dependency(sycl::handler &h)
Apply all events in the list as dependancies to a SYCL command group.
namespace for backends this one is named only sham since shambackends is too long to write
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...