[SPIRV] Delta for mxm tests fixed
@@ -89,7 +89,7 @@ public class TestMatrixMultiplicationKernelContext extends TornadoTestBase {
matrixMultiplicationJava(a, b, cJava, size);
for (int i = 0; i < size * size; i++) {
- assertEquals(cJava[i], cTornado[i], 0);
+ assertEquals(cJava[i], cTornado[i], 0.01f);
}
}
@@ -129,7 +129,7 @@ public class TestMatrixMultiplicationKernelContext extends TornadoTestBase {
matrixMultiplicationJava(a, b, cJava, size);
for (int i = 0; i < size * size; i++) {
- assertEquals(cJava[i], cTornado[i], 0);
+ assertEquals(cJava[i], cTornado[i], 0.01f);
}
}
@@ -171,7 +171,7 @@ public class TestMatrixMultiplicationKernelContext extends TornadoTestBase {
@Test
public void mxm2DKernelContext02() {
- final int size = 16;
+ final int size = 32;
float[] a = new float[size * size];
float[] b = new float[size * size];
float[] cJava = new float[size * size];
@@ -189,15 +189,14 @@ public class TestMatrixMultiplicationKernelContext extends TornadoTestBase {
.streamIn(a, b) //
.task("t0", TestMatrixMultiplicationKernelContext::matrixMultiplication2D02, context, a, b, cTornado, size) //
.streamOut(cTornado);
- // Change the Grid
- worker.setGlobalWork(size, size, 1);
+
worker.setLocalWork(TS, TS, 1);
s0.execute(gridScheduler);
matrixMultiplicationJava(a, b, cJava, size);
for (int i = 0; i < size * size; i++) {
- assertEquals(cJava[i], cTornado[i], 0);
+ assertEquals(cJava[i], cTornado[i], 0.01f);
}
}
}
\ No newline at end of file
