[PyOpenCL] Pyopencl head not working with AMD's opencl sdk

Andreas Klöckner lists at informa.tiker.net
Mon Jan 25 13:22:21 PST 2010


On Montag 25 Januar 2010, Rohit Garg wrote:
> Hi,
> 
> I just downloaded, compiled and installed pyopencl from the git tree.
> I am using AMD's opencl sdk for cpu's and it is working alright. When
> I tried to run the demo.py example in the pyopencl distribution, it
> threw an error.
> 
> Traceback (most recent call last):
>   File "demo.py", line 8, in <module>
>     ctx = cl.Context()
> pyopencl.LogicError: Context failed: invalid platform
> 
> 
> It appears that these examples have to be modified to specifically
> select the device as now AMD's sdk ships with an ICD.

Thanks for reporting this. This appears to affect most example code in
PyOpenCL. I'd like to poll the list regarding what we should do here.
Should the examples become interactive and ask what platform to use? Or
should they pick one at random? Any other suggestions?

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20100125/da97439b/attachment.pgp>


More information about the PyOpenCL mailing list