文件 | | 函数 | 变量
CUDA 流

文件

文件  cuda_stream.hpp
 
文件  cuda_stream_pool.hpp
 
文件  cuda_stream_view.hpp
 

类  rmm::cuda_stream
 CUDA 流的拥有型包装器。 更多...
 
类  rmm::cuda_stream_pool
 CUDA 流池。 更多...
 
类  rmm::cuda_stream_view
 带有默认构造函数的强类型非拥有型 CUDA 流包装器。 更多...
 

函数

bool rmm::operator== (cuda_stream_view lhs, cuda_stream_view rhs)
 流的相等比较运算符。 更多...
 
bool rmm::operator!= (cuda_stream_view lhs, cuda_stream_view rhs)
 流的不等比较运算符。 更多...
 
std::ostream & rmm::operator<< (std::ostream &os, cuda_stream_view stream)
 用于打印/日志流的输出流运算符。 更多...
 

变量

static constexpr cuda_stream_view rmm::cuda_stream_default {}
 默认流(流 0)的静态 cuda_stream_view,方便使用。
 
static const cuda_stream_view rmm::cuda_stream_legacy
 cudaStreamLegacy 的静态 cuda_stream_view,方便使用。 更多...
 
static const cuda_stream_view rmm::cuda_stream_per_thread
 cudaStreamPerThread 的静态 cuda_stream_view,方便使用。 更多...
 

详细描述

函数文档

◆ operator!=()

bool rmm::operator!= ( cuda_stream_view  lhs,
cuda_stream_view  rhs 
)
inline

流的不等比较运算符。

参数
lhs要比较的第一个流视图
rhs要比较的第二个流视图
返回值
如果不相等则为 true,如果相等则为 false

◆ operator<<()

std::ostream& rmm::operator<< ( std::ostream &  os,
cuda_stream_view  stream 
)
inline

用于打印/日志流的输出流运算符。

参数
os输出 ostream
stream要输出的 cuda_stream_view
返回值
std::ostream& 输出 ostream

◆ operator==()

bool rmm::operator== ( cuda_stream_view  lhs,
cuda_stream_view  rhs 
)
inline

流的相等比较运算符。

参数
lhs要比较的第一个流视图
rhs要比较的第二个流视图
返回值
如果相等则为 true,如果不相等则为 false

变量文档

◆ cuda_stream_legacy

const cuda_stream_view rmm::cuda_stream_legacy
static
初始值
{
cudaStreamLegacy
}

cudaStreamLegacy 的静态 cuda_stream_view,方便使用。

◆ cuda_stream_per_thread

const cuda_stream_view rmm::cuda_stream_per_thread
static
初始值
{
cudaStreamPerThread
}

cudaStreamPerThread 的静态 cuda_stream_view,方便使用。