xgboost
|
#include <host_device_vector.h>
Public Types | |
using | value_type = T |
Public Member Functions | |
HostDeviceVector (size_t size=0, T v=T(), DeviceOrd device=DeviceOrd::CPU()) | |
HostDeviceVector (std::initializer_list< T > init, DeviceOrd device=DeviceOrd::CPU()) | |
HostDeviceVector (const std::vector< T > &init, DeviceOrd device=DeviceOrd::CPU()) | |
~HostDeviceVector () | |
HostDeviceVector (const HostDeviceVector< T > &)=delete | |
HostDeviceVector (HostDeviceVector< T > &&) | |
HostDeviceVector< T > & | operator= (const HostDeviceVector< T > &)=delete |
HostDeviceVector< T > & | operator= (HostDeviceVector< T > &&) |
bool | Empty () const |
std::size_t | Size () const |
DeviceOrd | Device () const |
common::Span< T > | DeviceSpan () |
common::Span< const T > | ConstDeviceSpan () const |
common::Span< const T > | DeviceSpan () const |
T * | DevicePointer () |
const T * | ConstDevicePointer () const |
const T * | DevicePointer () const |
T * | HostPointer () |
common::Span< T > | HostSpan () |
common::Span< T const > | HostSpan () const |
common::Span< T const > | ConstHostSpan () const |
const T * | ConstHostPointer () const |
const T * | HostPointer () const |
void | Fill (T v) |
void | Copy (const HostDeviceVector< T > &other) |
void | Copy (const std::vector< T > &other) |
void | Copy (std::initializer_list< T > other) |
void | Extend (const HostDeviceVector< T > &other) |
std::vector< T > & | HostVector () |
const std::vector< T > & | ConstHostVector () const |
const std::vector< T > & | HostVector () const |
bool | HostCanRead () const |
bool | HostCanWrite () const |
bool | DeviceCanRead () const |
bool | DeviceCanWrite () const |
GPUAccess | DeviceAccess () const |
void | SetDevice (DeviceOrd device) const |
void | Resize (size_t new_size, T v=T()) |
using xgboost::HostDeviceVector< T >::value_type = T |
|
explicit |
xgboost::HostDeviceVector< T >::HostDeviceVector | ( | std::initializer_list< T > | init, |
DeviceOrd | device = DeviceOrd::CPU() |
||
) |
|
explicit |
xgboost::HostDeviceVector< T >::~HostDeviceVector | ( | ) |
|
delete |
xgboost::HostDeviceVector< T >::HostDeviceVector | ( | HostDeviceVector< T > && | ) |
const T* xgboost::HostDeviceVector< T >::ConstDevicePointer | ( | ) | const |
common::Span<const T> xgboost::HostDeviceVector< T >::ConstDeviceSpan | ( | ) | const |
|
inline |
|
inline |
const std::vector<T>& xgboost::HostDeviceVector< T >::ConstHostVector | ( | ) | const |
void xgboost::HostDeviceVector< T >::Copy | ( | const HostDeviceVector< T > & | other | ) |
void xgboost::HostDeviceVector< T >::Copy | ( | const std::vector< T > & | other | ) |
void xgboost::HostDeviceVector< T >::Copy | ( | std::initializer_list< T > | other | ) |
DeviceOrd xgboost::HostDeviceVector< T >::Device | ( | ) | const |
GPUAccess xgboost::HostDeviceVector< T >::DeviceAccess | ( | ) | const |
bool xgboost::HostDeviceVector< T >::DeviceCanRead | ( | ) | const |
bool xgboost::HostDeviceVector< T >::DeviceCanWrite | ( | ) | const |
T* xgboost::HostDeviceVector< T >::DevicePointer | ( | ) |
|
inline |
common::Span<T> xgboost::HostDeviceVector< T >::DeviceSpan | ( | ) |
|
inline |
|
inline |
void xgboost::HostDeviceVector< T >::Extend | ( | const HostDeviceVector< T > & | other | ) |
void xgboost::HostDeviceVector< T >::Fill | ( | T | v | ) |
bool xgboost::HostDeviceVector< T >::HostCanRead | ( | ) | const |
bool xgboost::HostDeviceVector< T >::HostCanWrite | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
std::vector<T>& xgboost::HostDeviceVector< T >::HostVector | ( | ) |
|
inline |
|
delete |
HostDeviceVector<T>& xgboost::HostDeviceVector< T >::operator= | ( | HostDeviceVector< T > && | ) |
void xgboost::HostDeviceVector< T >::Resize | ( | size_t | new_size, |
T | v = T() |
||
) |
void xgboost::HostDeviceVector< T >::SetDevice | ( | DeviceOrd | device | ) | const |
std::size_t xgboost::HostDeviceVector< T >::Size | ( | ) | const |