|
Uni20
Asynchronous tensor and runtime library.
|
Accessor for a CUDA mdspan whose device pointer has been leased. More...
#include <cuda_accessor.hpp>
Public Types | |
| using | data_handle_type = element_type * |
| using | element_type = ElementType |
| using | offset_policy = CudaPointerAccessor |
| using | offset_type = std::size_t |
| using | reference = element_type & |
Public Member Functions | |
| UNI20_HOST_DEVICE constexpr reference | access (data_handle_type handle, offset_type offset) const noexcept |
| UNI20_HOST_DEVICE constexpr data_handle_type | offset (data_handle_type handle, offset_type offset) const noexcept |
Accessor for a CUDA mdspan whose device pointer has been leased.
Indexed access applies the mapped offset and returns an element reference. The accessor must be evaluated only in an execution domain where the leased CUDA pointer is directly accessible. Persistent elements must be trivially copyable, including borrowed views.
| using uni20::cuda::CudaPointerAccessor< ElementType >::data_handle_type = element_type* |
| using uni20::cuda::CudaPointerAccessor< ElementType >::element_type = ElementType |
| using uni20::cuda::CudaPointerAccessor< ElementType >::offset_policy = CudaPointerAccessor |
| using uni20::cuda::CudaPointerAccessor< ElementType >::offset_type = std::size_t |
| using uni20::cuda::CudaPointerAccessor< ElementType >::reference = element_type& |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |