CMS 3D CMS Logo

DeviceAdditionKernel.h
Go to the documentation of this file.
1 #ifndef HeterogeneousTest_ROCmKernel_interface_DeviceAdditionKernel_h
2 #define HeterogeneousTest_ROCmKernel_interface_DeviceAdditionKernel_h
3 
4 #include <cstddef>
5 
6 #include <hip/hip_runtime.h>
7 
8 namespace cms::rocmtest {
9 
10  __global__ void kernel_add_vectors_f(const float* __restrict__ in1,
11  const float* __restrict__ in2,
12  float* __restrict__ out,
13  size_t size);
14 
15  __global__ void kernel_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_ROCmKernel_interface_DeviceAdditionKernel_h
#define __global__
Definition: cudaCompat.h:19
__global__ void kernel_add_vectors_d(const double *__restrict__ in1, const double *__restrict__ in2, double *__restrict__ out, size_t size)
__global__ void kernel_add_vectors_f(const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, size_t size)