-
Notifications
You must be signed in to change notification settings - Fork 237
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
Adding CSR Sparse Matrix Dense Vector Multiplication Benchmark #281
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow! This is really ambitious. Nice work getting the end-to-end thing to work, including the random matrix generator!!
free res; | ||
|
||
good: int = const 0; | ||
ret good; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you consider removing the return value of main? While I guess this hasn't been specified, afaik there isn't any implementation that will make use of this value. Most will silently ignore it like brili
does.
brilirs
rejects this program(I thought because of #91 but git blame predates that) which I think is fair?
Let me know what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Indeed there is no specifiction saying main
shoud return a value to be used.
Shall I make a new PR for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! Yes please, a new PR would be great. (I suppose we should document this, and probably add a check in brilck
…)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just created #293
This benchmark generates a CSR sparse matrix and a dense vector with a linear feedback shift register RNG, multiplies them, and prints the matrix, intput, and output. I have verified it against the scipy implementation of matrix-vector multiplication.