|
Uni20
Asynchronous tensor and runtime library.
|
Default pageable-host tensor storage policy. More...
#include <host_storage.hpp>
Public Types | |
| using | backend_selector_type = linalg::backend_list< linalg::LapackBackend, linalg::CpuReferenceBackend > |
| template<typename ElementType > | |
| using | storage_t = HostBuffer< ElementType > |
Static Public Member Functions | |
| static constexpr auto | backend_selector () noexcept -> backend_selector_type |
| Return the default ordered linalg backends for pageable host storage. | |
| template<typename ElementType > | |
| static auto | make_handle (storage_t< ElementType > &storage) noexcept -> ElementType * |
| template<typename ElementType > | |
| static auto | make_handle (storage_t< ElementType > const &storage) noexcept -> ElementType const * |
| template<typename ElementType > | |
| static auto | make_storage (std::size_t size, StorageInitialization initialization) -> storage_t< ElementType > |
| Allocate host elements with the requested numerical initialization. | |
Static Public Attributes | |
| static constexpr std::size_t | allocation_alignment = 64 |
Guaranteed byte alignment of every HostBuffer allocation. | |
Default pageable-host tensor storage policy.
Uses HostBuffer for aligned allocation and selects the available host BLAS/LAPACK and reference backends.
| using uni20::HostStorage::backend_selector_type = linalg::backend_list<linalg::LapackBackend, linalg::CpuReferenceBackend> |
| using uni20::HostStorage::storage_t = HostBuffer<ElementType> |
|
inlinestaticconstexprnoexcept |
Return the default ordered linalg backends for pageable host storage.
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestatic |
Allocate host elements with the requested numerical initialization.
|
staticconstexpr |
Guaranteed byte alignment of every HostBuffer allocation.