|
Celeritas 0.7.0-3+develop.835656ac1
|
Reference to pinned host memory written asynchronously by a stream. More...
#include <AsyncResultRef.hh>
Public Member Functions | |
| AsyncResultRef ()=default | |
| Construct with a null reference. | |
| AsyncResultRef (std::vector< T, PinnedAllocator< T > > &vec) | |
| Construct from the first element of a pinned host vector. | |
| operator bool () const | |
| Whether the reference is assigned. | |
Public Attributes | |
| ObserverPtr< T, MemSpace::host > | ptr |
| Host destination of the asynchronous write. | |
Reference to pinned host memory written asynchronously by a stream.
This marks a host destination for an asynchronous device-to-host copy. The referenced value must be in pinned host memory, which must remain valid until the stream has completed the write. The value must not be read until the stream is synchronized (directly or through an event recorded after the enqueued write).
|
inlineexplicit |
Construct from the first element of a pinned host vector.
The vector must not be resized while the asynchronous write is pending.