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

Tests II: more Julia function tests #969

Merged
merged 13 commits into from
Dec 8, 2024
Merged

Conversation

jgreener64
Copy link
Contributor

I added tests for more Julia functions, including some which have had Enzyme issues fixed recently. I also added a nested reverse mode test and turned on previous tests that now pass on older Julia versions.

All pass on my machine, let's see what CI says.

@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.82%. Comparing base (037dfed) to head (31d9fc7).
Report is 283 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #969      +/-   ##
==========================================
+ Coverage   67.50%   70.82%   +3.31%     
==========================================
  Files          31       55      +24     
  Lines       12668    16294    +3626     
==========================================
+ Hits         8552    11540    +2988     
- Misses       4116     4754     +638     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wsmoses
Copy link
Member

wsmoses commented Jul 30, 2023

@jgreener64 can you isolate the 1.8 segfault into an issue?

@jgreener64
Copy link
Contributor Author

Opened #970 and #971 and disabled the failing tests for now.

test/runtests.jl Outdated
# On Julia 1.6 the gradients are wrong (0.7 not 1.2) and on 1.7 it errors
@static if VERSION ≥ v"1.8-"
# On Julia 1.6 the gradients are wrong (0.7 not 1.2)
@static if VERSION ≥ v"1.7-"
Copy link
Member

Choose a reason for hiding this comment

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

Open a bug for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

remove the version now?

@wsmoses
Copy link
Member

wsmoses commented Jul 31, 2023

Can you isolate that 1.7 assertion error or segfault?

@jgreener64
Copy link
Contributor Author

I can't reproduce the Julia 1.7 issue locally, pushing some print statements to isolate it in CI.

@jgreener64
Copy link
Contributor Author

Julia 1.7 issue reported at #974.

A Julia 1.6 issue in try/catch reported at #971.

@jgreener64
Copy link
Contributor Author

Raised two new issues: #1118 and #1119.

@jgreener64
Copy link
Contributor Author

I think the only unresolved issue is #970, I could remove that test to merge this PR.

test/runtests.jl Outdated
f26(x) = circshift([1.0, 2x, 3.0], 1)[end]
@test autodiff(Reverse, f26, Active, Active(2.0))[1][1] == 2
@test autodiff(Forward, f26, Duplicated(2.0, 1.0))[1] == 2
println("Done 26")
Copy link
Member

Choose a reason for hiding this comment

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

remove these prints?

@wsmoses
Copy link
Member

wsmoses commented Sep 28, 2024

@jgreener64 if still worth adding, could this be rebased?

@jgreener64
Copy link
Contributor Author

Opened #1941.

@jgreener64
Copy link
Contributor Author

Opened #2102.

@jgreener64
Copy link
Contributor Author

I think test failures are unrelated and this is ready to go.

@wsmoses wsmoses merged commit 1d3b801 into EnzymeAD:main Dec 8, 2024
17 of 28 checks passed
@jgreener64 jgreener64 deleted the tests branch December 9, 2024 10:45
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