|
Uni20
Asynchronous tensor and runtime library.
|
Scoped write access to every child of one partitioned CUDA allocation. More...
#include <buffer.hpp>
Public Types | |
| using | element_type = T |
Public Member Functions | |
| T * | data () const noexcept |
| Return the first element of the complete physical allocation. | |
| PartitionedWriteAccess & | operator= (PartitionedWriteAccess &&other) noexcept |
| PartitionedWriteAccess & | operator= (PartitionedWriteAccess const &)=delete |
| PartitionedWriteAccess (PartitionedWriteAccess &&other) noexcept | |
| PartitionedWriteAccess (PartitionedWriteAccess const &)=delete | |
| void | release () noexcept |
| Record and publish one shared writer 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. | |
| ~PartitionedWriteAccess () | |
Friends | |
| class | PartitionedCudaBuffer< T > |
Scoped write 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::PartitionedWriteAccess< 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 writer 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 |