强类型非拥有型 CUDA 流包装器,带默认构造函数。更多...
#include <cuda_stream_view.hpp>
公共成员函数 | |
| constexpr | cuda_stream_view (cuda_stream_view const &)=default |
| 默认拷贝构造函数。 | |
| constexpr | cuda_stream_view (cuda_stream_view &&)=default |
| 默认移动构造函数。 | |
| constexpr cuda_stream_view & | operator= (cuda_stream_view const &)=default |
| 默认拷贝赋值运算符。更多... | |
| constexpr cuda_stream_view & | operator= (cuda_stream_view &&)=default |
| 默认移动赋值运算符。更多... | |
| constexpr | cuda_stream_view (int)=delete |
| constexpr | cuda_stream_view (std::nullptr_t)=delete |
| constexpr | cuda_stream_view (cudaStream_t stream) noexcept |
| 从 cudaStream_t 构造。更多... | |
| constexpr | cuda_stream_view (cuda::stream_ref stream) noexcept |
| 从 stream_ref 隐式转换。更多... | |
| constexpr cudaStream_t | value () const noexcept |
| 获取包装的流。更多... | |
| constexpr | operator cudaStream_t () const noexcept |
| 隐式转换为 cudaStream_t。更多... | |
| constexpr | operator cuda::stream_ref () const noexcept |
| 隐式转换为 stream_ref。更多... | |
| bool | is_per_thread_default () const noexcept |
| 如果包装的流是 CUDA 每线程默认流,则为 true。更多... | |
| bool | is_default () const noexcept |
| 如果包装的流是显式 CUDA 遗留默认流,则为 true。更多... | |
| void | synchronize () const |
| 同步视图的 CUDA 流。更多... | |
| void | synchronize_no_throw () const noexcept |
| 同步视图的 CUDA 流。发生错误时不会抛出异常。更多... | |
强类型非拥有型 CUDA 流包装器,带默认构造函数。
此包装器只是一个“视图”:它不拥有所包装流的生命周期。
|
inlineconstexprnoexcept |
从 cudaStream_t 构造。
| stream | 此视图的基础流 |
|
inlineconstexprnoexcept |
从 stream_ref 隐式转换。
| stream | 此视图的基础流 |
|
inlinenoexcept |
如果包装的流是显式 CUDA 遗留默认流,则为 true
|
inlinenoexcept |
如果包装的流是 CUDA 每线程默认流,则为 true
|
inlineconstexprnoexcept |
隐式转换为 stream_ref。
|
inlineconstexprnoexcept |
隐式转换为 cudaStream_t。
|
constexprdefault |
默认移动赋值运算符。
|
constexprdefault |
默认拷贝赋值运算符。
|
inline |
|
inlinenoexcept |
同步视图的 CUDA 流。发生错误时不会抛出异常。
调用 cudaStreamSynchronize(),如果发生错误则断言。
|
inlineconstexprnoexcept |
获取包装的流。