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

numba accelerated findDuplicateVectors #596

Merged
merged 12 commits into from
Jan 9, 2024
Merged

Conversation

saransh13
Copy link
Member

Fixes issue #595. The function is ~5-10x faster (after the first compile overhead).

@saransh13 saransh13 requested a review from psavery January 4, 2024 18:49
@pep8speaks
Copy link

pep8speaks commented Jan 4, 2024

Hello @saransh13! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 686:1: E302 expected 2 blank lines, found 1
Line 753:16: E713 test for membership should be 'not in'
Line 755:25: E221 multiple spaces before operator

Comment last updated at 2024-01-09 01:36:41 UTC

psavery and others added 4 commits January 4, 2024 13:22
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>
Copy link
Collaborator

@psavery psavery left a 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).

saransh13 and others added 3 commits January 8, 2024 16:44
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>
@saransh13 saransh13 merged commit bb30312 into master Jan 9, 2024
6 checks passed
@psavery psavery deleted the numba-findduplicate branch February 12, 2024 21:40
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants