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

Question about Prerequisite Lab 3 #12

Open
sajantanand opened this issue Sep 7, 2016 · 0 comments
Open

Question about Prerequisite Lab 3 #12

sajantanand opened this issue Sep 7, 2016 · 0 comments

Comments

@sajantanand
Copy link

sajantanand commented Sep 7, 2016

Hello,

I am enrolled in the Algorithmic Techniques class through a partner university to UIUC and am currently working through MP3 Basic Matrix Multiplication. When running dataset 1, I get the following error message: The solution did not match the expected results at column 0 and row 0. Expecting 312.04 but got 316.53.

I have tried calculating the result at column 0 and row 0 using serial C code and I get the same answer (316.53). Is it possible that the WebGPU platform does not have the correct answer? My code for serially calculating the output at (0, 0) is below.

float origin = 0;
for(int i = 0; i < numAColumns; i++)
{
origin += hostA[i] * hostB[i * numBRows];
}
A is the first vector and B is the second (Sorry for not formatting this too well; I haven't submitted an issue before).

Thanks
`

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