Identifiant d'un composant du système.
Plus de détails...
#include <arcane/accelerator/core/DeviceId.h>
|
|
| DeviceId ()=default |
| | Accélérateur par défaut (Device de numéro 0)
|
| |
| | DeviceId (Int32 id) |
| |
| bool | isHost () const |
| | Indique si l'instance est associée à l'hôte.
|
| |
| bool | isNull () const |
| | Indique si l'instance n'est associée à aucune device.
|
| |
| bool | isAccelerator () const |
| | Indique si l'instance est associée à un accélérateur.
|
| |
| Int32 | asInt32 () const |
| | Valeur numérique du device.
|
| |
Identifiant d'un composant du système.
Le composant peut être un accélérateur ou l'hôte.
Définition à la ligne 32 du fichier DeviceId.h.
◆ DeviceId()
| Arcane::Accelerator::DeviceId::DeviceId |
( |
Int32 | id | ) |
|
|
inlineexplicit |
◆ asInt32()
| Int32 Arcane::Accelerator::DeviceId::asInt32 |
( |
| ) |
const |
|
inline |
◆ hostDevice()
| static DeviceId Arcane::Accelerator::DeviceId::hostDevice |
( |
| ) |
|
|
inlinestatic |
◆ isAccelerator()
| bool Arcane::Accelerator::DeviceId::isAccelerator |
( |
| ) |
const |
|
inline |
Indique si l'instance est associée à un accélérateur.
Définition à la ligne 66 du fichier DeviceId.h.
◆ isHost()
| bool Arcane::Accelerator::DeviceId::isHost |
( |
| ) |
const |
|
inline |
Indique si l'instance est associée à l'hôte.
Définition à la ligne 60 du fichier DeviceId.h.
◆ isNull()
| bool Arcane::Accelerator::DeviceId::isNull |
( |
| ) |
const |
|
inline |
Indique si l'instance n'est associée à aucune device.
Définition à la ligne 63 du fichier DeviceId.h.
◆ nullDevice()
| static DeviceId Arcane::Accelerator::DeviceId::nullDevice |
( |
| ) |
|
|
inlinestatic |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | o, |
|
|
const DeviceId & | device_id ) |
|
friend |
La documentation de cette classe a été générée à partir du fichier suivant :