CMS 3D CMS Logo

DeviceAdditionKernel.h
Go to the documentation of this file.
1 #ifndef HeterogeneousTest_CUDAKernel_interface_DeviceAdditionKernel_h
2 #define HeterogeneousTest_CUDAKernel_interface_DeviceAdditionKernel_h
3 
4 #include <cstddef>
5 
6 #include <cuda_runtime.h>
7 
8 namespace cms::cudatest {
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::cudatest
21 
22 #endif // HeterogeneousTest_CUDAKernel_interface_DeviceAdditionKernel_h
size
Write out results.
#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)