abduld / WebGPU

University of Illinois/NCSA Open Source License
21 stars 15 forks source link

Question about Prerequisite Lab 3 #12

Open sajantanand opened 8 years ago

sajantanand commented 8 years ago

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 `