parallelize gemm benchmark to trigger races

This commit is contained in:
Martin Kroeker 2020-04-08 14:41:21 +02:00 committed by GitHub
parent 0e0681f535
commit d8735bb66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ int main(int argc, char *argv[]){
fprintf(stderr, " M=%4d, N=%4d, K=%4d : ", (int)m, (int)n, (int)k); fprintf(stderr, " M=%4d, N=%4d, K=%4d : ", (int)m, (int)n, (int)k);
gettimeofday( &start, (struct timezone *)0); gettimeofday( &start, (struct timezone *)0);
#pragma omp parallel num_threads(96)
for (j=0; j<loops; j++) { for (j=0; j<loops; j++) {
GEMM (&transa, &transb, &m, &n, &k, alpha, a, &lda, b, &ldb, beta, c, &ldc); GEMM (&transa, &transb, &m, &n, &k, alpha, a, &lda, b, &ldb, beta, c, &ldc);
} }