Skip to content

Commit 1f4539f

Browse files
authored
Merge pull request oneapi-src#2517 from andrewtbarker/matmult-verification-exit
Add exit if MKL matrix mul sample fails verification
2 parents 3306a91 + 6506f40 commit 1f4539f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Libraries/oneMKL/matrix_mul_mkl/matrix_mul_mkl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ void test(queue &Q, int M, int N, int K)
7575
if (linear_id >= elems) break;
7676
}
7777
std::cout << (ok ? " passes." : " FAILS!") << std::endl;
78+
if (!ok) {
79+
exit(1);
80+
}
7881

7982
/* Fill A/B with random data */
8083
generate_random_data(rd_size, host_data);

0 commit comments

Comments
 (0)