Skip to content

Commit

Permalink
forgor omp parallel πŸ’€
Browse files Browse the repository at this point in the history
  • Loading branch information
mahbhlddnhakkh committed Apr 23, 2024
1 parent b39f21b commit 061eb1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/omp/kulagin_a_gauss_filter_vert/src/ops_omp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ bool FilterGaussVerticalTaskOMPKulagin::run() {
#ifdef _MSC_VER
// Microsoft, update omp pls, so I can use size_t in a for loop instead of int
const int _w = static_cast<int>(w);
#pragma omp for schedule(static)
#pragma omp parallel for schedule(static)
for (int x = 0; x < _w; x++) {
kulagin_a_gauss::apply_filter_line<true>(w, h, img, kernel, img_res.get(), static_cast<size_t>(x));
}
#else
#pragma omp for schedule(static)
#pragma omp parallel for schedule(static)
for (size_t x = 0; x < w; x++) {
kulagin_a_gauss::apply_filter_line<true>(w, h, img, kernel, img_res.get(), x);
}
Expand Down

0 comments on commit 061eb1b

Please sign in to comment.