1 #ifndef HeterogeneousCore_AlpakaInterface_interface_devices_h 2 #define HeterogeneousCore_AlpakaInterface_interface_devices_h 6 #include <alpaka/alpaka.hpp> 13 template <
typename TPlatform,
typename = std::enable_if_t<alpaka::isPlatform<TPlatform>>>
16 static const auto platform = TPlatform{};
21 template <
typename TPlatform,
typename = std::enable_if_t<alpaka::isPlatform<TPlatform>>>
22 inline std::vector<alpaka::Dev<TPlatform>>
const&
devices() {
24 static const auto devices = alpaka::getDevs(platform<TPlatform>());
30 #endif // HeterogeneousCore_AlpakaInterface_interface_devices_h