tfel
Loading...
Searching...
No Matches
mfront::generic_parallel::sycl::internals::Kernel< Statistics, PointFunction > Struct Template Reference

kernel applying a function at one point and updating the statistics of the batch. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/GenericParallel/SYCL.hxx>

Public Member Functions

void operator() (const ::sycl::id< 1 > i) const
 apply the function at the i-th point

Public Attributes

PointFunction f
 function object applied at one point
Statistics * statistics
 statistics, accessible by the device, or null if the function never reports an event
atomic_size_type rdt0
 ordered key of the initial time step scaling factor

Detailed Description

template<typename Statistics, typename PointFunction>
struct mfront::generic_parallel::sycl::internals::Kernel< Statistics, PointFunction >

kernel applying a function at one point and updating the statistics of the batch.

The statistics are updated by atomic operations, which are only performed if an event occurs at this point (see updateStatistics). Parallel reductions are not used since their synchronisation barriers make the compilation of large kernels fail with AdaptiveCpp on CPUs.

Template Parameters
Statisticsstatistics updated by the devices
PointFunctionfunction object applied at one point

The documentation for this struct was generated from the following file: