12#define DNDS_PY_ENUM_CLASS_DeviceBackend_ADD(v) value(#v, DeviceBackend::v)
13 auto DeviceBackend_ = py::enum_<DeviceBackend>(m,
"DeviceBackend");
15 .DNDS_PY_ENUM_CLASS_DeviceBackend_ADD(
Unknown)
16 .DNDS_PY_ENUM_CLASS_DeviceBackend_ADD(
Host)
18 .DNDS_PY_ENUM_CLASS_DeviceBackend_ADD(CUDA)
20 .DNDS_PY_ENUM_CLASS_DeviceBackend_ADD(
Custom1);
Shared pybind11 plumbing used by every *_bind.hpp in DNDS (buffer-protocol type check,...
Device memory abstraction layer with backend-specific storage and factory creation.
the host side operators are provided as implemented
DeviceBackend
Enumerates the backends a DeviceStorage / Array can live on.
@ Unknown
Unset / sentinel.
@ Custom1
Reserved slot for a project-specific backend.
void pybind11_bind_device_controls(py::module_ &m)
void pybind11_bind_deviceStorage(py::module_ &m)
DeviceBackend device_backend_name_to_enum(std::string_view s)
Inverse of device_backend_name. Returns Unknown for unrecognised names.