[arrayfire] 14/284: Async where on the CPU backe

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:14 UTC 2016


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

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

commit fada8833549ff6833143ab79dcc8f4f35e5eaa17
Author: Umar Arshad <umar at arrayfire.com>
Date:   Tue Sep 22 09:03:58 2015 -0400

    Async where on the CPU backe
---
 src/backend/cpu/where.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/backend/cpu/where.cpp b/src/backend/cpu/where.cpp
index c1ffd0f..c5102c8 100644
--- a/src/backend/cpu/where.cpp
+++ b/src/backend/cpu/where.cpp
@@ -16,6 +16,8 @@
 #include <where.hpp>
 #include <ops.hpp>
 #include <vector>
+#include <platform.hpp>
+#include <async_queue.hpp>
 
 using af::dim4;
 
@@ -24,6 +26,9 @@ namespace cpu
     template<typename T>
     Array<uint> where(const Array<T> &in)
     {
+        evalArray(in);
+        getQueue().sync();
+
         const dim_t *dims    = in.dims().get();
         const dim_t *strides = in.strides().get();
         static const T zero = scalar<T>(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