[arrayfire] 49/408: Bug fixes for nearest neighbour and hamming

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 354a40b92b543a6f2cc98826ebe9b2968ca48928
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Jun 26 12:40:43 2015 -0400

    Bug fixes for nearest neighbour and hamming
---
 src/api/c/hamming.cpp                         | 3 ++-
 src/backend/cuda/kernel/nearest_neighbour.hpp | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/api/c/hamming.cpp b/src/api/c/hamming.cpp
index 057d6f9..9a57fef 100644
--- a/src/api/c/hamming.cpp
+++ b/src/api/c/hamming.cpp
@@ -10,7 +10,8 @@
 #include <af/defines.h>
 #include <af/vision.h>
 
-af_err af_hamming_matcher(af_array* idx, af_array* dist, const af_array query, const af_array train, const dim_t dist_dim, const uint n_dist)
+af_err af_hamming_matcher(af_array* idx, af_array* dist, const af_array query, const af_array train,
+        const dim_t dist_dim, const unsigned n_dist)
 {
     return af_nearest_neighbour(idx, dist, query, train, dist_dim, n_dist, AF_SHD);
 }
diff --git a/src/backend/cuda/kernel/nearest_neighbour.hpp b/src/backend/cuda/kernel/nearest_neighbour.hpp
index fa87e9b..f6baccd 100644
--- a/src/backend/cuda/kernel/nearest_neighbour.hpp
+++ b/src/backend/cuda/kernel/nearest_neighbour.hpp
@@ -84,7 +84,7 @@ __global__ void nearest_neighbour_unroll(
     To* out_dist,
     CParam<T> query,
     CParam<T> train,
-    const unsigned max_dist)
+    const To max_dist)
 {
     unsigned nquery = query.dims[0];
     unsigned ntrain = train.dims[0];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list