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

Update spsm_coo_example.c #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cuSPARSE/spsm_coo/spsm_coo_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ int main(void) {
float hA_values[] = { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f,
6.0f, 7.0f, 8.0f, 9.0f };
float hB[] = { 1.0f, 8.0f, 23.0f, 52.0f,
1.0f, 8.0f, 23.0f, 52.0f };
1.0f, 8.0f, 23.0f, 52.0f };
// the correct hB[] should be { 19.0f, 8.0f, 51.0f, 52.0f, 19.0f, 8.0f, 51.0f, 52.0f }
// but can not pass the test, why????
float hC[] = { 0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f };
float hY_result[] = { 1.0f, 2.0f, 3.0f, 4.0f,
Expand Down