CMS 3D CMS Logo

Functions
HeterogeneousCoreROCmTestDevicePlugins Namespace Reference

Functions

__global__ void kernel_add_vectors_f (const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, size_t size)
 
void wrapper_add_vectors_f (const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, size_t size)
 

Function Documentation

◆ kernel_add_vectors_f()

__global__ void HeterogeneousCoreROCmTestDevicePlugins::kernel_add_vectors_f ( const float *__restrict__  in1,
const float *__restrict__  in2,
float *__restrict__  out,
size_t  size 
)

Definition at line 12 of file ROCmTestDeviceAdditionAlgo.hip.cc.

References cms::rocmtest::add_vectors_f(), and MillePedeFileConverter_cfg::out.

15  {
17  }
size
Write out results.
__device__ void add_vectors_f(const float *__restrict__ in1, const float *__restrict__ in2, float *__restrict__ out, size_t size)

◆ wrapper_add_vectors_f()

void HeterogeneousCoreROCmTestDevicePlugins::wrapper_add_vectors_f ( const float *__restrict__  in1,
const float *__restrict__  in2,
float *__restrict__  out,
size_t  size 
)

Definition at line 19 of file ROCmTestDeviceAdditionAlgo.hip.cc.

References hipCheck, and MillePedeFileConverter_cfg::out.

Referenced by ROCmTestDeviceAdditionModule::analyze().

22  {
23  kernel_add_vectors_f<<<32, 32>>>(in1, in2, out, size);
24  hipCheck(hipGetLastError());
25  }
size
Write out results.
#define hipCheck(ARG,...)
Definition: hipCheck.h:52