Update outdated workaround for `cusparseSpMV`

Open
#2,854 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
performance

Research direction

Start at cpp/include/raft/spectral/detail/matrix_wrappers.hpp around lines 203-214, then search the repository for other cusparseSpMV usages. Compare each call with the CUDA 12 cusparseSpMV documentation and verify that the workaround is consistently updated without breaking the relevant CUDA builds.

Written by the indexing model from the issue text.

Description

There is a note in the code that says const needed to be dropped when working with cusparseSpMV in CUDA 11

https://github.com/rapidsai/raft/blob/7f57ac6cccfe04773c48e4202db21ddde0effded/cpp/include/raft/spectral/detail/matrix_wrappers.hpp#L203-L214

Looking at the CUDA 12 docs for cusparseSpMV, it appears everything is marked const

Given this could we now use const here and anywhere else using cusparseSpMV?

Note: This originally came up in issue ( https://github.com/rapidsai/raft/issues/2741 ). However it is a bit more nuanced than the other cleanup items in that issue. So have broken it out

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/raft

All issues in NVIDIA/raft

Similar issues

More Performance issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.