-
Notifications
You must be signed in to change notification settings - Fork 25
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
numba accelerated findDuplicateVectors #596
Conversation
Hello @saransh13! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-01-09 01:36:41 UTC |
6c37031
to
46011b7
Compare
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Too many numba threads are causing allocator contention. Therefore we can limit the number of numba threads to 8. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! This produces a nice speed-up, and I verified that a few workflows produce the same results (including fit-grains).
It's not in parallel anymore, so we don't need it. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Instead of computing the structure factor every time a property of the material changes, flag the structure factor as invalid, and only re-compute it if it is requested. This significantly speeds up interaction with the lattice parameter, such as with the PT sliders. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
Fixes issue #595. The function is ~5-10x faster (after the first compile overhead).