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 vector product A*x for general ghosts in x #127

Open
fverdugo opened this issue Jan 30, 2024 · 0 comments
Open

Sparse-matrix vector product A*x for general ghosts in x #127

fverdugo opened this issue Jan 30, 2024 · 0 comments

Comments

@fverdugo
Copy link
Owner

fverdugo commented Jan 30, 2024

functio spmv(A,x;reuse)
      cols = partition(axes(A,2))
      x_with_ghost, cachex = consistent(x,cols;reuse=true) |> fetch
      b = A*x_with_ghost
      cache = (x_with_ghost,cachex)
      b, cache
end

function spmv!(b,A,x,cache)
     consistent!(x_with_ghost,x,cachex) |> wait
     mul!(b,A,x_with_ghost)
end

Explore if cache can be hidden in the matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant