celeritas-project / celeritas

Celeritas is a new Monte Carlo transport code designed to accelerate scientific discovery in high energy physics by improving detector simulation throughput and energy efficiency using GPUs.
https://celeritas-project.github.io/celeritas/user/index.html
Other
58 stars 32 forks source link

Add a helper function to copy a "collection group" back to the host #1310

Closed sethrj closed 2 weeks ago

sethrj commented 2 weeks ago

This refactors collection assignment semantics (the initial implementation wasn't allowed to use C++17's if constexpr) and adds a helper function to copy an entire state collection group back to the host for debugging.

sethrj commented 2 weeks ago

Since this contains some rather low level changes to device code, I did run unit tests on wildstyle (CUDA) with debug-orange and ndebug-vecgeom.