From 7c9fe86e8c592395534806741cfc262bfe64bf7c Mon Sep 17 00:00:00 2001 From: Russel Arbore <russel.jma@gmail.com> Date: Tue, 18 Feb 2025 15:46:45 -0600 Subject: [PATCH] ??? --- .gitlab-ci.yml | 4 ++-- juno_samples/matmul/src/main.rs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af867eb8..7a14950e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,9 @@ test-cpu: stage: test script: - - cargo test --features=opencv -vv + - cargo test --features=opencv -vv -- --nocapture test-gpu: stage: test script: - - cargo test --features=cuda,opencv -vv + - cargo test --features=cuda,opencv -vv -- --nocapture diff --git a/juno_samples/matmul/src/main.rs b/juno_samples/matmul/src/main.rs index c0e228da..f91b7d8a 100644 --- a/juno_samples/matmul/src/main.rs +++ b/juno_samples/matmul/src/main.rs @@ -41,7 +41,9 @@ fn main() { .await; let mut c_cpu: Box<[f32]> = vec![0.0; correct_c.len()].into_boxed_slice(); c.to_cpu_ref(&mut c_cpu); - assert!(zip(c_cpu, correct_c).all(|(calc, correct)| (calc - correct).abs() < 0.00001)); + for (calc, correct) in zip(c_cpu, correct_c) { + assert!((calc - correct).abs() < 0.00001, "{} != {}", calc, correct); + } } }); } -- GitLab