|
Celeritas 0.7.0-dev.169+develop.bdc0041f6
|
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.