<#part sign=pgpmime>
On Thu, 29 Mar 2012 13:33:11 +0200, wrb <[email protected]> wrote:
> Hi,
> 
> On 03/22/12 at 11:47P, Andreas Kloeckner wrote:
> > Sure, if you'd like to take a crack at this, I'd be more than happy to
> > help. Here's the story:
> > 
> > The code is in pyopencl/compyte/scan.py
> > Start from a git checkout.
> 
> I'm wondering whether it would be better to use the existing code, or
> whether to steal scan_by_key and possibly reduce_by_key from thrust,
> which seems so be the way scan.py come to be :)

Since segmented scan is the same operation as scan (with just a
redefinition of the underlying operation), I'm not sure that's
necessary. Copying and pasting more code in is very easy. Maintaining
the resulting mess becomes very hard. IOW, I'd like to get by with the
existing code if possible.

> Also there probably should be some way to specify the segment boundaries
> explicitly and not through a function, but that might get expensive for
> large arrays. Something in my head makes me say "sparse arrays" but I'm
> not sure how much (if any) support is in pyopencl or opencl.
> 
> Also, I'm I blind or is there not tranpose in pyopencl?

There isn't, yet.

Andreas


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to