Skip to content

Scalar indexing when using CuSparseMatrixCSR #66

@albertomercurio

Description

@albertomercurio

Hello, the following example seems to work

N = 1000
A = sprand(N, N, 1/N) + Diagonal(rand(N))
x = rand(N)

A_gpu = CUSPARSE.CuSparseMatrixCSC(A)
x_gpu = CuVector(x)

Pr_gpu = KrylovPreconditioners.kp_ilu0(A_gpu)

gmres(A_gpu, x_gpu, N=Pr_gpu, ldiv=true)

But not when I using CuSparseMatrixCSR, where I get the scalar indexing error.

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