ddemidov / vexcl

VexCL is a C++ vector expression template library for OpenCL/CUDA/OpenMP
http://vexcl.readthedocs.org
MIT License
701 stars 81 forks source link

Support to Sparse Matrix CSC format #253

Open aaamourao opened 6 years ago

aaamourao commented 6 years ago

Hi, is vexcl going to support sparse matrices in CSC format (column major) in the near future?

ddemidov commented 6 years ago

Probably not, unless someone makes a pull request. CSC is not very effective for matrix vector product, especially on GPUs.

And even although vexcl supports CSR as input format, it converts it to (hybrid) ELL internally for better GPU performance. CSR is only used when the compute device is a CPU.