Celeritas  0.5.0-86+4a8eea4
Public Member Functions | Public Attributes | List of all members
celeritas::LocalWorkCalculator< T > Struct Template Reference

Calculate local work for a given worker ID. More...

#include <Algorithms.hh>

Public Member Functions

CELER_CONSTEXPR_FUNCTIONoperator() (T local_id)
 

Public Attributes

total_work
 
num_workers
 

Detailed Description

template<class T>
struct celeritas::LocalWorkCalculator< T >

Calculate local work for a given worker ID.

This calculates the amount of local work for the given worker ID when dividing total_work tasks over num_workers workers.


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