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

[test] Smooth.SineSurface fails - the difference between prop3.volume and 8.43 exceeds 0.01 #848

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

cjmayo
Copy link
Contributor

@cjmayo cjmayo commented Jun 16, 2024

Not for merging

 [ RUN      ] Smooth.SineSurface
/home/runner/work/manifold/manifold/test/smooth_test.cpp:361: Failure
The difference between prop3.volume and 8.43 is 0.012265510559082315, which exceeds 0.01, where
prop3.volume evaluates to 8.442265510559082,
8.43 evaluates to 8.4299999999999997, and
0.01 evaluates to 0.01.
[  FAILED  ] Smooth.SineSurface (17 ms)

Appears to happen only when both -march and -O are used.

Something is setting -O3 here, but I can reproduce with -march=x86-64-v3 -O2 and -march=znver2 -O2, on GCC 13 and 14 respectively.

manifold-2.5.0 passes all tests with -march and -O.

@elalish
Copy link
Owner

elalish commented Jun 16, 2024

Looks like I just didn't update the number accurately - I'm getting 8.438 locally, so the check ought to be 8.44. Want to update it and check it's okay? This looks like some rounding error from doing ops in a different order probably. Let me know if you actually notice something ugly in the resulting shape: ./manifold_test --gtest_filter=Smooth.SineSurface -e

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.71%. Comparing base (d437097) to head (19428c5).
Report is 52 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #848      +/-   ##
==========================================
- Coverage   91.84%   89.71%   -2.13%     
==========================================
  Files          37       62      +25     
  Lines        4976     8858    +3882     
  Branches        0      961     +961     
==========================================
+ Hits         4570     7947    +3377     
- Misses        406      911     +505     

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

@cjmayo
Copy link
Contributor Author

cjmayo commented Jun 17, 2024

8.44 works. Not exactly sure what to look for but nothing obviously irregular in the shape.

@elalish
Copy link
Owner

elalish commented Jun 17, 2024

Care to simplify the PR to that one-liner?

@cjmayo
Copy link
Contributor Author

cjmayo commented Jun 18, 2024

Test commit dropped. Still passes; good to go.

Copy link
Owner

@elalish elalish left a comment

Choose a reason for hiding this comment

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

Thanks!

@elalish elalish merged commit 7b10590 into elalish:master Jun 18, 2024
20 checks passed
@cjmayo cjmayo deleted the sinesurface branch June 18, 2024 18:58
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