Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:40

0001 #ifndef HeterogeneousCore_AlpakaInterface_interface_host_h
0002 #define HeterogeneousCore_AlpakaInterface_interface_host_h
0003 
0004 #include <alpaka/alpaka.hpp>
0005 
0006 #include "HeterogeneousCore/AlpakaInterface/interface/devices.h"
0007 
0008 namespace cms::alpakatools {
0009 
0010   // returns the alpaka host platform
0011   inline alpaka::PlatformCpu const& host_platform() { return platform<alpaka::PlatformCpu>(); }
0012 
0013   // returns the alpaka host device
0014   inline alpaka::DevCpu const& host() { return devices<alpaka::PlatformCpu>()[0]; }
0015 
0016 }  // namespace cms::alpakatools
0017 
0018 #endif  // HeterogeneousCore_AlpakaInterface_interface_host_h