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

Fix sparseMatToPdarray test failures for distributed arrays #3804

Conversation

jeremiah-corrado
Copy link
Contributor

@jeremiah-corrado jeremiah-corrado commented Sep 30, 2024

Fixes a couple of bugs with the distributed implementation of sparseMatToPdarray.

Also fixes a few other bugs/issues with the sparse matrix code:

  • ChplConfig.CHPL_COMM is now used to determine whether sparse matrices are distributed. Matrices created by randSparseMatrix were always distributed before.
  • The SparseSymEntry class now stores a distributed sparse array when the server is configured for multi-locale. It was always storing a non-distributed array before.
  • fillSparseMatrix now populates matrices in either a row-major (for CSR) or column-major (for CSC) order. For distributed arrays, it was populating values one locale at a time, causing them to appear out of order overall.
    • this hadn't been picked up by testing because sparseMatToPdarray was doing the inverse operation, instead of returning values in a global row-major or column-major order

…trols for whether domains are distributed. Use same makeSparseArray routine in SparseSymArray and randSparseMatrix helper proc

Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
…ad of 1 locale at a time

Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
@jeremiah-corrado jeremiah-corrado marked this pull request as ready for review October 2, 2024 22:15
@bmcdonald3 bmcdonald3 added this pull request to the merge queue Oct 7, 2024
@bmcdonald3 bmcdonald3 removed this pull request from the merge queue due to a manual request Oct 7, 2024
…esses to CSR/CSC data structures

Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
jeremiah-corrado and others added 3 commits October 8, 2024 10:39
…ow/column. Use 'rows/colsAndVals' iterators to avoid use of 'contains' query when populating 1D arrays

Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
@bmcdonald3 bmcdonald3 added this pull request to the merge queue Oct 9, 2024
Merged via the queue into Bears-R-Us:master with commit 7c0599a Oct 9, 2024
11 checks passed
@jeremiah-corrado jeremiah-corrado deleted the fix-sparseMatToPdarray-distributed branch October 10, 2024 20:57
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.

4 participants