Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-02-02 16:37:49

0001 #ifndef HeterogeneousCore_AlpakaCore_interface_alpaka_ModuleFactory_h
0002 #define HeterogeneousCore_AlpakaCore_interface_alpaka_ModuleFactory_h
0003 
0004 #include "FWCore/Framework/interface/ModuleFactory.h"
0005 #include "HeterogeneousCore/AlpakaInterface/interface/config.h"
0006 
0007 // force expanding ALPAKA_ACCELERATOR_NAMESPACE before stringification
0008 // use the serial_sync variant for cfi file generation with the type@alpaka C++ type
0009 #ifdef ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED
0010 #define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE2(type_ns, type) \
0011   DEFINE_FWK_EVENTSETUP_MODULE(type_ns);                    \
0012   DEFINE_DESC_FILLER_FOR_ESPRODUCERS_IMPL(type_ns, #type "@alpaka", _1)
0013 #define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type) \
0014   DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE2(ALPAKA_ACCELERATOR_NAMESPACE::type, type)
0015 #else
0016 #define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE2(type_ns) DEFINE_FWK_EVENTSETUP_MODULE(type_ns)
0017 #define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type) \
0018   DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE2(ALPAKA_ACCELERATOR_NAMESPACE::type)
0019 #endif
0020 
0021 #endif