5#include "device_index.hpp"
6#include "device_properties.hpp"
7#include "device_backend.hpp"
8#include "../service_manager.hpp"
9#include "../platform/dynamic_shared_object.h"
134 std::shared_ptr<device_session>
138 class implementation;
139 REXLIB_STD_MEMBER_INTERFACE
140 std::unique_ptr<implementation> m_implementation;
142 void create_implementation_if_null();
Abstract class that represents a hardware backend.
Definition device_backend.hpp:34
Location of a device as a (backend, id) tuple.
Definition device_index.hpp:25
Centralize multiple device_backend sessions and route device queries to the appropriate one.
Definition device_manager.hpp:34
void register_builtin_backends() override
Register backends bundled with the core library.
bool get_device_properties(const device_index &index, device_properties &properties) const
Query the properties of a device.
device_backend * get_backend(const std::string &name) const
Get a backend contained in this manager by its name.
std::shared_ptr< device_session > create_device_session(const device_index &index) const
Create a device session.
bool register_backend(std::unique_ptr< device_backend > backend)
Register a new backend.
void enumerate_backends(std::vector< std::string > &names) const
Enumerate the names of all registered backends.
void enumerate_devices(std::vector< device_index > &indices) const
Enumerate devices across all registered backends.
Description of the static characteristics of a physical device visible from the host.
Definition device_properties.hpp:27
Abstract class defining the interface of a service manager.
Definition service_manager.hpp:23
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
@ device
The memory resource can be optimally accessed by the device.