|
Uni20
Asynchronous tensor and runtime library.
|
Read access that owns a moved CUDA buffer. More...
#include <buffer.hpp>
Public Types | |
| using | element_type = T |
Public Member Functions | |
| T const * | data () const noexcept |
| Return the typed device pointer owned by this access state. | |
| OwningReadAccess & | operator= (OwningReadAccess &&)=delete |
| OwningReadAccess & | operator= (OwningReadAccess const &)=delete |
| OwningReadAccess (OwningReadAccess &&other) noexcept | |
| OwningReadAccess (OwningReadAccess const &)=delete | |
| void | release () noexcept |
| End access and destroy the owned allocation. | |
| ~OwningReadAccess () | |
Friends | |
| class | CudaBuffer< T > |
Read access that owns a moved CUDA buffer.
The owned buffer is moved before access begins, so the access state needs no back-pointer and remains valid when this object moves. Blocking access waits for the prior writer during construction. Stream-ordered access installs the prior-writer wait and publishes its reader completion on release.
| using uni20::cuda::OwningReadAccess< T >::element_type = T |
|
delete |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
Return the typed device pointer owned by this access state.
|
delete |
|
delete |
|
inlinenoexcept |
End access and destroy the owned allocation.
|
friend |