CMS 3D CMS Logo

Backend.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_AlpakaInterface_interface_Backend_h
2 #define HeterogeneousCore_AlpakaInterface_interface_Backend_h
3 
4 #include <string_view>
5 
6 namespace cms::alpakatools {
7  // Enumeration whose value EDModules can put in the event
8  enum class Backend : unsigned short { SerialSync = 0, CudaAsync = 1, ROCmAsync = 2, TbbAsync = 3, size };
9 
10  Backend toBackend(std::string_view name);
11  std::string_view toString(Backend backend);
12 } // namespace cms::alpakatools
13 
14 #endif
std::string_view toString(Backend backend)
Definition: Backend.cc:24
Backend toBackend(std::string_view name)
Definition: Backend.cc:13