![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Concept for a combination of an API and device kind. More...
#include <DeviceSpec.hpp>
Public Member Functions | |
| constexpr | DeviceSpec ()=default |
| constexpr | DeviceSpec (T_Api api, T_DeviceKind deviceType) |
| template<alpaka::concepts::DeviceSpec T_DeviceSpec> | |
| constexpr | DeviceSpec (T_DeviceSpec any) |
| constexpr T_Api | getApi () const |
| constexpr T_DeviceKind | getDeviceKind () const |
| std::string | getName () const |
Static Public Member Functions | |
| static constexpr bool | isValid () |
| Checks if the device kind and api combination is valid. | |
Concept for a combination of an API and device kind.
A device specification means the combination of an API and a device kind. Multiple instances of alpaka::onHost::Device can exist for the same device specification, for example in the form of multiple GPUs of the same type in one system.
To check whether a specific combination is valid, i.e., whether an API can target a device kind, the static isValid() method can be used.
Definition at line 28 of file DeviceSpec.hpp.
|
inlineconstexpr |
Definition at line 31 of file DeviceSpec.hpp.
|
inlineconstexpr |
Definition at line 36 of file DeviceSpec.hpp.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 49 of file DeviceSpec.hpp.
|
inlineconstexpr |
Definition at line 44 of file DeviceSpec.hpp.
|
inline |
Definition at line 54 of file DeviceSpec.hpp.
|
inlinestaticconstexpr |
Checks if the device kind and api combination is valid.
Reasons why a combination is valid can be that the api does not know how to talk to a device or that the required dependencies e.g. CUDA, HIP, or OneApi are not fulfilled.
Definition at line 66 of file DeviceSpec.hpp.