HeterogeneousCore
CUDATest
plugins
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
8
#include "
HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h
"
9
19
class
TestCUDAProducerGPUKernel
{
20
public
:
21
static
constexpr
int
NUM_VALUES
= 4000;
22
23
TestCUDAProducerGPUKernel
() =
default
;
24
~TestCUDAProducerGPUKernel
() =
default
;
25
26
// returns (owning) pointer to device memory
27
cms::cuda::device::unique_ptr<float[]>
runAlgo
(
const
std::string
&
label
, cudaStream_t
stream
)
const
{
28
return
runAlgo
(
label
,
nullptr
,
stream
);
29
}
30
cms::cuda::device::unique_ptr<float[]>
runAlgo
(
const
std::string
&
label
,
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::runAlgo
cms::cuda::device::unique_ptr< float[]> runAlgo(const std::string &label, cudaStream_t stream) const
Definition:
TestCUDAProducerGPUKernel.h:27
TestCUDAProducerGPUKernel::~TestCUDAProducerGPUKernel
~TestCUDAProducerGPUKernel()=default
cms::cuda::stream
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition:
HistoContainer.h:51
device_unique_ptr.h
TestCUDAProducerGPUKernel::TestCUDAProducerGPUKernel
TestCUDAProducerGPUKernel()=default
TestCUDAProducerGPUKernel::NUM_VALUES
static constexpr int NUM_VALUES
Definition:
TestCUDAProducerGPUKernel.h:21
TestCUDAProducerGPUKernel::runSimpleAlgo
void runSimpleAlgo(float *d_data, cudaStream_t stream) const
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
cms::cuda::device::unique_ptr
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
Definition:
device_unique_ptr.h:33
TestCUDAProducerGPUKernel
Definition:
TestCUDAProducerGPUKernel.h:19
label
const char * label
Definition:
PFTauDecayModeTools.cc:11
Generated for CMSSW Reference Manual by
1.8.16