Skip to content
Snippets Groups Projects
Commit 7c9fe86e authored by Russel Arbore's avatar Russel Arbore
Browse files

???

parent 08c35451
No related branches found
No related tags found
1 merge request!190Set up cava benchmark
Pipeline #201761 failed
This commit is part of merge request !190. Comments created here will be created in the context of that merge request.
test-cpu: test-cpu:
stage: test stage: test
script: script:
- cargo test --features=opencv -vv - cargo test --features=opencv -vv -- --nocapture
test-gpu: test-gpu:
stage: test stage: test
script: script:
- cargo test --features=cuda,opencv -vv - cargo test --features=cuda,opencv -vv -- --nocapture
...@@ -41,7 +41,9 @@ fn main() { ...@@ -41,7 +41,9 @@ fn main() {
.await; .await;
let mut c_cpu: Box<[f32]> = vec![0.0; correct_c.len()].into_boxed_slice(); let mut c_cpu: Box<[f32]> = vec![0.0; correct_c.len()].into_boxed_slice();
c.to_cpu_ref(&mut c_cpu); 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);
}
} }
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment