Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-08-15 01:07:43

0001 #ifndef HeterogeneousCore_AlpakaServices_interface_AlpakaService_h
0002 #define HeterogeneousCore_AlpakaServices_interface_AlpakaService_h
0003 
0004 #include <vector>
0005 
0006 #include "HeterogeneousCore/AlpakaInterface/interface/config.h"
0007 #include "HeterogeneousCore/AlpakaInterface/interface/AlpakaServiceFwd.h"
0008 
0009 namespace edm {
0010   class ActivityRegistry;
0011   class ConfigurationDescriptions;
0012   class ParameterSet;
0013 }  // namespace edm
0014 
0015 namespace ALPAKA_ACCELERATOR_NAMESPACE {
0016 
0017   class AlpakaService {
0018   public:
0019     AlpakaService(edm::ParameterSet const& config, edm::ActivityRegistry&);
0020     ~AlpakaService();
0021 
0022     static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0023 
0024     bool enabled() const { return enabled_; }
0025 
0026   private:
0027     bool enabled_ = false;
0028     bool verbose_ = false;
0029   };
0030 
0031 }  // namespace ALPAKA_ACCELERATOR_NAMESPACE
0032 
0033 DECLARE_ALPAKA_TYPE_ALIAS(AlpakaService);
0034 
0035 #endif  // HeterogeneousCore_AlpakaServices_interface_AlpakaService_h