src
HeterogeneousTest
ROCmKernel
plugins
ROCmTestKernelAdditionAlgo.hip.cc
Go to the documentation of this file.
1
#include <cstddef>
2
3
#include <hip/hip_runtime.h>
4
5
#include "
HeterogeneousTest/ROCmKernel/interface/DeviceAdditionKernel.h
"
6
#include "
HeterogeneousCore/ROCmUtilities/interface/hipCheck.h
"
7
8
#include "
ROCmTestKernelAdditionAlgo.h
"
9
10
namespace
HeterogeneousTestROCmKernelPlugins
{
11
12
void
wrapper_add_vectors_f
(
const
float
* __restrict__ in1,
13
const
float
* __restrict__ in2,
14
float
* __restrict__
out
,
15
size_t
size) {
16
cms::rocmtest::kernel_add_vectors_f<<<32, 32>>>(in1, in2,
out
, size);
17
hipCheck
(hipGetLastError());
18
}
19
20
}
// namespace HeterogeneousTestROCmKernelPlugins
ROCmTestKernelAdditionAlgo.h
DeviceAdditionKernel.h
HeterogeneousTestROCmKernelPlugins
Definition:
ROCmTestKernelAdditionAlgo.h:6
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
hipCheck
#define hipCheck(ARG,...)
Definition:
hipCheck.h:52
HeterogeneousTestROCmKernelPlugins::wrapper_add_vectors_f
void wrapper_add_vectors_f(const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, size_t size)
Definition:
ROCmTestKernelAdditionAlgo.hip.cc:12
hipCheck.h
Generated for CMSSW Reference Manual by
1.8.14