MrMEEE/ironhide — Issue #128: Can run OpenCL program
Author: jarl-haggerty
Created: 2011-10-18 20:15:03+00:00
State: open

I don't know if this is actually an ironhide problem but I get the impression that ironhide does things in a very particular way and advice on an openCL forum wouldn't help.

I have an ASUS U36JC laptop with ironhide on it. A few weeks ago I could run a very tiny openCL program. The program gets a platform ID and prints the name. Back then the program would easily print, "NVIDIA CUDA" when I ran it with optirun. But then I upgraded to 11.10 and I had a lot of problems, one of them was that the clPlatformIDs in the openCL program returns -1001 instead of CL_SUCCESS. Eventually I found that /etc/OpenCL/vendors was empty and put in a link to /usr/share/nvidia-current/nvidia.icd. OpenCL started working, but I probably because of other things I didn't I couldn't reliably toggle nvidia so I just reinstalled Ubuntu 11.10.

So, I have a fresh installation of Ubuntu and the first thing I did was install ironhide and configure it, I rebooted it once before I remembered to write the ironhide-(dis/en)ablecard files (does that matter?) and I put the link back in the vendors folder and everything was perfect. Then I rebooted and now clPlatformIDs returns the same error.