ComputationalRadiationPhysics / picongpu

Performance-Portable Particle-in-Cell Simulations for the Exascale Era :sparkles:
https://picongpu.readthedocs.io
Other
693 stars 218 forks source link

Plugin: Center of Mass | Device-Reduce Stability #523

Open ax3l opened 10 years ago

ax3l commented 10 years ago

Calculate the center of mass for each species (3D vector) and its momentum (an other 3D vector).

Quite interesting for mass limited targets.

ax3l commented 9 years ago

center of mass

:warning: reduce over r's is pretty unstable.

possible solution: super-cell wise -> GPU wise -> global (a fake cascade/tree or pairwise summation) alternatively/in addition: Kahan Summation, thx @psychocoderHPC

ax3l commented 9 years ago

Also: Narumi correction (HPC Asia, ~2009) - originally designed for MD codes (hard to find conference paper).

(mentioned by Scott LeGrand (Amazon; AMBER) in GTC15 during S5478 - I Can't Believe It's Not Just Molecular Dynamics (It's Machine Learning Too) - btw, great talk)

ax3l commented 6 years ago

cub also implements a device-reduce operation that we could use.