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

Sparse matrix addition not working #528

Closed
KlimkinND opened this issue Nov 6, 2020 · 3 comments
Closed

Sparse matrix addition not working #528

KlimkinND opened this issue Nov 6, 2020 · 3 comments
Labels
bug Something isn't working cuda array Stuff about CuArray. good first issue Good for newcomers

Comments

@KlimkinND
Copy link

KlimkinND commented Nov 6, 2020

Self-explanatory. MWE below:

julia> using CUDA, SparseArrays

julia> CUDA.versioninfo()
CUDA toolkit 10.1.243, artifact installation
CUDA driver 10.1.0
NVIDIA driver 418.67.0

Libraries: 
- CUBLAS: 10.2.1
- CURAND: 10.1.1
- CUFFT: 10.1.1
- CUSOLVER: 10.2.0
- CUSPARSE: 10.3.0
- CUPTI: 12.0.0
- NVML: 10.0.0+418.67
- CUDNN: 8.0.4 (for CUDA 10.1.0)
- CUTENSOR: 1.2.1 (for CUDA 10.1.0)

Toolchain:
- Julia: 1.5.2
- LLVM: 9.0.1
- PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4
- Device support: sm_30, sm_32, sm_35, sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72, sm_75

1 device:
  0: Tesla P100-PCIE-16GB (sm_60, 15.605 GiB / 15.899 GiB available)

julia> A = B = CUSPARSE.CuSparseMatrixCSR(sprandn(100, 100, 0.01));

julia> A+B
ERROR: UndefVarError: geam not defined
Stacktrace:
 [1] +(::CUDA.CUSPARSE.CuSparseMatrixCSR{Float64}, ::CUDA.CUSPARSE.CuSparseMatrixCSR{Float64}) at /home/n.klimkin/.julia/packages/CUDA/0p5fn/lib/cusparse/interfaces.jl:49
 [2] top-level scope at REPL[7]:1

This error also reproduces when downgrading CUDA to v. 1.3.3. Julia version info:

Julia Version 1.5.2
Commit 539f3ce943 (2020-09-23 23:17 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2695 v2 @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, ivybridge)
Environment:
  JULIA_NUM_THREADS = 32
@learning-chip
Copy link

cuSPARSE has csrgeam and csrgeam2 for adding two sparse matrices. See CuPy source code cusparse.py for how to wrap these kernels.

@kshyatt
Copy link
Contributor

kshyatt commented Feb 16, 2022

Has this been resolved now that csrgeam2 is wrapped?

@maleadt
Copy link
Member

maleadt commented Feb 23, 2022

Going to assume this is fixed, please re-open if it isn't.

@maleadt maleadt closed this as completed Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda array Stuff about CuArray. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants