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

How to run SpMM with half precision? #16

Open
wanghongyu2001 opened this issue Aug 2, 2024 · 0 comments
Open

How to run SpMM with half precision? #16

wanghongyu2001 opened this issue Aug 2, 2024 · 0 comments

Comments

@wanghongyu2001
Copy link

How to run SpMM with half precision? I see that Sputnik only provides an interface for half2. If I have a CSR matrix with val in half precision, do I need to preprocess it? Also, why is the type of column idx is short2? If the matrix is very large, won't it be impossible to store the column indices?

cudaError_t CudaSpmm(int m, int k, int n, int nonzeros,
                     const int* __restrict__ row_indices,
                     const half2* __restrict__ values,
                     const int* __restrict__ row_offsets,
                     const short2* __restrict__ column_indices,
                     const half2* __restrict__ dense_matrix,
                     half2* __restrict__ output_matrix, cudaStream_t stream)

Any response would be helpful, thank you.

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