I wanted to ask the help of the community (or corporate devs) to debug an issue with running OpenCL apps on Knights Landing processors on an Ubuntu Server 17.04. The OS installs fine (some hardships I managed to overcome) and works as one might expect. Installing the 16.1.1 OpenCL CPU runtime (which only argued about the OS not being supported and lsb-core missing, which I installed) also went without problems. Trying to run any OpenCL app however results in failure to create a context.
Checking which library the ICD is trying to load, I created a .conf entry in /etc/ld.so.conf.d with the path to the default install dir of libraries by the runtime installer (/opt/intel/opencl-1.2-22.214.171.124/lib64) and also issue "sudo ldconfig". However, context creation fails. How can I debug any further than this?
Please make sure your CPU is supported by refer to release note.
Please make sure you are under the correct kernel version with KMD patches.
Another, you can use Linux command strace to check where error happened when you try to run your application.