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 115 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 118 of file TestAlgo.dev.cc.

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

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