Skip to content

Commit

Permalink
Fix some sync issue
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Apr 29, 2023
1 parent 7b0a47e commit 20d3afc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/prefiltering/ungappedprefilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ int ungappedprefilter(int argc, const char **argv, const Command &command) {
std::vector<hit_t> shortResults;
shortResults.reserve(tdbr->getSize()/2);

#ifdef OPENMP
omp_set_nested(1);
#endif

#pragma omp parallel
{
unsigned int thread_idx = 0;
Expand Down Expand Up @@ -162,6 +166,7 @@ int ungappedprefilter(int argc, const char **argv, const Command &command) {
shortResults.clear();
progress.updateProgress();
}
#pragma omp barrier
}
}

Expand Down

0 comments on commit 20d3afc

Please sign in to comment.