File indexing completed on 2024-04-06 12:15:41
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 }
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 }
0032
0033 DECLARE_ALPAKA_TYPE_ALIAS(AlpakaService);
0034
0035 #endif