From d4cedef3f213f10f98bbfaff7ffdd7c01d79f99a Mon Sep 17 00:00:00 2001 From: Adarsh Yoga Date: Sat, 20 Apr 2024 03:13:50 +0000 Subject: [PATCH] testing knn --- .../default/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dpbench/benchmarks/default/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp b/dpbench/benchmarks/default/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp index 75cccd3b..59a22b6d 100644 --- a/dpbench/benchmarks/default/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp +++ b/dpbench/benchmarks/default/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp @@ -100,7 +100,9 @@ sycl::event knn_impl(sycl::queue q, // simple vote for (size_t j = 0; j < k; ++j) { - d_votes_to_classes[(i*classes_num) + (queue_neighbors[j].label)] += 1; + size_t ith_idx = i * classes_num; + //size_t jth = queue_neighbors[j].label; + //d_votes_to_classes[(i*classes_num) + (queue_neighbors[j].label)] += 1; } IntTy max_ind = 0;