summarylogtreecommitdiffstats
path: root/gcc9.patch
blob: a0ce611521a8a249c450dbdb1ba63111209ff9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/VLFeat/kmeans.c b/lib/VLFeat/kmeans.c
index c250ca8..4887fc4 100755
--- a/lib/VLFeat/kmeans.c
+++ b/lib/VLFeat/kmeans.c
@@ -669,7 +669,7 @@ VL_XCAT(_vl_kmeans_quantize_, SFX)
 #endif
 
 #ifdef _OPENMP
-#pragma omp parallel \
+#pragma omp parallel firstprivate(vl_infinity_d) \
             shared(self, distances, assignments, numData, distFn, data) \
             num_threads(vl_get_max_threads())
 #endif