#include <AlpakaService.h>
Definition at line 17 of file AlpakaService.h.
◆ AlpakaService()
Definition at line 98 of file AlpakaService.cc.
References l1ct::clear(), cms::alpakatools::devices(), enabled_, ForwardName::getName(), dqmiodumpmetadata::n, Skims_PA_cff::name, or, MillePedeFileConverter_cfg::out, cms::alpakatools::platform(), AlCaHLTBitMon_QueryRunRegistry::string, makePlotsFromDump::suffix, and verbose_.
101 #ifdef ALPAKA_ACC_GPU_CUDA_ENABLED 104 #endif // ALPAKA_ACC_GPU_CUDA_ENABLED 105 #ifdef ALPAKA_ACC_GPU_HIP_ENABLED 108 #endif // ALPAKA_ACC_GPU_HIP_ENABLED 118 #ifdef ALPAKA_ACC_GPU_CUDA_ENABLED 124 #endif // ALPAKA_ACC_GPU_CUDA_ENABLED 125 #ifdef ALPAKA_ACC_GPU_HIP_ENABLED 126 if (not rocm
or not
rocm->enabled()) {
131 #endif // ALPAKA_ACC_GPU_HIP_ENABLED 134 auto const&
devices = cms::alpakatools::devices<Platform>();
138 <<
"Disabling " << ALPAKA_TYPE_ALIAS_NAME(
AlpakaService) <<
".";
144 const char*
suffix[] = {
"s.",
":",
"s:"};
147 out << ALPAKA_TYPE_ALIAS_NAME(
AlpakaService) <<
" succesfully initialised.\n";
148 out <<
"Found " <<
n <<
" device" <<
suffix[
n < 2 ?
n : 2];
149 for (
auto const& device :
devices) {
155 cms::alpakatools::getQueueCache<Queue>().
clear();
156 cms::alpakatools::getEventCache<Event>().
clear();
161 cms::alpakatools::getHostCachingAllocator<Queue>(hostAllocatorConfig,
verbose_);
164 for (
auto const& device :
devices)
165 cms::alpakatools::getDeviceCachingAllocator<Device, Queue>(device, deviceAllocatorConfig,
verbose_);
AlpakaService(edm::ParameterSet const &config, edm::ActivityRegistry &)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Log< level::Info, false > LogInfo
std::string getName(const G4String &)
Log< level::Warning, false > LogWarning
◆ ~AlpakaService()
ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::~AlpakaService |
( |
| ) |
|
Definition at line 168 of file AlpakaService.cc.
References l1ct::clear().
170 cms::alpakatools::getHostCachingAllocator<Queue>().freeAllCached();
171 for (
auto const& device : cms::alpakatools::devices<Platform>())
172 cms::alpakatools::getDeviceCachingAllocator<Device, Queue>(device).freeAllCached();
175 cms::alpakatools::getQueueCache<Queue>().
clear();
176 cms::alpakatools::getEventCache<Event>().
clear();
◆ enabled()
bool ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::enabled |
( |
| ) |
const |
|
inline |
◆ fillDescriptions()
Definition at line 179 of file AlpakaService.cc.
References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.
181 desc.addUntracked<
bool>(
"enabled",
true);
182 desc.addUntracked<
bool>(
"verbose",
false);
184 ->setComment(
"Configuration for the host's CachingAllocator");
186 ->setComment(
"Configuration for the devices' CachingAllocator");
AlpakaService(edm::ParameterSet const &config, edm::ActivityRegistry &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
◆ enabled_
bool ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::enabled_ = false |
|
private |
◆ verbose_
bool ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::verbose_ = false |
|
private |