|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Host memory page-locked by R, so transfers to and from R's devices can be DMA'd. More...
#include <memory_space.hpp>
Public Types | |
| using | runtime = R |
| template<typename T> | |
| using | handle_type = T* |
Static Public Member Functions | |
| template<typename T> requires requires(std::size_t n) { { R::template allocate_pinned<T>(n) } -> std::same_as<T*>; } | |
| static T * | allocate (std::size_t n) |
| template<typename T> requires requires(T* p, std::size_t n) { R::template deallocate_pinned<T>(p, n); } | |
| static void | deallocate (T *p, std::size_t n) noexcept |
Static Public Attributes | |
| static constexpr bool | host_accessible = true |
| static constexpr bool | device_accessible = false |
| static constexpr const char * | name = "pinned" |
Host memory page-locked by R, so transfers to and from R's devices can be DMA'd.
The host touches it like any host memory; kernels do not. It is host memory, so its handle is always a pointer.
| using mtl::memory_space::pinned< R >::handle_type = T* |
| using mtl::memory_space::pinned< R >::runtime = R |
|
inlinestaticnodiscard |
|
inlinestaticnoexcept |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |