Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PABLO: simplify 2:1 balance #335

Merged
merged 15 commits into from
Oct 21, 2022
Merged

PABLO: simplify 2:1 balance #335

merged 15 commits into from
Oct 21, 2022

Conversation

andrea-iob
Copy link
Member

I've rewritten some functions to reduce code duplication. The refactoring removed 1300 lines of code.

There are also some performance improvements. The biggest one is related to the last commit. After the latest code refactoring, it is no more necessary to relay the AUX bit for 2:1 balance. Moreover, that bit was not properly reset and 2:1 balance was check on many more octants than actually needed. This leads to a speed improvement of 25x for the function that perform load balance. All tests pass, however a thorough code review and some more test are needed to make sure the changes are fine.

Original profile of localBalance:
original

Updated profile of localBalance:
updated

Copy link
Member

@marcocisternino marcocisternino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested using several complex geometries. Basically, the generated mesh is equal to the mesh generated by the previous version. The max speed up I could see in mesh generation is about 5% of the previous version. The tests have been based on: number of global elements, checking 1:1 of slices of the mesh, comparison by subtraction of global ids, checking of number of the elements and of their configuration level by level.
We must continuously pay the our attention to the effects of this mod, because a lot of unknown configurations should be tested.

@andrea-iob
Copy link
Member Author

Rebased on current master.

@andrea-iob andrea-iob merged commit f669349 into master Oct 21, 2022
@andrea-iob andrea-iob deleted the PABLO.simplify.balance branch October 21, 2022 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants