Collects and reports elements ids and data using an atomic counter. This class provides functionality to collect data from multiple threads safely by incrementing through an atomic counter for each reported element's ID. The collected IDs are stored in a size limited buffer, which can be used later for reporting or analysis purposes.
More...
#include <SolutionCheckKernelsHelpers.hpp>
|
|
using | ElementCount = int32_t |
| |
|
| template<typename CollectorAtomicPolicy > |
| GEOS_HOST_DEVICE void | collectElement (CollectorAtomicPolicy, ElementReport const &report) const |
| | Collects a single element report and adds its ID to the output buffer if not disabled and there are available slots in the buffer. More...
|
| |
|
|
class | ElementsReporterBuffer |
| |
Collects and reports elements ids and data using an atomic counter. This class provides functionality to collect data from multiple threads safely by incrementing through an atomic counter for each reported element's ID. The collected IDs are stored in a size limited buffer, which can be used later for reporting or analysis purposes.
Definition at line 45 of file SolutionCheckKernelsHelpers.hpp.
◆ collectElement()
template<typename CollectorAtomicPolicy >
Collects a single element report and adds its ID to the output buffer if not disabled and there are available slots in the buffer.
- Template Parameters
-
| CollectorAtomicPolicy | The atomic increment operation to use for thread-safe counter increments. |
- Parameters
-
| report | A constant reference to an ElementReport object containing data from a single element |
Definition at line 85 of file SolutionCheckKernelsHelpers.hpp.
The documentation for this class was generated from the following file: