Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented May 26, 2021

What changes were proposed in this pull request?

This PR fixes an test failure of DifferentiableLossAggregatorSuite with 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.fma is 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.add with fma.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

I confirmed DifferentiableLossAggregatorSuite passes with both Java 8 and Java 11.

@github-actions github-actions bot added the ML label May 26, 2021
@SparkQA
Copy link

SparkQA commented May 26, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43490/

@SparkQA
Copy link

SparkQA commented May 26, 2021

Test build #138970 has finished for PR 32673 at commit 89cd2b9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 26, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43490/

@SparkQA
Copy link

SparkQA commented May 27, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43534/

Copy link
Member

@HyukjinKwon HyukjinKwon left a 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.

@SparkQA
Copy link

SparkQA commented May 27, 2021

Test build #139017 has finished for PR 32673 at commit 26d9cc8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 27, 2021

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43534/

@HyukjinKwon
Copy link
Member

Merged to master.

@sarutak sarutak deleted the fix-rounding-error branch June 4, 2021 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants