# Support for Sparse Matrices on GPU (CUSPARSE)

**URL:** <https://discourse.julialang.org/t/support-for-sparse-matrices-on-gpu-cusparse/15294>\
**Category:** GPU\
**Tags:** gpu, knet, flux\
**Created:** [September 21, 2018, 4:08pm UTC](https://discourse.julialang.org/t/support-for-sparse-matrices-on-gpu-cusparse/15294 "2018-09-21T16:08:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mboratko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mboratko/32/5377_2.png) [@mboratko](https://discourse.julialang.org/u/mboratko)\
**Post date:** [September 21, 2018, 4:08pm UTC](https://discourse.julialang.org/t/support-for-sparse-matrices-on-gpu-cusparse/15294/1 "2018-09-21T16:08:55Z")

</div>

Do any of the ML libraries (Flux, KNet) support sparse matrices on the GPU?

---

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [September 22, 2018, 4:34pm UTC](https://discourse.julialang.org/t/support-for-sparse-matrices-on-gpu-cusparse/15294/3 "2018-09-22T16:34:17Z")

</div>

There used to be [GitHub - JuliaAttic/CUSPARSE.jl: Julia interface to NVIDIA's CUSPARSE library](https://github.com/JuliaGPU/CUSPARSE.jl), but that hasn’t seen maintenance in a while. Making that work well with CuArrays would allow Flux to do sparse matrices on the GPU.
