From 1a2fba23a80c3fa52dddf9b9539bdbd9fcaf3ae6 Mon Sep 17 00:00:00 2001 From: Mark Fischinger <64029109+MarkFischinger@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:45:12 +0200 Subject: [PATCH] Update src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp Co-authored-by: Ryan Curtin --- src/mlpack/methods/kmeans/hamerly_kmeans_impl.hpp | 2 -- 1 file changed, 2 deletions(-) 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)