Daniel <[email protected]> writes:

> That did it, thanks.
> Now I'm getting this:
>
> *Traceback (most recent call last):*
> *  File "demo.py", line 10, in <module>*
> *    platform = cl.get_platforms()*
> *pyopencl.LogicError: clGetPlatformIDs failed: platform not found khr*
>
> From what I can gather, it seems like it could be a problem with my video
> card using Optimus?  (
> http://stackoverflow.com/questions/10776230/getplatformids-returns-1001-even-though-nvidia-icd-exists-and-contains-libcu
> )
>
> Is there a workaround for this?

As far as Optimus is concerned, just make sure that the 'nvidia' kernel
module is loaded. (If it won't, the BIOS has turned off your GPU.)

In the meantime, install a CPU OpenCL implementation from 

http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/#two

or

http://software.intel.com/en-us/articles/intel-opencl-sdk

Andreas

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

Reply via email to