-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-35530][ML][TESTS] Fix rounding error in DifferentiableLossAggregatorSuite with Java 11 #32673
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
Conversation
|
Kubernetes integration test starting |
|
Test build #138970 has finished for PR 32673 at commit
|
|
Kubernetes integration test status success |
.../src/test/scala/org/apache/spark/ml/optim/aggregator/DifferentiableLossAggregatorSuite.scala
Outdated
Show resolved
Hide resolved
|
Kubernetes integration test starting |
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good up to my best knowledge.
|
Test build #139017 has finished for PR 32673 at commit
|
|
Kubernetes integration test status success |
|
Merged to master. |
What changes were proposed in this pull request?
This PR fixes an test failure of
DifferentiableLossAggregatorSuitewith Java 11.Why are the changes needed?
I'm personally checking whether all the tests pass with Java 11 for the current master and I found DifferentiableLossAggregatorSuite fails.
https://github.com/sarutak/spark/runs/2661859541?check_suite_focus=true#step:9:13895
The reason seems that the implementation of Blas.daxpy is different between for Java 8 and Java 11. For Java 11,
Math.fmais used.https://github.com/luhenry/netlib/blob/v2.2.0/blas/src/main/java/dev/ludovic/netlib/blas/Java8BLAS.java#L92
https://github.com/luhenry/netlib/blob/0053ea30b11686336cbdb8c7fceb41d59d268fa2/blas/src/main/java/dev/ludovic/netlib/blas/Java11BLAS.java#L40
To remove the rounding error, this PR changes
TestAggregator.addwith fma.Does this PR introduce any user-facing change?
No.
How was this patch tested?
I confirmed
DifferentiableLossAggregatorSuitepasses with both Java 8 and Java 11.