CMS 3D CMS Logo

testPtrAlgoAsync.dev.cc
Go to the documentation of this file.
2 
3 #include "testPtrAlgoAsync.h"
4 
9  alpaka::exec<Acc1D>(
10  queue,
11  cms::alpakatools::make_workdiv<Acc1D>(1, 1),
12  [] ALPAKA_FN_ACC(Acc1D const& acc, View view) {
15  }
16  },
17  ret.view());
18  alpaka::exec<Acc1D>(
19  queue,
20  cms::alpakatools::make_workdiv<Acc1D>(1, size),
21  [] ALPAKA_FN_ACC(Acc1D const& acc, View view) {
22  for (auto i : cms::alpakatools::uniform_elements(acc)) {
23  view.ptr()[i] = 2 * i + 1;
24  }
25  },
26  ret.view());
27  return ret;
28  }
29 } // namespace ALPAKA_ACCELERATOR_NAMESPACE
PortableCollection< TestSoAWithPtr, TDev > TestProductWithPtr
ALPAKA_FN_ACC auto uniform_elements(TAcc const &acc, TArgs... args)
Definition: workdivision.h:311
ret
prodAgent to be discontinued
portabletest::TestProductWithPtr< Device > testPtrAlgoAsync(Queue &queue, int size)
ALPAKA_FN_ACC constexpr bool once_per_grid(TAcc const &acc)
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE void setPtrInTestProductWithPtr(TestSoAWithPtr::View view)