Repository navigation
Improve C++ - #17
Improve C++#17isuruf wants to merge 2 commits into
Conversation
|
I really want to keep the "historical" version from nbabel.org (used by Zwart, 2020). Can you please improve |
|
Thanks for your implementation. I included in https://github.com/paugier/nbabel/blob/master/cpp/main_arrays.cpp See a5b7247 There is now in the README: Note 6: The directory "cpp" also contains 2 faster C++ implementations (proposed by @bolverk and @isuruf) which run on my PC in 25 s, 104 s and 7080 s for the AoS implementation by @bolverk and 26s, 104 s and 7330 s for the For comparison, for 16384 particles, the sequential Python implementation using Pythran runs here in 7220 s. |
|
Looks like my implementation is not an SoA either. Needs more work to make it SoA. |
|
Ah... How do see that it is not "SoA" ? If you try to do that, you can work in https://github.com/paugier/nbabel/blob/master/cpp/main_arrays.cpp and also look at the problem with energy conservation. You can compare the results of the 3 C++ implementations. |
No description provided.