#include <DeviceSelector.hpp>
Definition at line 15 of file DeviceSelector.hpp.
◆ DeviceSelector() [1/2]
◆ DeviceSelector() [2/2]
◆ ALPAKA_TYPEOF()
◆ getDeviceCount()
Get the number of available devices for the given api and device kind.
- Attention
- In case the compiler flags you used to build your application were wrong, kernels for the given deviceKind cannot be built and the number of available devices will be zero. This can happen, e.g., if you compile for OneAPI SYCL: you can compile the application, but whether you can run on a device is evaluated at runtime.
- Returns
- number of devices
Definition at line 42 of file DeviceSelector.hpp.
◆ getDeviceProperties()
◆ isAvailable()
◆ makeDevice()
Get a device.
- Parameters
-
| idx | device index (range [0;number of devices), invalid index will throw an exception |
- Returns
- See also
- onHost::Device
Definition at line 62 of file DeviceSelector.hpp.
◆ m_deviceSpec
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/alpaka3/checkouts/latest/include/alpaka/onHost/DeviceSelector.hpp