Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

MethodError: ambiguous #36

@mfalt

Description

@mfalt

It seems that almost any function I try give me an error because of ambiguity, am I doing something wrong?

julia> using CUSPARSE, CUDArt
julia> A = sprand(20,10,0.2)
julia> d_A = CudaSparseMatrixCSR(A) #Print error
julia> d_B = CudaArray(rand(10))
julia> d_A*d_B
ERROR: MethodError: CUSPARSE.mv!(::Char, ::Float64, ::CUSPARSE.CudaSparseMatrixCSR{Float64}, ::CUDArt.CudaArray{Float64,1}, ::Float64, ::CUDArt.CudaArray{Float64,1}, ::Char) is ambiguous. Candidates:
  mv!(transa::Char, alpha::Union{Complex{Float32}, Complex{Float64}, Float32, Float64}, A::Union{CUSPARSE.CudaSparseMatrixBSR{T}, CUSPARSE.CudaSparseMatrixCSC{T}, CUSPARSE.CudaSparseMatrixCSR{T}, CUSPARSE.CudaSparseMatrixHYB{T}} where T, X::CUDArt.CudaArray{T,1} where T, beta::Union{Complex{Float32}, Complex{Float64}, Float32, Float64}, Y::CUDArt.CudaArray{T,1} where T, index::Char) in CUSPARSE at /local/home/mattiasf/.julia/v0.6/CUSPARSE/src/sparse.jl:686
  mv!(transa::Char, alpha::Float64, A::Union{CUSPARSE.CudaSparseMatrixCSR{Float64}, Hermitian{Float64,CUSPARSE.CudaSparseMatrixCSR{Float64}}, Symmetric{Float64,CUSPARSE.CudaSparseMatrixCSR{Float64}}}, X::CUDArt.CudaArray{Float64,1}, beta::Float64, Y::CUDArt.CudaArray{Float64,1}, index::Char) in CUSPARSE at /local/home/mattiasf/.julia/v0.6/CUSPARSE/src/sparse.jl:738
Possible fix, define
  mv!(::Char, ::Float64, ::CUSPARSE.CudaSparseMatrixCSR{Float64}, ::CUDArt.CudaArray{Float64,1}, ::Float64, ::CUDArt.CudaArray{Float64,1}, ::Char)
Stacktrace:
 [1] *(::CUSPARSE.CudaSparseMatrixCSR{Float64}, ::CUDArt.CudaArray{Float64,1}) at /local/home/mattiasf/.julia/v0.6/CUSPARSE/src/sparse.jl:1769

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions