Skip to content

Fixed failing Cholesky test by resetting workspace#370

Merged
shakedregev merged 4 commits intonicholson/hykkt-cholesky-fixfrom
shaked/hykkt-cholesky-fix
Sep 5, 2025
Merged

Fixed failing Cholesky test by resetting workspace#370
shakedregev merged 4 commits intonicholson/hykkt-cholesky-fixfrom
shaked/hykkt-cholesky-fix

Conversation

@shakedregev
Copy link
Copy Markdown
Collaborator

@shakedregev shakedregev commented Sep 5, 2025

Description

After the first test, the workspace was not reset even though it is succeeded by a different sparsity system. This is a bug.

Proposed changes

Reset workspace.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask. We're here
to help! This is simply a reminder of what we are going to look for before
merging your code.

  • All tests pass. Code tested on
    • CPU backend
    • CUDA backend
    • HIP backend
  • Code compiles cleanly with flags -Wall -Wpedantic -Wconversion -Wextra.
  • The new code follows Re::Solve style guidelines.
  • There are unit tests for the new code.
  • The new code is documented.
  • The feature branch is rebased with respect to the target branch.

Comment thread tests/unit/hykkt/runHykktCholeskyTests.cpp Outdated
@shakedregev shakedregev merged commit 1cd5532 into nicholson/hykkt-cholesky-fix Sep 5, 2025
@shakedregev shakedregev deleted the shaked/hykkt-cholesky-fix branch September 5, 2025 13:10
nkoukpaizan pushed a commit that referenced this pull request Sep 5, 2025
* fixed failing test by resetting workspace

* Apply pre-commmit fixes

* Update tests/unit/hykkt/runHykktCholeskyTests.cpp

* Apply pre-commmit fixes

---------

Co-authored-by: shakedregev <shakedregev@users.noreply.github.com>
shakedregev added a commit that referenced this pull request Sep 5, 2025
* dependencies

* randomized testing: different sparsity patterns

* fix for cuda: resetting workspace

* Apply pre-commmit fixes

* non clean work around -- fixes cholesky test

* Fixes after rebasing.

* Fixed failing Cholesky test by resetting workspace (#370)

* fixed failing test by resetting workspace

* Apply pre-commmit fixes

* Update tests/unit/hykkt/runHykktCholeskyTests.cpp

* Apply pre-commmit fixes

---------

Co-authored-by: shakedregev <shakedregev@users.noreply.github.com>

* Uncommented Cholesky test on HIP backend, and added syndData calls.

---------

Co-authored-by: Adham Ibrahim <adham.ibrahim@princeton.edu>
Co-authored-by: adhamsi <adhamsi@users.noreply.github.com>
Co-authored-by: kswirydo <kasia.swirydowicz@gmail.com>
Co-authored-by: Shaked Regev <35384901+shakedregev@users.noreply.github.com>
Co-authored-by: shakedregev <shakedregev@users.noreply.github.com>
shakedregev added a commit that referenced this pull request Nov 13, 2025
* dependencies

* randomized testing: different sparsity patterns

* fix for cuda: resetting workspace

* Apply pre-commmit fixes

* non clean work around -- fixes cholesky test

* Fixes after rebasing.

* Fixed failing Cholesky test by resetting workspace (#370)

* fixed failing test by resetting workspace

* Apply pre-commmit fixes

* Update tests/unit/hykkt/runHykktCholeskyTests.cpp

* Apply pre-commmit fixes

---------

Co-authored-by: shakedregev <shakedregev@users.noreply.github.com>

* Uncommented Cholesky test on HIP backend, and added syndData calls.

---------

Co-authored-by: Adham Ibrahim <adham.ibrahim@princeton.edu>
Co-authored-by: adhamsi <adhamsi@users.noreply.github.com>
Co-authored-by: kswirydo <kasia.swirydowicz@gmail.com>
Co-authored-by: Shaked Regev <35384901+shakedregev@users.noreply.github.com>
Co-authored-by: shakedregev <shakedregev@users.noreply.github.com>
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.

1 participant