Skip to content

Commit

Permalink
Reduce test size for miri
Browse files Browse the repository at this point in the history
This makes `cargo +nightly miri test` run in a more reasonable length
of time (<10 minutes on my machine). Before, testing with miri took
>30 minutes to complete. (I'm not sure how long it would have
ultimately taken; I killed the test at that point.)
  • Loading branch information
jturner314 committed Mar 10, 2021
1 parent 61acbd3 commit 784a9a8
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions tests/oper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,17 +666,21 @@ fn gemm_64_1_f() {
fn gen_mat_mul_i32() {
let alpha = -1;
let beta = 2;
let sizes = vec![
(4, 4, 4),
(8, 8, 8),
(17, 15, 16),
(4, 17, 3),
(17, 3, 22),
(19, 18, 2),
(16, 17, 15),
(15, 16, 17),
(67, 63, 62),
];
let sizes = if cfg!(miri) {
vec![(4, 4, 4), (4, 7, 3)]
} else {
vec![
(4, 4, 4),
(8, 8, 8),
(17, 15, 16),
(4, 17, 3),
(17, 3, 22),
(19, 18, 2),
(16, 17, 15),
(15, 16, 17),
(67, 63, 62),
]
};
for &(m, k, n) in &sizes {
let a = range_i32(m, k);
let b = range_i32(k, n);
Expand Down

0 comments on commit 784a9a8

Please sign in to comment.