[PyOpenCL] Passing a floatn directly to a kernel
david.libault at gmail.com
Wed Dec 8 02:36:23 PST 2010
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...
More information about the PyOpenCL