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

Avoid allocations in reduction over adjoints #48120

Merged
merged 1 commit into from
Jan 5, 2023
Merged

Conversation

dkarrasch
Copy link
Member

@dkarrasch dkarrasch commented Jan 4, 2023

Fixes the allocation part of #47703 as advised by @N5N3. Yields a major speedup, but doesn't quite reach the pre-46605 times for that specific size, though @N5N3 mentions that for other sizes the "new" approach is faster. So we may consider to close the issue with this fix?

Fixes #47703.

@dkarrasch dkarrasch merged commit a9506f5 into master Jan 5, 2023
@dkarrasch dkarrasch deleted the dk/adjointreduce branch January 5, 2023 08:06
@jishnub
Copy link
Contributor

jishnub commented Jan 5, 2023

Should this be backported to v1.9?

@dkarrasch dkarrasch added backport 1.8 Change should be backported to release-1.8 backport 1.9 Change should be backported to release-1.9 arrays [a, r, r, a, y, s] labels Jan 5, 2023
KristofferC pushed a commit that referenced this pull request Jan 10, 2023
@KristofferC KristofferC mentioned this pull request Jan 10, 2023
41 tasks
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Jan 17, 2023
KristofferC pushed a commit that referenced this pull request Feb 6, 2023
@KristofferC KristofferC mentioned this pull request Feb 6, 2023
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] backport 1.8 Change should be backported to release-1.8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allocation regression when iterating over Adjoint of Matrix
4 participants