1 #ifndef HeterogeneousCore_AlpakaCore_interface_alpaka_ESDeviceProduct_h 2 #define HeterogeneousCore_AlpakaCore_interface_alpaka_ESDeviceProduct_h 24 T const&
get(Device
const& dev)
const {
return *
cache_[alpaka::getNativeHandle(dev)]; }
44 template <
typename TProduct,
typename TStorage>
52 auto const idev = alpaka::getNativeHandle(dev);
std::vector< TStorage > data_
void insert(Device const &dev, TStorage data)
virtual ~ESDeviceProduct()
ESDeviceProduct(size_t ndevices)
std::vector< T const * > cache_
void setCache(size_t idev, T const *data)
char data[epos_bytes_allocation]
ESDeviceProductWithStorage(size_t ndevices)