[arrayfire] 41/408: Fix double compilation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:13 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 f999b0573241167ca93b9c46a3fd4e3a9f545b7d
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Wed Jun 24 18:55:47 2015 -0400

    Fix double compilation
---
 src/backend/opencl/kernel/nearest_neighbour.hpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/backend/opencl/kernel/nearest_neighbour.hpp b/src/backend/opencl/kernel/nearest_neighbour.hpp
index 601dcc3..5e021f9 100644
--- a/src/backend/opencl/kernel/nearest_neighbour.hpp
+++ b/src/backend/opencl/kernel/nearest_neighbour.hpp
@@ -67,6 +67,11 @@ void nearest_neighbour(Param idx,
                     default: break;
                 }
 
+                if (std::is_same<T, double>::value ||
+                    std::is_same<T, cdouble>::value) {
+                    options << " -D USE_DOUBLE";
+                }
+
                 if (use_lmem)
                     options << " -D USE_LOCAL_MEM";
 

-- 
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