Has been uploaded to PyPI. It's still a bit raw, but adds a useful
thin layer between Python and the PyOpenCL runtime.
Declaring an interface:
interface mandelbrot {
kernel mandelbrot(in complex64 *q, outlike int16 *q, in int32 maxiter);
}
lets you call mandelbrot :
output = calc_fractal(q, maxiter)
No explicit buffer management, note that the output buffer q the
return value, and that no declarations have to be made for it at all
in the python code.
I'm now using this actively for my personal work, and the package
dependencies are primarily the same as PyOpenCL (pyparsing is the
primary addition).
Licensed PSF, use as you like.
-- Sean
Sean True
Swapwizard Consulting
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl