设备序号的类型。该类型被打包成 32 位,以便在查看像 linalg::TensorView 这样的类型时高效使用。 更多...
#include <context.h>
设备序号的类型。该类型被打包成 32 位,以便在查看像 linalg::TensorView 这样的类型时高效使用。
◆ Type
| 枚举器 |
|---|
| 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/stable/include/xgboost/context.h