Celeritas
0.5.0-56+6b053cd
|
Calculate local work for a given worker ID. More...
#include <Algorithms.hh>
Public Member Functions | |
CELER_CONSTEXPR_FUNCTION T | operator() (T local_id) |
Public Attributes | |
T | total_work |
T | num_workers |
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.