#include <AlpakaService.h>
Definition at line 17 of file AlpakaService.h.
◆ AlpakaService()
Definition at line 29 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, and makePlotsFromDump::suffix.
32 #ifdef ALPAKA_ACC_GPU_CUDA_ENABLED 35 #endif // ALPAKA_ACC_GPU_CUDA_ENABLED 36 #ifdef ALPAKA_ACC_GPU_HIP_ENABLED 39 #endif // ALPAKA_ACC_GPU_HIP_ENABLED 50 #ifdef ALPAKA_ACC_GPU_CUDA_ENABLED 56 #endif // ALPAKA_ACC_GPU_CUDA_ENABLED 57 #ifdef ALPAKA_ACC_GPU_HIP_ENABLED 58 if (not rocm
or not
rocm->enabled()) {
63 #endif // ALPAKA_ACC_GPU_HIP_ENABLED 66 auto const&
devices = cms::alpakatools::devices<Platform>();
70 <<
"Disabling " << ALPAKA_TYPE_ALIAS_NAME(
AlpakaService) <<
".";
76 const char*
suffix[] = {
"s.",
":",
"s:"};
79 out << ALPAKA_TYPE_ALIAS_NAME(
AlpakaService) <<
" succesfully initialised.\n";
80 out <<
"Found " <<
n <<
" device" <<
suffix[
n < 2 ?
n : 2];
81 for (
auto const& device :
devices) {
87 cms::alpakatools::getQueueCache<Queue>().
clear();
88 cms::alpakatools::getEventCache<Event>().
clear();
91 cms::alpakatools::getHostCachingAllocator<Queue>();
92 for (
auto const& device :
devices)
93 cms::alpakatools::getDeviceCachingAllocator<Device, Queue>(device);
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 96 of file AlpakaService.cc.
References l1ct::clear().
98 cms::alpakatools::getHostCachingAllocator<Queue>().freeAllCached();
99 for (
auto const& device : cms::alpakatools::devices<Platform>())
100 cms::alpakatools::getDeviceCachingAllocator<Device, Queue>(device).freeAllCached();
103 cms::alpakatools::getQueueCache<Queue>().
clear();
104 cms::alpakatools::getEventCache<Event>().
clear();
◆ enabled()
bool ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::enabled |
( |
| ) |
const |
|
inline |
◆ fillDescriptions()
◆ enabled_
bool ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::enabled_ = false |
|
private |
◆ verbose_
bool ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::verbose_ = false |
|
private |