-
Notifications
You must be signed in to change notification settings - Fork 99
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
spmv: template arguments not always inferrable #1964
Comments
I am wondering if in @e10harvey 's case the issue is related to wrapping the execution space in a std::vector. |
@lucbv Hmm, you might be right about that. Maybe for some type T, Anyway, the spmv unit tests do actually test this exact call with all template arguments deduced, so something else is going on. |
Hm. I would expect the template arg to be inferrable from |
@e10harvey I just tried a spmv call similar to what you had (where the space is an element of a std::vector) but it compiled without errors. Could you post the error message you got? |
From the source branch in #1963:
Not specifying any template argument does work though. It looks like you must specify template arguments from left to right rather than right to left. |
Oh yeah, I was thinking that not specifying any arguments should work, and is generally how I would expect spmv to be used. |
There should be a 'Easy close' and 'Almost impossible close' button next to 'close with comment' ; ) |
For a call like
KokkosSparse::spmv(space, mode, alpha, A, x, beta, y);
, template argument deduction fails.The text was updated successfully, but these errors were encountered: