[arrayfire] 127/408: Add SVD OpenCL Stump

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:36 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 82d039f3551599656d118c17982363f0efdb331b
Author: Richard Klemm <richy at coding-reality.de>
Date:   Sat Jul 4 22:40:29 2015 +0200

    Add SVD OpenCL Stump
---
 src/backend/opencl/svd.cpp | 40 ++++++++++++++++++++++++++++++++++++++++
 src/backend/opencl/svd.hpp | 20 ++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/src/backend/opencl/svd.cpp b/src/backend/opencl/svd.cpp
new file mode 100644
index 0000000..bfb7438
--- /dev/null
+++ b/src/backend/opencl/svd.cpp
@@ -0,0 +1,40 @@
+/*******************************************************
+ * Copyright (c) 2014, ArrayFire
+ * All rights reserved.
+ *
+ * This file is distributed under 3-clause BSD license.
+ * The complete license agreement can be obtained at:
+ * http://arrayfire.com/licenses/BSD-3-Clause
+ ********************************************************/
+
+#include <Array.hpp>
+
+#include <svd.hpp>          // opencl backend function header
+
+#include <err_opencl.hpp>               // error check functions and Macros
+                                        // specific to opencl backend
+
+namespace opencl
+{
+
+template<typename T>
+void svd(Array<T> &s, Array<T> &u, Array<T> &vt, const Array<T> &in)
+{
+    OPENCL_NOT_SUPPORTED();
+}
+
+template<typename T>
+void svdInPlace(Array<T> &s, Array<T> &u, Array<T> &vt, Array<T> &in)
+{
+    OPENCL_NOT_SUPPORTED();
+}
+
+
+#define INSTANTIATE(T)                                                                  \
+    template void svd(Array<T> &s, Array<T> &u, Array<T> &vt, const Array<T> &in)       \
+    template void svdInPlace(Array<T> &s, Array<T> &u, Array<T> &vt, Array<T> &in)
+
+INSTANTIATE(float)
+INSTANTIATE(double)
+
+}
diff --git a/src/backend/opencl/svd.hpp b/src/backend/opencl/svd.hpp
new file mode 100644
index 0000000..0bf4ded
--- /dev/null
+++ b/src/backend/opencl/svd.hpp
@@ -0,0 +1,20 @@
+/*******************************************************
+ * Copyright (c) 2014, ArrayFire
+ * All rights reserved.
+ *
+ * This file is distributed under 3-clause BSD license.
+ * The complete license agreement can be obtained at:
+ * http://arrayfire.com/licenses/BSD-3-Clause
+ ********************************************************/
+
+#include <Array.hpp>
+
+namespace opencl
+{
+    template<typename T>
+    void svd(Array<T> &s, Array<T> &u, Array<T> &vt, const Array<T> &in);
+
+    template<typename T>
+    void svdInPlace(Array<T> &s, Array<T> &u, Array<T> &vt, Array<T> &in);
+}
+

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