CMS 3D CMS Logo

DeviceAdditionWrapper.dev.cc
Go to the documentation of this file.
1 #include <cstdint>
2 
3 #include <alpaka/alpaka.hpp>
4 
9 
11 
13  const float* __restrict__ in1,
14  const float* __restrict__ in2,
15  float* __restrict__ out,
16  uint32_t size) {
17  alpaka::exec<Acc1D>(queue, cms::alpakatools::make_workdiv<Acc1D>(32, 32), KernelAddVectorsF{}, in1, in2, out, size);
18  }
19 
21  const double* __restrict__ in1,
22  const double* __restrict__ in2,
23  double* __restrict__ out,
24  uint32_t size) {
25  alpaka::exec<Acc1D>(queue, cms::alpakatools::make_workdiv<Acc1D>(32, 32), KernelAddVectorsD{}, in1, in2, out, size);
26  }
27 
28 } // namespace ALPAKA_ACCELERATOR_NAMESPACE::test
void wrapper_add_vectors_f(Queue &queue, const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, uint32_t size)
void wrapper_add_vectors_d(Queue &queue, const double *__restrict__ in1, const double *__restrict__ in2, double *__restrict__ out, uint32_t size)