一个用于设备序号的类型。该类型被 packed 到 32 位中,以便在查看类型(如 linalg::TensorView
)中高效使用。 更多...
#include <context.h>
一个用于设备序号的类型。该类型被 packed 到 32 位中,以便在查看类型(如 linalg::TensorView
)中高效使用。
◆ 类型
枚举值 |
---|
kCPU | |
kCUDA | |
kSyclDefault | |
kSyclCPU | |
kSyclGPU | |
◆ DeviceOrd() [1/4]
constexpr xgboost::DeviceOrd::DeviceOrd |
( |
| ) |
|
|
constexprdefault |
◆ DeviceOrd() [2/4]
◆ DeviceOrd() [3/4]
constexpr xgboost::DeviceOrd::DeviceOrd |
( |
DeviceOrd const & |
that | ) |
|
|
constexprdefault |
◆ DeviceOrd() [4/4]
constexpr xgboost::DeviceOrd::DeviceOrd |
( |
DeviceOrd && |
that | ) |
|
|
constexprdefault |
◆ CPU()
constexpr static auto xgboost::DeviceOrd::CPU |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ CPUOrdinal()
◆ CUDA()
◆ InvalidOrdinal()
◆ IsCPU()
bool xgboost::DeviceOrd::IsCPU |
( |
| ) |
const |
|
inline |
◆ IsCUDA()
bool xgboost::DeviceOrd::IsCUDA |
( |
| ) |
const |
|
inline |
◆ IsSycl()
bool xgboost::DeviceOrd::IsSycl |
( |
| ) |
const |
|
inline |
◆ IsSyclCPU()
bool xgboost::DeviceOrd::IsSyclCPU |
( |
| ) |
const |
|
inline |
◆ IsSyclDefault()
bool xgboost::DeviceOrd::IsSyclDefault |
( |
| ) |
const |
|
inline |
◆ IsSyclGPU()
bool xgboost::DeviceOrd::IsSyclGPU |
( |
| ) |
const |
|
inline |
◆ Name()
std::string xgboost::DeviceOrd::Name |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool xgboost::DeviceOrd::operator!= |
( |
DeviceOrd const & |
that | ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool xgboost::DeviceOrd::operator== |
( |
DeviceOrd const & |
that | ) |
const |
|
inline |
◆ SyclCPU()
constexpr static auto xgboost::DeviceOrd::SyclCPU |
( |
bst_d_ordinal_t |
ordinal = -1 | ) |
|
|
inlinestaticconstexpr |
◆ SyclDefault()
constexpr static auto xgboost::DeviceOrd::SyclDefault |
( |
bst_d_ordinal_t |
ordinal = -1 | ) |
|
|
inlinestaticconstexpr |
◆ SyclGPU()
constexpr static auto xgboost::DeviceOrd::SyclGPU |
( |
bst_d_ordinal_t |
ordinal = -1 | ) |
|
|
inlinestaticconstexpr |
◆ kCPU
◆ ordinal
此结构体的文档生成自以下文件
- /home/docs/checkouts/readthedocs.org/user_builds/xgboost/checkouts/release_3.0.0/include/xgboost/context.h