Hi all,
Trying to get pyopencl up and running, but I'm clearly missing something
fundamental. If I try and follow the bare-bones example:
from pyfft.cl import Plan
import numpy
import pyopencl as cl
import pyopencl.array as cl_array
ctx = cl.create_some_context(interactive=False)
queue = cl.CommandQueue(ctx)
But then creating a plan leads to a motley collection of errors:
plan = Plan((16, 16), queue=queue)
Build on <pyopencl.Device 'Tahiti' on 'AMD Accelerated Parallel
Processing' at 0x21b5f40>:
"/tmp/OCLAA4IMX.cl", line 123: warning: double-precision constant is
represented as single-precision constant because double is not
enabled
const float2 w1 = complex_ctr((float)0.707106781187,
(float)0.707106781187);
[Lots of these]
"/tmp/OCLAA4IMX.cl", line 983: error: too many initializer values
float2 a[8] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
[Two of these]
Clearly, there are twice as many of these initializer values as a[8] can
reasonably expect there should be, but I don't know why. I thought it
was perhaps related to the single/double precision warnings, but if I
try explicitly declaring the dtype for the plan, I can get the
single/double warnings to disappear.
test_array fails on one test (test_elwise_kernel)
test_clmath fails on test_fmod and test_bessel_j
test_wrapper fails on one test (test_image_2d), but informs me that this
is not unusual, though still bad.
demo.py runs fine.
I'm trying to get this going under Ubuntu 11.10.
Thanks for any help,
Alex
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl