Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
orrery::solvers::WalkCounts Struct Reference

What one walk did, in the two units InteractionCount reports. More...

#include <orrery/solvers/tree_walk.hpp>

Public Attributes

std::uint64_t particle_particle {}
std::uint64_t particle_cell {}

Detailed Description

What one walk did, in the two units InteractionCount reports.

Returned by the walk rather than accumulated into a counter it was handed, because the walks of different targets run on different threads and a shared counter incremented per interaction would be both a data race and, once made atomic, the most contended line in the program.


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