On Wed, 23 Jun 2010 17:16:57 +0100, "Etienne B. Roesch" <[email protected]> wrote: > Thank you Andreas! > > See below. I also made more tests, both using Eclipse (with which I am > new) and the python shell (with which I am less new). Eclipse still > cries out that 'import pyopencl as cl' is unresolved, and both yield the > same error: > > r...@ncpc92:examples> python demo.py > Traceback (most recent call last): > File "demo.py", line 8, in ? > ctx1 = cl.create_context_from_type(cl.device_type.ALL) > pyopencl.LogicError: clCreateContextFromType failed: invalid platform
So the 'No module named _cl' error disappeared? In addition, where are you getting your demo.py from? What version of pyopencl are you using? 'create_context_from_type(cl.device_type.ALL)' will likely not work on an ICD-enabled OpenCL driver, that's why more recent pyopencl versions have introduced 'create_some_context()'. HTH, Andreas
pgpmAdhTEDIu4.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
