CMS 3D CMS Logo

host.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_AlpakaInterface_interface_host_h
2 #define HeterogeneousCore_AlpakaInterface_interface_host_h
3 
4 #include <alpaka/alpaka.hpp>
5 
7 
8 namespace cms::alpakatools {
9 
10  // returns the alpaka host platform
11  inline alpaka::PlatformCpu const& host_platform() { return platform<alpaka::PlatformCpu>(); }
12 
13  // returns the alpaka host device
14  inline alpaka::DevCpu const& host() { return devices<alpaka::PlatformCpu>()[0]; }
15 
16 } // namespace cms::alpakatools
17 
18 #endif // HeterogeneousCore_AlpakaInterface_interface_host_h
alpaka::PlatformCpu const & host_platform()
Definition: host.h:11
alpaka::DevCpu const & host()
Definition: host.h:14