From f55a3d3ca421383458ea56892a4350f0c2bbd3d5 Mon Sep 17 00:00:00 2001 From: Adarsh Yoga Date: Sat, 20 Apr 2024 06:32:15 +0000 Subject: [PATCH] testing knn --- .../default/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp | 2 +- 1 file changed, 1 insertion(+), 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 11a84997..736cd349 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 @@ -34,7 +34,7 @@ sycl::event knn_impl(sycl::queue q, // here k has to be 5 in order to match with numpy no. of // neighbors - struct neighbors queue_neighbors[5]; + struct neighbors queue_neighbors[5] = {0.0, 0}; // count distances for (size_t j = 0; j < k; ++j) {