Software Archive
Read-only legacy content
17061 Discussions

Not seeing mic device in OpenCL devices

Bruce_R_1
Beginner
725 Views

I am trying to run a Xeon Phi card under Ubuntu Server 14.04. I have installed mpss-3.3.5, opencl_runtime_14.2_x64_4.5.0.8, and intel_code_builder_for_opencl_2014_4.6.0.178_x64.

miccheck says everything is "OK". micinfo seems to work. At this point OpenCL sees a cpu device and I can run OpenCL programs on the CPU device. I have setup an icd of /opt/intel/opencl-1.2-4.5.0.8/lib64/libintelocl.so. However I am still not seeing the mic device as an OpenCL device. 

Any ideas on debugging this?

 

0 Kudos
3 Replies
JJK
New Contributor III
725 Views

how are you testing for OpenCL devices?  the mic device is a special class of OpenCL device (ACCELERATOR), and will not show up if your code is checking for GPUs.

I've always found it useful to grab the 'clinfo' program from the AMD Radeon driver kit - this tool will happily list all OpenCL devices on the system. You will need the libOpenCL.so from the same driver kit for the clinfo program to work, e.g.

 

LD_LIBRARY_PATH=/path/to/fglrx /path/to/fgrlx/clinfo

HTH,

 

JJK

 

0 Kudos
Bruce_R_1
Beginner
725 Views

I am running clinfo to list the devices. I also wrote a little program to list the devices. As a general user both report just the CPU device.

Running as root, clinfo  throws an exception. My own device lister actually shows both the CPU and the mic card. I was also able to run a test program on the mic card, running as root. So I'm thinking some sort of permission problem. I'll see if I can debug clinfo and find why it is throwing an exception.

Bruce

 

0 Kudos
Bruce_R_1
Beginner
725 Views

I rebuilt clinfo and it now does not crash. Also, I changed the group on /dev/mic0 to micuser, and I changed the permissions on /dev/mic/scif to allow group access. Now everything is working.

Bruce

0 Kudos
Reply