Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed CUDA Toolkit 5.0 and nvidia-experimental-310 drivers. CUDA examples works fine with optirun but every OpenCL app fails to run with error calling clGetPlatformIDs function. I've tried examples from NVIDIA OpenCL SDK and also examples from PyOpenCL which I compiled from source and also using pip, nothing works. Why it's not working?

share|improve this question

I finally managed to get it work after creating /etc/OpenCL/vendors/nvidia.icd file and inside. I also switched back to nvidia-current driver before but I'm sure it still would work with experimental ones. I found a solution here.

share|improve this answer
Thank you for that, very helpful in getting my OpenCL running. – Jason Champion Aug 31 '13 at 9:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.