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

Import stage2 demand-driven forward mode #95

Merged
merged 1 commit into from
Dec 28, 2022
Merged

Import stage2 demand-driven forward mode #95

merged 1 commit into from
Dec 28, 2022

Conversation

Keno
Copy link
Collaborator

@Keno Keno commented Dec 27, 2022

This imports a ripped-out version of the demand-driven AD code from CedarSim and hooks it into the ADInterpreter. Starting with this code has the advantage that it is working-ish, but the disadvantage that it doesn't really interact with the rest of Diffractor yet. Still, I think it's a reasonable point to start. I'm doing this as a separate commit, so we can keep better track of the subsequent refactoring.

This imports a ripped-out version of the demand-driven AD code from
CedarSim and hooks it into the ADInterpreter. Starting with this code
has the advantage that it is working-ish, but the disadvantage that
it doesn't really interact with the rest of Diffractor yet. Still,
I think it's a reasonable point to start. I'm doing this as a
separate commit, so we can keep better track of the subsequent
refactoring.
@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2022

Codecov Report

Base: 50.21% // Head: 52.68% // Increases project coverage by +2.47% 🎉

Coverage data is based on head (0d2f417) compared to base (29a14f9).
Patch coverage: 66.29% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   50.21%   52.68%   +2.47%     
==========================================
  Files          23       27       +4     
  Lines        2350     2513     +163     
==========================================
+ Hits         1180     1324     +144     
- Misses       1170     1189      +19     
Impacted Files Coverage Δ
src/Diffractor.jl 100.00% <ø> (ø)
src/stage1/recurse_fwd.jl 89.47% <ø> (-2.91%) ⬇️
src/stage2/abstractinterpret.jl 2.30% <15.78%> (+2.30%) ⬆️
src/codegen/forward_demand.jl 57.01% <57.01%> (ø)
src/stage2/interpreter.jl 13.00% <66.66%> (+13.00%) ⬆️
src/stage2/lattice.jl 22.22% <66.66%> (+22.22%) ⬆️
src/analysis/forward.jl 91.66% <91.66%> (ø)
src/codegen/forward.jl 94.02% <94.02%> (ø)
src/stage1/compiler_utils.jl 96.87% <100.00%> (+0.20%) ⬆️
src/stage2/forward.jl 100.00% <100.00%> (ø)
... and 3 more

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Keno Keno merged commit d278a85 into main Dec 28, 2022
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.

2 participants