title: OpenCL does not detect Xeon Phi
body: <p>We created a small program to detect Xeon Phi, here is our code snippet</p>
  
  <pre><code>        std::vector&lt;cl::Platform&gt; platformList(5);
      std::vector&lt;cl::Device&gt; deviceList;
      cl::Platform::get(&amp;platformList);
      if(platformList.size() == 0){
              std::cout &lt;&lt; "No Platforms found. Check OpenCL installation!" &lt;&lt; std::endl;
              exit(1);
      }
  
      for(i=0; i&lt;platformList.size(); i++){
      // for(i=0; i&lt;1; i++){
              std::cout &lt;&lt; platformList[i].getInfo&lt;CL_PLATFORM_NAME&gt;()&lt;&lt; std::endl;
              platformList[i].getDevices(CL_DEVICE_TYPE_ALL, &amp;deviceList);
              if(deviceList.size() == 0){
                      std::cout &lt;&lt; "No Devices found. Check OpenCL installation!" &lt;&lt; std::endl;
                      exit(1);
              }
  
              for(j=0; j&lt;deviceList.size(); j++){
                      // dims = deviceList[j].getInfo&lt;CL_DEVICE_MAX_WORK_ITEM_SIZES&gt;();
                      // for(k=0; k&lt;dims.size(); k++)
                      // std::cout &lt;&lt; dims[k] &lt;&lt; std::endl;
                      std::cout &lt;&lt; deviceList[j].getInfo&lt;CL_DEVICE_NAME&gt;()&lt;&lt; std::endl;
              }
      }
  
      cl::Device device = deviceList[j-1];
  
      std::cout &lt;&lt; "Using device: " &lt;&lt; device.getInfo&lt;CL_DEVICE_NAME&gt;() &lt;&lt; std::endl;
  </code></pre>
  
  <p>but it does not detect the Phi, we get only this output;</p>
  
  <pre><code>    Intel(R) OpenCL
        Intel(R) Xeon(R) CPU E5-2609 v2 @ 2.50GHz
  Using device:       Intel(R) Xeon(R) CPU E5-2609 v2 @ 2.50GHz
  Hello World
  </code></pre>
  
  <p>Do you know what are we doing wrong?</p>
  
  <p>P.S. Below can you find micinfo output</p>
  
  <pre><code>    MicInfo Utility Log
  Copyright 2011-2013 Intel Corporation All Rights Reserved.
  
  Created Thu Oct  2 15:04:08 2014
  
  
      System Info
          HOST OS         : Linux
          OS Version      : 2.6.32-431.el6.x86_64
          Driver Version      : 3.2-1
          MPSS Version        : 3.2
          Host Physical Memory    : 16274 MB
  
  Device No: 0, Device Name: mic0
  
      Version
          Flash Version        : 2.1.02.0390
          SMC Firmware Version     : 1.16.5078
          SMC Boot Loader Version  : 1.8.4326
          uOS Version          : 2.6.38.8+mpss3.2
          Device Serial Number     : ADKC32800437
  
      Board
          Vendor ID        : 0x8086
          Device ID        : 0x225d
          Subsystem ID         : 0x3608
          Coprocessor Stepping ID  : 2
          PCIe Width       : Insufficient Privileges
          PCIe Speed       : Insufficient Privileges
          PCIe Max payload size    : Insufficient Privileges
          PCIe Max read req size   : Insufficient Privileges
          Coprocessor Model    : 0x01
          Coprocessor Model Ext    : 0x00
          Coprocessor Type     : 0x00
          Coprocessor Family   : 0x0b
          Coprocessor Family Ext   : 0x00
          Coprocessor Stepping     : C0
          Board SKU        : C0PRQ-3120/3140 P/A
          ECC Mode         : Enabled
          SMC HW Revision      : Product 300W Active CS
  
      Cores
          Total No of Active Cores : 57
          Voltage          : 0 uV
          Frequency        : 1100000 kHz
  
      Thermal
          Fan Speed Control    : On
          Fan RPM          : 1200
          Fan PWM          : 20
          Die Temp         : 45 C
  
      GDDR
          GDDR Vendor      : Elpida
          GDDR Version         : 0x1
          GDDR Density         : 2048 Mb
          GDDR Size        : 5952 MB
          GDDR Technology      : GDDR5 
          GDDR Speed       : 5.000000 GT/s 
          GDDR Frequency       : 2500000 kHz
          GDDR Voltage         : 1501000 uV
  </code></pre>