CMS 3D CMS Logo

AlpakaTestDeviceAdditionAlgo.dev.cc
Go to the documentation of this file.
1 #include <cstdint>
2 
3 #include <alpaka/alpaka.hpp>
4 
8 
10 
12 
14  ALPAKA_FN_ACC void operator()(Acc1D const& acc,
15  const float* __restrict__ in1,
16  const float* __restrict__ in2,
17  float* __restrict__ out,
18  uint32_t size) const {
19  test::add_vectors_f(acc, in1, in2, out, size);
20  }
21  };
22 
24  const float* __restrict__ in1,
25  const float* __restrict__ in2,
26  float* __restrict__ out,
27  uint32_t size) {
28  alpaka::exec<Acc1D>(queue, cms::alpakatools::make_workdiv<Acc1D>(32, 32), KernelAddVectorsF{}, in1, in2, out, size);
29  }
30 
31 } // namespace ALPAKA_ACCELERATOR_NAMESPACE::HeterogeneousTestAlpakaDevicePlugins
ALPAKA_FN_ACC void operator()(Acc1D const &acc, const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, uint32_t size) const
ALPAKA_FN_ACC void add_vectors_f(Acc1D const &acc, float const *__restrict__ in1, float const *__restrict__ in2, float *__restrict__ out, uint32_t size)
void wrapper_add_vectors_f(Queue &queue, const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, uint32_t size)