<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Thank you for reporting this in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036586#M3716</link>
    <description>&lt;P&gt;Thank you for reporting this issue. &amp;nbsp;We're investigating and will reply soon.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Sep 2014 06:51:14 GMT</pubDate>
    <dc:creator>Jeffrey_M_Intel1</dc:creator>
    <dc:date>2014-09-02T06:51:14Z</dc:date>
    <item>
      <title>Help me!,compile opencl error for mic</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036585#M3715</link>
      <description>&lt;P&gt;Help me!&lt;/P&gt;

&lt;P&gt;compile my opencl code for cpu &amp;nbsp;is ok.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;icpc -o&amp;nbsp; ArrayAdd -L/opt/intel/opencl-1.2-4.5.0.8/lib64 -L/opt/intel/opencl-1.2-4.5.0.8/libmic -I/opt/intel/opencl-1.2-4.5.0.8/include/&amp;nbsp; -I/opt/intel/opencl-1.2-sdk-4.4.0.134/include/&amp;nbsp; -lOpenCL -lrt&amp;nbsp; ArrayAdd.cpp&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;but &amp;nbsp;i compile it for mic,some errors:&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;icpc -mmic -o&amp;nbsp; ArrayAddmic -L/opt/intel/opencl-1.2-4.5.0.8/lib64 -L/opt/intel/opencl-1.2-4.5.0.8/libmic -I/opt/intel/opencl-1.2-4.5.0.8/include/&amp;nbsp; -I/opt/intel/opencl-1.2-sdk-4.4.0.134/include/&amp;nbsp; -lOpenCL -lrt&amp;nbsp; ArrayAdd.cpp&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;error:&lt;BR /&gt;
	x86_64-k1om-linux-ld: skipping incompatible /opt/intel/opencl-1.2-4.5.0.8/lib64/libOpenCL.so when searching for -lOpenCL&lt;BR /&gt;
	x86_64-k1om-linux-ld: cannot find -lOpenCL&lt;/P&gt;

&lt;P&gt;why???&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;my mic info&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;micinfo&lt;BR /&gt;
	MicInfo Utility Log&lt;BR /&gt;
	Copyright 2011-2013 Intel Corporation All Rights Reserved.&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;Created Sat Aug 30 11:15:17 2014&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&lt;BR /&gt;
	&amp;nbsp;System Info&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;HOST OS&amp;nbsp;&amp;nbsp;&amp;nbsp;: Linux&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;OS Version&amp;nbsp;&amp;nbsp;: 2.6.32-358.el6.x86_64&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Driver Version&amp;nbsp;&amp;nbsp;: 3.3-1&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;MPSS Version&amp;nbsp;&amp;nbsp;: 3.3&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Host Physical Memory&amp;nbsp;: 65909 MB&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;Device No: 0, Device Name: mic0&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&amp;nbsp;Version&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Flash Version &amp;nbsp;&amp;nbsp; : 2.1.02.0390&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;SMC Firmware Version&amp;nbsp; : 1.16.5078&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;SMC Boot Loader Version&amp;nbsp; : 1.8.4326&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;uOS Version &amp;nbsp;&amp;nbsp; : 2.6.38.8+mpss3.3&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Device Serial Number &amp;nbsp; : ADKC24801867&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&amp;nbsp;Board&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Vendor ID &amp;nbsp;&amp;nbsp; : 0x8086&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Device ID &amp;nbsp;&amp;nbsp; : 0x225c&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Subsystem ID &amp;nbsp;&amp;nbsp; : 0x2500&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Coprocessor Stepping ID&amp;nbsp; : 3&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;PCIe Width &amp;nbsp;&amp;nbsp; : Insufficient Privileges&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;PCIe Speed &amp;nbsp;&amp;nbsp; : Insufficient Privileges&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;PCIe Max payload size&amp;nbsp; : Insufficient Privileges&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;PCIe Max read req size&amp;nbsp; : Insufficient Privileges&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Coprocessor Model&amp;nbsp; : 0x01&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Coprocessor Model Ext&amp;nbsp; : 0x00&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Coprocessor Type&amp;nbsp; : 0x00&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Coprocessor Family&amp;nbsp; : 0x0b&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Coprocessor Family Ext&amp;nbsp; : 0x00&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Coprocessor Stepping &amp;nbsp; : B1&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;Board SKU &amp;nbsp;&amp;nbsp; : B1PRQ-7110 P/X&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;ECC Mode &amp;nbsp;&amp;nbsp; : Enabled&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;SMC HW Revision &amp;nbsp; : Product 300W Passive CS&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="color: rgb(0, 0, 0); font-family: 宋体, arial, Verdana, sans-serif; font-size: 14px; line-height: 16.799999237060547px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Aug 2014 15:46:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036585#M3715</guid>
      <dc:creator>hu_m_</dc:creator>
      <dc:date>2014-08-30T15:46:43Z</dc:date>
    </item>
    <item>
      <title>Thank you for reporting this</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036586#M3716</link>
      <description>&lt;P&gt;Thank you for reporting this issue. &amp;nbsp;We're investigating and will reply soon.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 06:51:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036586#M3716</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2014-09-02T06:51:14Z</dc:date>
    </item>
    <item>
      <title>I suppose you configured your</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036587#M3717</link>
      <description>&lt;P&gt;I suppose you configured your Intel Compiler to generate 'native MIC' executable and you should configure it for host.&lt;/P&gt;

&lt;P&gt;It should be something like: source /opt/intel/composerxe/bin/compilervars.sh intel64&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 07:12:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036587#M3717</guid>
      <dc:creator>Alexey_B_Intel1</dc:creator>
      <dc:date>2014-09-02T07:12:30Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036588#M3718</link>
      <description>Hi,

To run your OpenCL code on MIC you DON'T need to compile it differently/specifically for MIC. You should compile it as usual (as in your first example) and you should query available devices with clGetDeviceIDs and select the one with CL_DEVICE_TYPE_ACCELERATOR type inside your host program.

In your second example you use '-mmic' flag which means - compile a native program (just a regular C/C++, not an OpenCL) for running on MIC.

Thanks,
Yuri</description>
      <pubDate>Tue, 02 Sep 2014 08:49:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036588#M3718</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2014-09-02T08:49:37Z</dc:date>
    </item>
    <item>
      <title>   </title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036589#M3719</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;thanks&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/509266" style="font-size: 12px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Jeffrey&amp;nbsp;&lt;/A&gt;，&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;thanks &amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/user/188547" style="font-size: 12px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Aleksey&amp;nbsp;&lt;/A&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;，&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;thanks&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/281654" style="font-size: 12px; line-height: 16.5px; background-color: rgb(238, 238, 238);"&gt;Yuri&lt;/A&gt;，I know your solution.&lt;/P&gt;

&lt;P&gt;You think openCL &amp;nbsp;has a&amp;nbsp;similar method as openMP for MIC,offload &amp;nbsp;and naive? or OpenCL has not naive method for mic?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 09:09:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036589#M3719</guid>
      <dc:creator>hu_m_</dc:creator>
      <dc:date>2014-09-02T09:09:26Z</dc:date>
    </item>
    <item>
      <title>I'm not sure I understand the</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036590#M3720</link>
      <description>I'm not sure I understand the question. And I guess you mean native (not naive).

From OpenCL point of view MIC is an accelerator device (of CL_DEVICE_TYPE_ACCELERATOR type). And any OpenCL program consists of:
- host part (platform/device selection, context/queue creation, program creation/build, data preparation and exchange with device, etc);
- kernel part (OpenCL C program which performs calculations on device).
When clBuildProgram is called on the host it builds the kernel part and creates an executable for specific device. In this case it will create an executable for MIC. This executable will be native (in some sense) for MIC, but there is no such concept in OpenCL and you have to create this executable by means of OpenCL API as I described.

Thanks,
Yuri</description>
      <pubDate>Tue, 02 Sep 2014 10:00:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036590#M3720</guid>
      <dc:creator>Yuri_K_Intel</dc:creator>
      <dc:date>2014-09-02T10:00:50Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036591#M3721</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;thanks Yuri &amp;nbsp;again,I tried according to what you said ,it works.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;another different question, can we think MIC is a multicore CPU,in this way ,maybe we can run a opencl parallel&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Program in MIC,just&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;as &amp;nbsp;openCL for CPU? because mic has its OS.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 12:51:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-me-compile-opencl-error-for-mic/m-p/1036591#M3721</guid>
      <dc:creator>hu_m_</dc:creator>
      <dc:date>2014-09-02T12:51:49Z</dc:date>
    </item>
  </channel>
</rss>

