OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1722 Discussions

Xeon Phi (Knights Landing) on Ubuntu 17.04 with OpenCL

Nagy-Egri__Mate_Fere
New Contributor I
1,061 Views

Hi!

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-6.4.0.25/lib64) and also issue "sudo ldconfig". However, context creation fails. How can I debug any further than this?

0 Kudos
2 Replies
Jiandong_Z_Intel
Employee
1,061 Views

Hi There,

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.

 

Thanks,

Zachary

0 Kudos
Nagy-Egri__Mate_Fere
New Contributor I
1,061 Views

I am running stock Ubuntu Server 17.04 with kernel version 4.10.0-19 built against gcc 6.3.0 which to my knowledge is the kernel that is on CentOS 7 which is known to work. What patches are you referring to? I have attached the strace output of clFFT-client installed from the Ubuntu repo.

0 Kudos
Reply