Skip to content

AD Performance #467

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

Merged
merged 46 commits into from
Aug 25, 2022
Merged

AD Performance #467

merged 46 commits into from
Aug 25, 2022

Conversation

willtebbutt
Copy link
Member

Summary

Extends work from #466 to many (nearly all) of our kernels. Identifies various performance bugs in the process, and fixes many of them.

Proposed changes

  • ...
    Introduces the test_interface_ad_perf function in test/test_utils.jl. This utilises the allocations-invariant-to-input-size heuristic to check performance.

What alternatives have you considered?

N/A

Breaking changes

None

@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #467 (2e560ff) into master (1831cc6) will increase coverage by 0.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #467      +/-   ##
==========================================
+ Coverage   93.09%   93.70%   +0.61%     
==========================================
  Files          52       52              
  Lines        1275     1351      +76     
==========================================
+ Hits         1187     1266      +79     
+ Misses         88       85       -3     
Impacted Files Coverage Δ
src/TestUtils.jl 94.73% <100.00%> (+0.61%) ⬆️
src/basekernels/fbm.jl 100.00% <100.00%> (ø)
src/basekernels/nn.jl 98.00% <100.00%> (+0.38%) ⬆️
src/basekernels/polynomial.jl 100.00% <100.00%> (ø)
src/basekernels/rational.jl 100.00% <100.00%> (ø)
src/kernels/normalizedkernel.jl 82.50% <100.00%> (+2.50%) ⬆️
src/kernels/scaledkernel.jl 88.23% <100.00%> (ø)
src/transform/ardtransform.jl 93.33% <100.00%> (+1.02%) ⬆️
src/utils.jl 91.46% <100.00%> (+0.10%) ⬆️
src/chainrules.jl 87.65% <0.00%> (+3.70%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@theogf
Copy link
Member

theogf commented Aug 23, 2022

Don't forget to bump the version.

@willtebbutt
Copy link
Member Author

@devmotion thanks for the careful review -- I believe I've resolved everything that you discussed

willtebbutt and others added 3 commits August 25, 2022 11:40
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@willtebbutt
Copy link
Member Author

All CI appears to be passing at last!

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@willtebbutt willtebbutt merged commit d168a76 into master Aug 25, 2022
@willtebbutt willtebbutt deleted the wct/ad-perf branch August 25, 2022 11:42
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