-
Notifications
You must be signed in to change notification settings - Fork 89
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
question about storage of coordinate matrix #67
Comments
Hey, As you can see, there is also an additional group_boundaries array, which aligns the work for each OpenCL work group such that the different work groups write into distinct parts of the result vector for a sparse matrix-vector multiplication. The implementation for the CPU backend is pretty simple (cf. https://github.com/viennacl/viennacl-dev/blob/master/viennacl/linalg/host_based/sparse_matrix_operations.hpp#L981), but a parallel implementation (CUDA, OpenCL) gets quite involved when one wants to deal with corner cases correctly: |
Thanks. How do I pass the vcl_coordinate_matrix.handle12() to my kernel, |
vcl_coordinate_matrix.handle12().opencl_handle(): |
Thank you. I thought I looked but not hard enough clearly. |
Hello, I need to write a kernel to subtract a sparse coordinate matrix from a dense matrix.
Is there some convention for sorting in the storage of the rows and columns in the mat.handle12() data structure? A small kernel snippet would be great.
The text was updated successfully, but these errors were encountered: