diff --git a/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp b/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp index 3a23d1372e..f8913c9b9a 100644 --- a/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp +++ b/src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp @@ -65,8 +65,6 @@ double HamerlyKMeans::Iterate(const arma::mat& centroids, } } - size_t threadDistanceCalculations = 0; - #pragma omp parallel for reduction(+:hamerlyPruned,distanceCalculations) \ reduction(matAdd:newCentroids) reduction(colAdd:counts) schedule(static) for (size_t i = 0; i < dataset.n_cols; ++i)