CMS 3D CMS Logo

TestCUDAProducerGPUKernel.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_CUDACore_TestCUDAProducerGPUKernel_h
2 #define HeterogeneousCore_CUDACore_TestCUDAProducerGPUKernel_h
3 
4 #include <string>
5 
6 #include <cuda_runtime.h>
7 
9 
20 public:
21  static constexpr int NUM_VALUES = 4000;
22 
23  TestCUDAProducerGPUKernel() = default;
24  ~TestCUDAProducerGPUKernel() = default;
25 
26  // returns (owning) pointer to device memory
28  return runAlgo(label, nullptr, stream);
29  }
31  const float* d_input,
32  cudaStream_t stream) const;
33 
34  void runSimpleAlgo(float* d_data, cudaStream_t stream) const;
35 };
36 
37 #endif
TestCUDAProducerGPUKernel()=default
~TestCUDAProducerGPUKernel()=default
void runSimpleAlgo(float *d_data, cudaStream_t stream) const
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
char const * label
cms::cuda::device::unique_ptr< float[]> runAlgo(const std::string &label, cudaStream_t stream) const