CMS 3D CMS Logo

List of all members | Public Member Functions
ALPAKA_ACCELERATOR_NAMESPACE::TestAlgoStructKernel Class Reference

Public Member Functions

template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>>
ALPAKA_FN_ACC void operator() (TAcc const &acc, portabletest::TestDeviceObject::Product *data, double x, double y, double z, int32_t id) const
 

Detailed Description

Definition at line 116 of file TestAlgo.dev.cc.

Member Function Documentation

◆ operator()()

template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>>
ALPAKA_FN_ACC void ALPAKA_ACCELERATOR_NAMESPACE::TestAlgoStructKernel::operator() ( TAcc const &  acc,
portabletest::TestDeviceObject::Product *  data,
double  x,
double  y,
double  z,
int32_t  id 
) const
inline

Definition at line 119 of file TestAlgo.dev.cc.

References data, l1ctLayer2EG_cff::id, cms::alpakatools::once_per_grid(), and x.

124  {
125  // run on a single thread
126  if (once_per_grid(acc)) {
127  data->x = x;
128  data->y = y;
129  data->z = z;
130  data->id = id;
131  }
132  }
ALPAKA_FN_ACC constexpr bool once_per_grid(TAcc const &acc)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80