Hi,

I'm playing with the Ranlux RNG on a laptop with an Ivy Bridge CPU and Intel's opencl implementation, and the same code runs on the CPU but fails on the HD 4000 GPU.

This is the error I'm getting when I (interactively) choose the HD 4000:

AssertionError: length of argument type array (4) and CL-generated number of arg
uments (5) do not agree

Here's the description of the devices I have:

Choose device(s):
[0] <pyopencl.Device 'Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz' on 'Intel(R) Ope
nCL' at 0x2faf290>
[1] <pyopencl.Device 'Intel(R) HD Graphics 4000' on 'Intel(R) OpenCL' at 0x6008d
ff0>

The lines that the traceback in ipython is pointing to are (where of course ctx is the context previously created):

qu1 = cl.CommandQueue(ctx)
ran = cl.clrandom.RanluxGenerator(qu1)

As I said, the same code runs (albeit slowly) on the CPU, if I choose [0] at the prompt.

Thanks,
Sven

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

Reply via email to