CMS 3D CMS Logo

AlpakaESTestData.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_AlpakaTest_interface_alpaka_AlpakaESTestData_h
2 #define HeterogeneousCore_AlpakaTest_interface_alpaka_AlpakaESTestData_h
3 
9 
11  // Model 1
13  public:
16 
18 
19  Buffer buffer() { return buffer_; }
20  ConstBuffer buffer() const { return buffer_; }
21  ConstBuffer const_buffer() const { return buffer_; }
22 
23  int const* data() const { return buffer_.data(); }
24  auto size() const { return alpaka::getExtentProduct(buffer_); }
25 
26  private:
28  };
29 
30  // Model 3
33 
36 } // namespace ALPAKA_ACCELERATOR_NAMESPACE
37 
38 #endif
cms::alpakatools::const_device_buffer< Device, int[]> ConstBuffer
PortableHostCollection< AlpakaESTestSoAC > AlpakaESTestDataCHost
PortableHostCollection< AlpakaESTestSoAD > AlpakaESTestDataDHost
cms::alpakatools::device_buffer< Device, int[]> Buffer
typename detail::buffer_type< TDev, T >::type device_buffer
Definition: memory.h:166
def move(src, dest)
Definition: eostools.py:511
alpaka::ViewConst< device_buffer< TDev, T > > const_device_buffer
Definition: memory.h:169