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

Compute R-err and print it to iterations.json #233

Merged
merged 8 commits into from
Apr 23, 2024
Merged

Compute R-err and print it to iterations.json #233

merged 8 commits into from
Apr 23, 2024

Conversation

vasdommes
Copy link
Collaborator

  • Compute R-err = maxAbs(mu * I - XY) and print it to out/iterations.json
  • Calculate XY once and reuse it for R-err, mu and compute_search_direction().
    This should make compute_search_direction() ~10-15% faster.
  • Fix P-err computation: old version of compute_primal_residues_and_error_P_Ax_X() did not call AllReduce() to find maximum across all ranks. Now we call AllReduce() in Block_Diagonal_Matrix::max_abs().
    This bug probably did not affect solver behaviour: in our integration tests at precision=768, P-err was the same across all ranks up to the last ~100 bits.

…bal maximum

Fixes P-err calculation in compute_primal_residues_and_error_P_Ax_X(), where AllReduce was forgotten.

This bug probably did not affect solver behaviour:
in our integration tests, P-err was the same across all ranks up to the last ~100 bits.
@vasdommes vasdommes merged commit 32afe5d into master Apr 23, 2024
2 checks passed
@vasdommes vasdommes deleted the R-error branch April 23, 2024 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant