From f725ef29d7e43ea1fdc30a6248aba4bc025b3cf0 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 10 Jan 2021 23:14:14 +0100 Subject: [PATCH] Loop the OpenMP test 20 times --- cpp_thread_test/test_gemm_omp.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cpp_thread_test/test_gemm_omp.cc b/cpp_thread_test/test_gemm_omp.cc index acfb58112..027a0c706 100644 --- a/cpp_thread_test/test_gemm_omp.cc +++ b/cpp_thread_test/test_gemm_omp.cc @@ -36,7 +36,9 @@ int main( int argc, char** argv ) double alpha = 3.1416; double beta = 2.7183; - printf( "init\n" ); + for (int loops = 0; loops <20; loops ++) { + + printf( "init %d\n", loops ); std::vector A_array( batch_size ), B_array( batch_size ), C_array( batch_size ), @@ -84,7 +86,9 @@ int main( int argc, char** argv ) delete [] C_array[ i ]; } - printf( "done\n" ); + printf( "done %d\n", loops ); + } + printf( "all done\n"); return 0; }