|
Uni20
Asynchronous tensor and runtime library.
|
Scoped read access to every child of one partitioned CUDA allocation. More...
#include <buffer.hpp>
Public Types | |
| using | element_type = T |
Public Member Functions | |
| T const * | data () const noexcept |
| Return the first element of the complete physical allocation. | |
| PartitionedReadAccess & | operator= (PartitionedReadAccess &&other) noexcept |
| PartitionedReadAccess & | operator= (PartitionedReadAccess const &)=delete |
| PartitionedReadAccess (PartitionedReadAccess &&other) noexcept | |
| PartitionedReadAccess (PartitionedReadAccess const &)=delete | |
| void | release () noexcept |
| Record and publish one shared reader completion. | |
| void | release_after_synchronization () noexcept |
| End access after the caller has synchronized the operation stream. | |
| void | release_with_completion (Completion completion) noexcept |
| Publish a caller-recorded completion to every child ledger. | |
| std::size_t | size () const noexcept |
| Return the physical allocation size in elements. | |
| ~PartitionedReadAccess () | |
Friends | |
| class | PartitionedCudaBuffer< T > |
Scoped read access to every child of one partitioned CUDA allocation.
Construction installs predecessor waits for every logical child. Release records one completion and publishes the shared token to every child ledger.
| using uni20::cuda::PartitionedReadAccess< T >::element_type = T |
|
delete |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
Return the first element of the complete physical allocation.
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
Record and publish one shared reader completion.
|
inlinenoexcept |
End access after the caller has synchronized the operation stream.
|
inlinenoexcept |
Publish a caller-recorded completion to every child ledger.
|
inlinenoexcept |
Return the physical allocation size in elements.
|
friend |