On Wed, 8 Dec 2010 11:36:23 +0100, David Libault <[email protected]> 
wrote:
> Hi,
> 
> In the mandelbrot example of the pyopencl source, a np.uint16 type is
> passed "directly" to a kernel as a ushort const.
> Is it possible to do the same thing with an opencl floatn vector type
> instead of a ushort ?
> If so what would be the corresponding numpy type ?
> 
> I have tried passing directly a numpy.array of size n without success
> : I get a crash. That doesn't surprise me as it probably tries to pass
> a pointer instead of a value...

Can you post the crashing code? I don't (yet?) see why it wouldn't work.

Andreas

Attachment: pgplHH7HpQiYH.pgp
Description: PGP signature

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

Reply via email to