5#include "device_properties.hpp"
6#include "memory_resource_affinity.hpp"
7#include "../platform/dynamic_shared_object.h"
15class memory_allocator;
48 std::shared_ptr<device> dev,
65 const std::shared_ptr<device>&
get_device() const noexcept;
100 std::unique_ptr<implementation> m_implementation;
Abstract command queue belonging to a device.
Definition command_queue.hpp:27
Description of the static characteristics of a physical device visible from the host.
Definition device_properties.hpp:27
Immutable aggregate of a device handle and its associated objects.
Definition device_session.hpp:29
const std::shared_ptr< device > & get_device() const noexcept
Retrieve the wrapped device handle.
const device_properties & get_properties() const noexcept
Retrieve the static properties of the wrapped device.
const std::shared_ptr< command_queue > & get_default_queue() const noexcept
Retrieve the default command queue of this session.
const std::shared_ptr< memory_allocator > & get_allocator(memory_resource_affinity affinity) const noexcept
Retrieve the allocator for the given affinity.
device_session(std::shared_ptr< device > dev, device_properties properties)
Construct an session wrapping dev.
Abstract allocator of buffer objects on a memory_resource.
Definition memory_allocator.hpp:30
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
memory_resource_affinity
Enumeration to query memory_resource according to its intended usage.
Definition memory_resource_affinity.hpp:12
@ device
The memory resource can be optimally accessed by the device.