Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-07-03 00:42:40

0001 #ifndef RecoTracker_PixelSeeding_interface_CAPairSoACollection_h
0002 #define RecoTracker_PixelSeeding_interface_CAPairSoACollection_h
0003 
0004 #include <cstdint>
0005 
0006 #include <alpaka/alpaka.hpp>
0007 
0008 #include "DataFormats/Portable/interface/alpaka/PortableCollection.h"
0009 #include "RecoTracker/PixelSeeding/interface/CAPairDevice.h"
0010 #include "RecoTracker/PixelSeeding/interface/CAPairHost.h"
0011 #include "RecoTracker/PixelSeeding/interface/CAPairSoA.h"
0012 #include "HeterogeneousCore/AlpakaInterface/interface/CopyToHost.h"
0013 #include "HeterogeneousCore/AlpakaInterface/interface/config.h"
0014 
0015 namespace ALPAKA_ACCELERATOR_NAMESPACE {
0016 
0017   using ::caStructures::CAPairDevice;
0018   using ::caStructures::CAPairHost;
0019   using CAPairSoACollection =
0020       std::conditional_t<std::is_same_v<Device, alpaka::DevCpu>, CAPairHost, CAPairDevice<Device>>;
0021 
0022 }  // namespace ALPAKA_ACCELERATOR_NAMESPACE
0023 
0024 ASSERT_DEVICE_MATCHES_HOST_COLLECTION(CAPairSoACollection, ::caStructures::CAPairHost);
0025 
0026 #endif  // RecoTracker_PixelSeeding_interface_CAPairSoACollection_h