Loop the OpenMP test 20 times

This commit is contained in:
Martin Kroeker 2021-01-10 23:14:14 +01:00 committed by GitHub
parent 5bcc7bcb0b
commit f725ef29d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -36,7 +36,9 @@ int main( int argc, char** argv )
double alpha = 3.1416; double alpha = 3.1416;
double beta = 2.7183; 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 ), std::vector<double*> A_array( batch_size ),
B_array( batch_size ), B_array( batch_size ),
C_array( batch_size ), C_array( batch_size ),
@ -84,7 +86,9 @@ int main( int argc, char** argv )
delete [] C_array[ i ]; delete [] C_array[ i ];
} }
printf( "done\n" ); printf( "done %d\n", loops );
}
printf( "all done\n");
return 0; return 0;
} }