Shared completion token for one submitted CUDA operation.
More...
#include <runtime.hpp>
|
| | Completion ()=default |
| |
| int | device () const noexcept |
| | Return the producer device ordinal.
|
| |
| | operator bool () const noexcept |
| | Return whether this token refers to a submitted operation.
|
| |
| bool | ready () const |
| | Return whether the operation has completed.
|
| |
| void | synchronize () const |
| | Wait on the host for the operation to complete.
|
| |
|
| static Completion | record (int device, cudaStream_t stream) |
| | Record a completion at the current tail of a native CUDA stream.
|
| |
Shared completion token for one submitted CUDA operation.
◆ Completion()
| uni20::cuda::Completion::Completion |
( |
| ) |
|
|
default |
◆ device()
| int uni20::cuda::Completion::device |
( |
| ) |
const |
|
noexcept |
Return the producer device ordinal.
◆ operator bool()
| uni20::cuda::Completion::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
Return whether this token refers to a submitted operation.
◆ ready()
| bool uni20::cuda::Completion::ready |
( |
| ) |
const |
Return whether the operation has completed.
◆ record()
| Completion uni20::cuda::Completion::record |
( |
int |
device, |
|
|
cudaStream_t |
stream |
|
) |
| |
|
static |
Record a completion at the current tail of a native CUDA stream.
- Parameters
-
| device | Device ordinal that owns stream. |
| stream | Native CUDA stream, including the default stream. |
◆ synchronize()
| void uni20::cuda::Completion::synchronize |
( |
| ) |
const |
Wait on the host for the operation to complete.
◆ Stream
◆ Stream::State
The documentation for this class was generated from the following files: