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] Fix previous discovered flaky test_sparse_linear_solver.py. #8110

Merged

Conversation

houkensjtu
Copy link
Contributor

@houkensjtu houkensjtu commented May 31, 2023

Issue: #8045

Brief Summary

test_sparse_linear_solver.py failed randomly before as reported in issue #8045. The reason for the failures was two-fold:

  1. dtype was not aligned between the SparseMatrixBuilder and the SparseSolver, that caused 95% of the failures.
  2. The randomly generated matrix A_psd is not positive-definite and caused about 5% of the failures.

With this PR fixing both of the issues, test_sparse_linear_solver.py should pass robustly enough.

Additional Comment

Note that with this PR, the two tests that were skipped before (test_gpu_sparse_solver and test_gpu_sparse_solver2) now come back. @ailzhang

@houkensjtu houkensjtu requested a review from FantasyVR May 31, 2023 08:38
@netlify
Copy link

netlify bot commented May 31, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit a26e733
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/6477142ac1f5480009bf75d4
😎 Deploy Preview https://deploy-preview-8110--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@houkensjtu houkensjtu requested a review from ailzhang May 31, 2023 08:39
@houkensjtu houkensjtu requested a review from ailzhang May 31, 2023 11:12
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@FantasyVR FantasyVR left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks~

@houkensjtu houkensjtu merged commit 136f7ff into taichi-dev:master Jun 1, 2023
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