一个拥有类,用于表示设备内存中的固定宽度类型值。 更多...
#include <scalar.hpp>
公有类型 | |
using | value_type = T |
标量所持值的数据类型。 | |
保护成员函数 | |
fixed_width_scalar (T value, bool is_valid=true, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
构造一个新的固定宽度标量对象。 更多... | |
fixed_width_scalar (rmm::device_scalar< T > &&data, bool is_valid=true, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
从现有设备内存构造一个新的固定宽度标量对象。 更多... | |
![]() | |
scalar (scalar &&other)=default | |
scalar 的移动构造函数。 更多... | |
scalar (scalar const &other, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
通过深度复制另一个对象来构造一个新的 scalar 对象。 更多... | |
scalar (data_type type, bool is_valid=false, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
构造一个新的 scalar 对象。 更多... | |
保护属性 | |
rmm::device_scalar< T > | _data |
包含值的设备内存 | |
![]() | |
data_type | _type {type_id::EMPTY} |
标量中值的逻辑类型。 | |
cudf::detail::device_scalar< bool > | _is_valid |
表示有效性的设备布尔值。 | |
一个拥有类,用于表示设备内存中的固定宽度类型值。
T | 固定宽度类型值的数据类型。 |
定义于文件 scalar.hpp 的 144 行。
|
default |
fixed_width_scalar 的移动构造函数。
other | 从中移动的另一个 fixed_width_scalar。 |
cudf::detail::fixed_width_scalar< T >::fixed_width_scalar | ( | fixed_width_scalar< T > const & | other, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) |
通过深度复制另一个对象来构造一个新的固定宽度标量对象。
other | 要复制的标量。 |
stream | 用于设备内存操作的 CUDA 流。 |
mr | 用于设备内存分配的设备内存资源。 |
|
protected |
构造一个新的固定宽度标量对象。
value | 标量的初始值。 |
is_valid | 标量持有的值是否有效。 |
stream | 用于设备内存操作的 CUDA 流。 |
mr | 用于设备内存分配的设备内存资源。 |
|
protected |
从现有设备内存构造一个新的固定宽度标量对象。
data | 标量在设备内存中的数据。 |
is_valid | 标量持有的值是否有效。 |
stream | 用于设备内存操作的 CUDA 流。 |
mr | 用于设备内存分配的设备内存资源。 |
T* cudf::detail::fixed_width_scalar< T >::data | ( | ) |
返回设备内存中值的原始指针。
T const* cudf::detail::fixed_width_scalar< T >::data | ( | ) | const |
返回设备内存中值的 const 原始指针。
void cudf::detail::fixed_width_scalar< T >::set_value | ( | T | value, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() |
||
) |
设置标量的值。
value | 标量的新值。 |
stream | 用于设备内存操作的 CUDA 流。 |
T cudf::detail::fixed_width_scalar< T >::value | ( | rmm::cuda_stream_view | stream = cudf::get_default_stream() | ) | const |
获取标量的值。
stream | 用于设备内存操作的 CUDA 流。 |