CMS 3D CMS Logo

DeviceAddition.h
Go to the documentation of this file.
1 #ifndef HeterogeneousTest_ROCmDevice_interface_DeviceAddition_h
2 #define HeterogeneousTest_ROCmDevice_interface_DeviceAddition_h
3 
4 #include <cstddef>
5 
6 #include <hip/hip_runtime.h>
7 
8 namespace cms::rocmtest {
9 
10  __device__ void add_vectors_f(const float* __restrict__ in1,
11  const float* __restrict__ in2,
12  float* __restrict__ out,
13  size_t size);
14 
15  __device__ void add_vectors_d(const double* __restrict__ in1,
16  const double* __restrict__ in2,
17  double* __restrict__ out,
18  size_t size);
19 
20 } // namespace cms::rocmtest
21 
22 #endif // HeterogeneousTest_ROCmDevice_interface_DeviceAddition_h
size
Write out results.
__device__ void add_vectors_f(const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, size_t size)
__device__ void add_vectors_d(const double *__restrict__ in1, const double *__restrict__ in2, double *__restrict__ out, size_t size)
#define __device__