1 #ifndef HeterogeneousCore_AlpakaTest_interface_AlpakaESTestData_h 2 #define HeterogeneousCore_AlpakaTest_interface_AlpakaESTestData_h 18 template <
typename TDev>
31 auto size()
const {
return alpaka::getExtentProduct(
buffer_); }
39 template <
typename TDev>
55 typename ECollection::ConstView
eView_;
84 template <
typename TQueue>
96 auto dstBuffer = cms::alpakatools::make_device_buffer<int[]>(
queue, srcData.
size());
104 template <
typename TQueue>
108 using TDevice = alpaka::Dev<TQueue>;
AlpakaESTestDataE(ECollection e, EDataCollection data)
cms::alpakatools::const_device_buffer< TDev, int[]> ConstBuffer
constexpr auto size() const
PortableCollection< AlpakaESTestSoAE, TDev > ECollection
EDataCollection const & data() const
constexpr ConstView(typename ECollection::ConstView e, typename EDataCollection::ConstView data)
ECollection::ConstView eView_
void copyAsync(device::unique_ptr< T > &dst, const host::unique_ptr< T > &src, cudaStream_t stream)
ECollection const & e() const
PortableCollection< AlpakaESTestSoAEData, TDev > EDataCollection
constexpr int val(int i) const
Namespace of DDCMS conversion namespace.
ConstBuffer const_buffer() const
AlpakaESTestDataB(Buffer buffer)
EDataCollection::ConstView dataView_
ConstBuffer buffer() const
AlpakaESTestDataE(size_t size, size_t dataSize)
typename traits::PortableCollectionTrait< T, TDev >::CollectionType PortableCollection
constexpr int val2(int i) const
cms::alpakatools::device_buffer< TDev, int[]> Buffer
ConstView const_view() const