Skip to content

Commit 20d3afc

Browse files
Fix some sync issue
1 parent 7b0a47e commit 20d3afc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/prefiltering/ungappedprefilter.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ int ungappedprefilter(int argc, const char **argv, const Command &command) {
8181
std::vector<hit_t> shortResults;
8282
shortResults.reserve(tdbr->getSize()/2);
8383

84+
#ifdef OPENMP
85+
omp_set_nested(1);
86+
#endif
87+
8488
#pragma omp parallel
8589
{
8690
unsigned int thread_idx = 0;
@@ -162,6 +166,7 @@ int ungappedprefilter(int argc, const char **argv, const Command &command) {
162166
shortResults.clear();
163167
progress.updateProgress();
164168
}
169+
#pragma omp barrier
165170
}
166171
}
167172

0 commit comments

Comments
 (0)