[python-dtcwt] 419/497: opencl: add queue parameters to colfilter functions

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:34 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 python-dtcwt.

commit c157601c5b1764571d526e7b294602d8a7b122c1
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Thu Mar 20 15:37:20 2014 +0000

    opencl: add queue parameters to colfilter functions
---
 dtcwt/opencl/lowlevel.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dtcwt/opencl/lowlevel.py b/dtcwt/opencl/lowlevel.py
index b8e91ec..bfd584f 100644
--- a/dtcwt/opencl/lowlevel.py
+++ b/dtcwt/opencl/lowlevel.py
@@ -46,7 +46,7 @@ def colfilter(X, h):
 
     return to_array(axis_convolve(X, h))
 
-def coldfilt(X, ha, hb):
+def coldfilt(X, ha, hb, queue=None):
     """Filter the columns of image X using the two filters ha and hb =
     reverse(ha).  ha operates on the odd samples of X and hb on the even
     samples.  Both filters should be even length, and h should be approx linear
@@ -76,7 +76,7 @@ def coldfilt(X, ha, hb):
     .. codeauthor:: Nick Kingsbury, Cambridge University, August 2000
 
     """
-    queue = get_default_queue()
+    queue = to_queue(queue)
 
     # Make sure all inputs are arrays
     X = asfarray(X)
@@ -98,7 +98,7 @@ def coldfilt(X, ha, hb):
 
     return to_array(Y)
 
-def colifilt(X, ha, hb):
+def colifilt(X, ha, hb, queue=None):
     """ Filter the columns of image X using the two filters ha and hb =
     reverse(ha).  ha operates on the odd samples of X and hb on the even
     samples.  Both filters should be even length, and h should be approx linear
@@ -125,7 +125,7 @@ def colifilt(X, ha, hb):
     .. codeauthor:: Nick Kingsbury, Cambridge University, August 2000
 
     """
-    queue = get_default_queue()
+    queue = to_queue(queue)
 
     # Make sure all inputs are arrays
     X = asfarray(X)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list