Browse Source

Loop the OpenMP test 20 times

pull/3058/head
Martin Kroeker GitHub 5 years ago
parent
commit
f725ef29d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      cpp_thread_test/test_gemm_omp.cc

+ 6
- 2
cpp_thread_test/test_gemm_omp.cc View File

@@ -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<double*> 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;
}


Loading…
Cancel
Save