COO input for lanczos solver should be sorted
Maintainers usually reply within 1 day
@aamijar is already working on this.
Since Nov 19, 2025.
Assessment
This issue has not been assessed yet.
Description
While working on https://github.com/rapidsai/cuml/issues/7225 and with the new COO input support recently introduced in the lanczos solver https://github.com/rapidsai/raft/issues/2832 I came across a important constraint that the COO input must be sorted.
This was a very tricky bug to catch since a COO sparse matrix represents the same underlying matrix whether it is sorted or not. However when running the lanczos solver on an unsorted coo input it would not give good results.
Upon investigating this further I saw that cusparse COO formats actually make the following a requirement
https://docs.nvidia.com/cuda/cusparse/#coordinate-coo
The COO format is assumed to be sorted by row.
However the columns within each row do not need to be sorted.
cuSPARSE supports both sorted and unsorted column indices within a given row.
Since the lanczos solver uses cusparse under the hood we should clearly document that the input should be sorted in the public function header.
- Dominant language
- Cuda
- Stars
- 1.1k
- Forks
- 260
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 21
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/raft
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
[BUG] Half-precision gemm fails with CUBLAS_STATUS_NOT_SUPPORTED when A or B is not 16-byte alignedOpenbug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
[BUG] A column with one infinity sums to NaN in `raft::stats::sum`Possibly taken @galleonli claimed this 4 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
[FEA] Return centers generated by raft::random::make_blobsPossibly taken @NIne-WIngEd claimed this 36 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 53/100
Maintainers usually reply within 1 day