Scoped, configurable view over a device_session.
Definition device_context.hpp:49
const std::shared_ptr< const device_session > & get_device_session() const noexcept
Retrieve the wrapped device session.
device_context with_allocator(memory_resource_affinity affinity, std::shared_ptr< memory_allocator > allocator) const
Derive a context with a different allocator for an affinity.
const std::shared_ptr< command_queue > & get_active_queue() const noexcept
Retrieve the active command queue.
device_context on_queue(std::shared_ptr< command_queue > queue) const
Derive a context that submits onto a different queue.
const std::shared_ptr< memory_allocator > & get_allocator(memory_resource_affinity affinity) const noexcept
Retrieve the allocator for the given affinity.
device_context() noexcept=default
Construct an empty context holding no session.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10