|
ACTS
Experiment-independent tracking
|
A simple device description struct. More...
#include <ActsPlugins/Gnn/Tensor.hpp>
Public Types | |
| enum class | Type { eCPU , eCUDA } |
| Device type enumeration. More... | |
Public Member Functions | |
| bool | isCpu () const |
| Check if device is configured for CPU execution. | |
| bool | isCuda () const |
| Check if device is configured for CUDA execution. | |
| bool | operator== (const Device &) const =default |
Static Public Member Functions | |
| static Device | Cpu () |
| Create a CPU device descriptor. | |
| static Device | Cuda (std::size_t index=0) |
| Create a CUDA device descriptor. | |
Public Attributes | |
| std::size_t | index = 0 |
| Device index for multi-GPU systems. | |
| Type | type = Type::eCPU |
| Device type (CPU or CUDA). | |
A simple device description struct.
|
strong |
|
static |
Create a CPU device descriptor.
|
static |
Create a CUDA device descriptor.
| index | GPU device index for multi-GPU systems (default: 0) |
| bool ActsPlugins::Device::isCpu | ( | ) | const |
Check if device is configured for CPU execution.
| bool ActsPlugins::Device::isCuda | ( | ) | const |
Check if device is configured for CUDA execution.
|
default |
| std::size_t ActsPlugins::Device::index = 0 |
Device index for multi-GPU systems.
| Type ActsPlugins::Device::type = Type::eCPU |
Device type (CPU or CUDA).