On Mon, 28 Feb 2011 21:40:41 +0530, nithin s <nithin19484(a)gmail.com> wrote:
A related aspect is passing kernel arguments. How
do you pass a
simple float3 vector by value to a kernel?.
As of now there are 2 options. split the vector into scalar types
and grow the kernel argset and reasseble in the kernel. Or one could
pass it as a tiny gpuarray ( or numpy array wrapped with In/Out).
The second would require some tiny mem allocs (which might not so
bad a thing).
Is there a way to wrap it as neatly as np.int32(x) and toss it at
This turned out to be a bit thornier than I had thought, but it should
be easy now. See here: