aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-14 20:23:59 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-14 21:33:32 +0330
commite806fe6cb655a5409bbceffa7058e2c5425f4a13 (patch)
treee062175e61c04160a4328e6faadd05107aeb2948
parentbench: a nonzero zy exit (1 compile error, 2 trap) or a wrong checksum fails ... (diff)
bench: matmul fill a = i % 7 - 2, b = i % 5 - 1 so its checksum is 63760 (checked against a python reference), not 0
-rw-r--r--tests/bench/arrays.zc2
-rw-r--r--tests/bench/suite.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/bench/arrays.zc b/tests/bench/arrays.zc
index bbe0f01..3dbe73a 100644
--- a/tests/bench/arrays.zc
+++ b/tests/bench/arrays.zc
@@ -41,7 +41,7 @@ fn main() {
fixed int[?] a = rt.new(fixed int[?], N * N);
fixed int[?] b = rt.new(fixed int[?], N * N);
fixed int[?] c = rt.new(fixed int[?], N * N);
- for (int i = 0; i < N * N; i++) { a[i] = i % 7 - 3; b[i] = i % 5 - 2; }
+ for (int i = 0; i < N * N; i++) { a[i] = i % 7 - 2; b[i] = i % 5 - 1; }
fixed int[?] data = rt.new(fixed int[?], G);
fixed int[?] idx = rt.new(fixed int[?], G);
// 7919 is prime and not 2 or 3, so i * 7919 mod 98304 (2^15 * 3) visits every slot once, in a scattered order
diff --git a/tests/bench/suite.py b/tests/bench/suite.py
index a30f40f..83677f5 100644
--- a/tests/bench/suite.py
+++ b/tests/bench/suite.py
@@ -57,7 +57,7 @@ SWEEPS = [
# what each row prints, when the suite knows it (the checksum doesn't depend on the
# repetition count). a row that prints something else fails the bench
EXPECT = {
- "zy:arrays.matmul": "0",
+ "zy:arrays.matmul": "63760",
"zy:arrays.gather": "4831789056",
}
# where each row's checks are counted: the source and the function (bench.sh rows are