Fix MSAN failures.

This commit is contained in:
Antonio Sánchez
2023-12-22 03:18:46 +00:00
committed by Charles Schlosser
parent 9697d481c8
commit fee5d60b50
2 changed files with 5 additions and 3 deletions

View File

@@ -13,9 +13,9 @@
void test_parallelize_gemm() {
constexpr int n = 1024;
constexpr int num_threads = 4;
MatrixXf a(n, n);
MatrixXf b(n, n);
MatrixXf c(n, n);
MatrixXf a = MatrixXf::Random(n, n);
MatrixXf b = MatrixXf::Random(n, n);
MatrixXf c = MatrixXf::Random(n, n);
c.noalias() = a * b;
ThreadPool pool(num_threads);