[arrayfire] 03/284: Async CPU approx1 and approx2
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:12 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 3188bdf56555ae36b24c41039d973a7d9835301f
Author: Umar Arshad <umar at arrayfire.com>
Date: Sun Aug 9 11:51:54 2015 -0400
Async CPU approx1 and approx2
---
src/backend/cpu/approx.cpp | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/backend/cpu/approx.cpp b/src/backend/cpu/approx.cpp
index 69b943a..735edd4 100644
--- a/src/backend/cpu/approx.cpp
+++ b/src/backend/cpu/approx.cpp
@@ -12,6 +12,8 @@
#include <math.hpp>
#include <stdexcept>
#include <err_cpu.hpp>
+#include <platform.hpp>
+#include <async_queue.hpp>
namespace cpu
{
@@ -141,14 +143,14 @@ namespace cpu
switch(method) {
case AF_INTERP_NEAREST:
- approx1_<Ty, Tp, AF_INTERP_NEAREST>
- (out.get(), out.dims(), out.elements(),
+ getQueue().enqueue(approx1_<Ty, Tp, AF_INTERP_NEAREST>,
+ out.get(), out.dims(), out.elements(),
in.get(), in.dims(), in.elements(), pos.get(), pos.dims(),
out.strides(), in.strides(), pos.strides(), offGrid);
break;
case AF_INTERP_LINEAR:
- approx1_<Ty, Tp, AF_INTERP_LINEAR>
- (out.get(), out.dims(), out.elements(),
+ getQueue().enqueue(approx1_<Ty, Tp, AF_INTERP_LINEAR>,
+ out.get(), out.dims(), out.elements(),
in.get(), in.dims(), in.elements(), pos.get(), pos.dims(),
out.strides(), in.strides(), pos.strides(), offGrid);
break;
@@ -304,16 +306,16 @@ namespace cpu
switch(method) {
case AF_INTERP_NEAREST:
- approx2_<Ty, Tp, AF_INTERP_NEAREST>
- (out.get(), out.dims(), out.elements(),
+ getQueue().enqueue(approx2_<Ty, Tp, AF_INTERP_NEAREST>,
+ out.get(), out.dims(), out.elements(),
in.get(), in.dims(), in.elements(),
pos0.get(), pos0.dims(), pos1.get(), pos1.dims(),
out.strides(), in.strides(), pos0.strides(), pos1.strides(),
offGrid);
break;
case AF_INTERP_LINEAR:
- approx2_<Ty, Tp, AF_INTERP_LINEAR>
- (out.get(), out.dims(), out.elements(),
+ getQueue().enqueue(approx2_<Ty, Tp, AF_INTERP_LINEAR>,
+ out.get(), out.dims(), out.elements(),
in.get(), in.dims(), in.elements(),
pos0.get(), pos0.dims(), pos1.get(), pos1.dims(),
out.strides(), in.strides(), pos0.strides(), pos1.strides(),
--
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