A type for device ordinal. The type is packed into 32-bit for efficient use in viewing types like linalg::TensorView
.
More...
#include <context.h>
A type for device ordinal. The type is packed into 32-bit for efficient use in viewing types like linalg::TensorView
.
◆ Type
Enumerator |
---|
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()
Constructor for CUDA device.
- Parameters
-
ordinal | CUDA device ordinal. |
◆ 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 |
Get a string representation of the device and the ordinal.
◆ 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 |
Constructor for SYCL CPU.
- Parameters
-
ordinal | SYCL CPU device ordinal. |
◆ SyclDefault()
constexpr static auto xgboost::DeviceOrd::SyclDefault |
( |
bst_d_ordinal_t |
ordinal = -1 | ) |
|
|
inlinestaticconstexpr |
Constructor for SYCL.
- Parameters
-
ordinal | SYCL device ordinal. |
◆ SyclGPU()
constexpr static auto xgboost::DeviceOrd::SyclGPU |
( |
bst_d_ordinal_t |
ordinal = -1 | ) |
|
|
inlinestaticconstexpr |
Constructor for SYCL GPU.
- Parameters
-
ordinal | SYCL GPU device ordinal. |
◆ kCPU
◆ ordinal
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/xgboost/checkouts/stable/include/xgboost/context.h