clMathLibraries / clSPARSE

a software library containing Sparse functions written in OpenCL
Apache License 2.0
173 stars 60 forks source link

clsparseScoo2csr crashes for small matrix sizes #206

Open clSharp opened 7 years ago

clSharp commented 7 years ago

It seems that in reduce-by-key.hpp kernels are started with local sizes > global size if matrix sizes are smaller than:

SizeType kernel_WgSize = WAVESIZE * KERNELWAVES;

I don't know how the kernels work so I'm not sure if it would be enough to limit local sizes to always be smaller than global sizes.