[arrayfire] 04/408: Add complex dot product for OpenCL backend

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:02 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 037264568fb2e2c8e6253cdbcb193af92c65f2a7
Author: Filipe Maia <filipe.c.maia at gmail.com>
Date:   Sat Jun 13 19:22:36 2015 +0200

    Add complex dot product for OpenCL backend
---
 src/backend/opencl/blas.cpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/backend/opencl/blas.cpp b/src/backend/opencl/blas.cpp
index 6777fd2..4adebbb 100644
--- a/src/backend/opencl/blas.cpp
+++ b/src/backend/opencl/blas.cpp
@@ -72,6 +72,19 @@ BLAS_FUNC(dot, float,       S)
 BLAS_FUNC(dot, double,      D)
 
 #undef BLAS_FUNC_DEF
+#define BLAS_FUNC(NAME, TYPE, PREFIX, SUFFIX)					\
+template<>                                                              \
+struct NAME##_func<TYPE>                                                \
+{                                                                       \
+    template<typename... Args>                                          \
+    clblasStatus                                                        \
+    operator() (Args... args) { return clblas##PREFIX##NAME##SUFFIX(args...); } \
+};
+
+BLAS_FUNC(dot, cfloat,       C, u)
+BLAS_FUNC(dot, cdouble,      Z, u)
+
+#undef BLAS_FUNC_DEF
 #undef BLAS_FUNC
 
 template<typename T>

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