Stars use sort
In this branch, I am optimizing the dopair
functions for the stars. They are about 100 times faster than the previous version on EAGLE_6. The global speedup is about 2x.
I discovered a bug in the optimized version of the hydro. Here https://gitlab.cosma.dur.ac.uk/swift/swiftsim/blob/master/src/runner_doiact.h#L1003 we cannot use this exit condition. hi_max
is not always the max, therefore we can skip a few particles (quick estimation of about 1 missed neighbors every 10'000 particles).
I am not solving it yet (will be in a separate merge request), but the stars are not reproducing this error. Due to this error, the stars sort is not as useful as expected, therefore I am also removing the sorts.
@matthieu, I am also fixing a few checks from your branch.
Currently I am requesting to merge with mpi_stars2_matthieu
, but we can wait a bit longer and do it directly to the master.
Merge request reports
Activity
added 2 commits
added 66 commits
-
ddbe2d20...3d44fb65 - 58 commits from branch
master
- efdaad51 - Start working on non naive stars interactions
- 49badaef - Clean flag UPDATE_STARS
- bb368b54 - fix configure
- 285cbdea - Stars: dopair optimized
- 9ab76ca7 - Stars: optimized dopair1 works
- 89909920 - Stars: dopair_subset optimized and works
- 510631b0 - stars: Reimplement break condition in forloop
- b021e410 - stars: skip subset if no part
Toggle commit list-
ddbe2d20...3d44fb65 - 58 commits from branch
@lhausammann I made some small changes; let me know if you disagree with them.
Otherwise, this is good to go. Handing over to @pdraper for a potential last check.
assigned to @pdraper
mentioned in commit b892e7f5