Skip to content

Commit 721ed21

Browse files
committed
Add taskwait to omp
1 parent 32534f7 commit 721ed21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

benchmark/mnist/omp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ void run_omp(MNIST& D, unsigned num_threads) {
180180
} // End of one iteration
181181
} // End of one epoch
182182

183+
#pragma omp taskwait
183184
} // End of omp single
184185
} // End of omp parallel
185186

0 commit comments

Comments
 (0)