Skip to content

Commit ac9f668

Browse files
author
Pierre Guillou
committed
[LDistance] Fix OpenMP segfault on Windows
Weird interaction between the LDistanceMatrix parallel loop (with the dynamic scheduling) and the LDistance reduction loop that should be sequential (threadNumber_ == 1).
1 parent f26d022 commit ac9f668

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/base/lDistanceMatrix/LDistanceMatrix.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ int ttk::LDistanceMatrix::execute(std::vector<std::vector<double>> &output,
5353

5454
// compute matrix upper triangle
5555
#ifdef TTK_ENABLE_OPENMP
56-
#pragma omp parallel for num_threads(this->threadNumber_) schedule(dynamic) \
57-
firstprivate(worker)
56+
#pragma omp parallel for num_threads(this->threadNumber_) firstprivate(worker)
5857
#endif // TTK_ENABLE_OPENMP
5958
for(size_t i = 0; i < nInputs; ++i) {
6059
for(size_t j = i + 1; j < nInputs; ++j) {

0 commit comments

Comments
 (0)