Hi all,

On Sat, 26 Jun 2010 18:14:44 -0600, Cyrus Omar <[email protected]> wrote:
> How about sum[queue, global_size, local_size] does the bind (sorta like
> <<<>>> in CUDA) so a whole call looks like this:
> 
> sum[queue, a.shape, (256,)](a, b, dest)
> 
> Btw you can just use functools.partial, no need to implement it manually
> (unless you want to support Python 2.4 or earlier still?)

First of all, thanks for your suggestions! 

As of right now, I don't see a compelling reason to switch away from the
now-current convention

kernel(queue, global, local, kernel args...)

I see the point of keeping kernel arguments apart from meta-arguments,
but the cost just seems too high at present--paid either in verbosity
(kwargs), extraneous state (.bind), in untruthful representation of the
underlying interface (.bind), or interfaces that aren't like anything
else in Python (knl[]()).

So as a matter of closing off this discussion: It's going to stay as is
for now--also because there's a fair bunch of code using that convention
now. :)

Andreas

Attachment: pgpgl3Cq9Lsik.pgp
Description: PGP signature

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

Reply via email to