File indexing completed on 2024-04-06 12:15:39
0001 #ifndef HeterogeneousCore_AlpakaCore_interface_alpaka_MakerMacros_h
0002 #define HeterogeneousCore_AlpakaCore_interface_alpaka_MakerMacros_h
0003
0004 #include "FWCore/Framework/interface/MakerMacros.h"
0005 #include "HeterogeneousCore/AlpakaInterface/interface/config.h"
0006
0007
0008
0009 #ifdef ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED
0010 #define DEFINE_FWK_ALPAKA_MODULE2(name_ns, name) \
0011 DEFINE_FWK_MODULE(name_ns); \
0012 DEFINE_FWK_PSET_DESC_FILLER_IMPL(name_ns, #name "@alpaka", _1)
0013 #define DEFINE_FWK_ALPAKA_MODULE(name) DEFINE_FWK_ALPAKA_MODULE2(ALPAKA_ACCELERATOR_NAMESPACE::name, name)
0014 #else
0015 #define DEFINE_FWK_ALPAKA_MODULE2(name_ns) DEFINE_FWK_MODULE(name_ns)
0016 #define DEFINE_FWK_ALPAKA_MODULE(name) DEFINE_FWK_ALPAKA_MODULE2(ALPAKA_ACCELERATOR_NAMESPACE::name)
0017 #endif
0018
0019 #endif