diff options
Diffstat (limited to 'src/km-init-kmeans.c')
-rw-r--r-- | src/km-init-kmeans.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/km-init-kmeans.c b/src/km-init-kmeans.c index f0c1b5f..b2a24af 100644 --- a/src/km-init-kmeans.c +++ b/src/km-init-kmeans.c @@ -13,6 +13,7 @@ sum_distance_squared( float r = 0; // sum squared distances + #pragma omp parallel for reduction(+:r) for (size_t i = 0; i < set->num_rows; i++) { const float * const vals = km_set_get_row(set, i); r += distance_squared(set->shape.num_floats, floats, vals); |