File indexing completed on 2024-09-13 22:52:23
0001 #ifndef DataFormats_VertexSoA_interface_ZVertexSoACollection_h
0002 #define DataFormats_VertexSoA_interface_ZVertexSoACollection_h
0003
0004 #include <cstdint>
0005
0006 #include <alpaka/alpaka.hpp>
0007
0008 #include "DataFormats/Portable/interface/alpaka/PortableCollection.h"
0009 #include "DataFormats/VertexSoA/interface/ZVertexDevice.h"
0010 #include "DataFormats/VertexSoA/interface/ZVertexHost.h"
0011 #include "DataFormats/VertexSoA/interface/ZVertexSoA.h"
0012 #include "HeterogeneousCore/AlpakaInterface/interface/CopyToHost.h"
0013 #include "HeterogeneousCore/AlpakaInterface/interface/config.h"
0014
0015 namespace ALPAKA_ACCELERATOR_NAMESPACE {
0016
0017 using ZVertexSoACollection =
0018 std::conditional_t<std::is_same_v<Device, alpaka::DevCpu>, ZVertexHost, ZVertexDevice<Device>>;
0019
0020 }
0021
0022 ASSERT_DEVICE_MATCHES_HOST_COLLECTION(ZVertexSoACollection, ZVertexHost);
0023
0024 #endif