<?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 libraries not found compiling OpenCL program with option &amp;quot;-fast&amp;quot; in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/libraries-not-found-compiling-OpenCL-program-with-option-quot/m-p/1113740#M5342</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to compile a small OpenCL program and have a problem with option "-fast". I'm using "opencl-1.2-sdk-6.3.0.1904" on a "SUSE Linux Enterprise Server 12.2 (x86_64, kernel: 4.4.38-93-default).&lt;/P&gt;

&lt;P&gt;loki introduction 108 icc -v&lt;BR /&gt;
	icc version 17.0.2 (gcc version 6.3.0 compatibility)&lt;/P&gt;

&lt;P&gt;loki introduction 109 icc -std=c11 -m64 -fast -prec_div -Wall -Wcheck dot_prod_OpenCL.c errorCodes.c -lOpenCL&lt;BR /&gt;
	ld: cannot find -lOpenCL&lt;BR /&gt;
	ld: cannot find -lm&lt;BR /&gt;
	ld: cannot find -lc&lt;BR /&gt;
	ld: cannot find -ldl&lt;BR /&gt;
	ld: cannot find -lc&lt;/P&gt;

&lt;P&gt;Everything works as expected if I replace "-fast" by "-O3".&lt;/P&gt;

&lt;P&gt;loki introduction 110 icc -std=c11 -m64 -O3 -prec_div -Wall -Wcheck dot_prod_OpenCL.c errorCodes.c -lOpenCL&lt;BR /&gt;
	loki introduction 111&lt;/P&gt;

&lt;P&gt;Can sombody explain the strange behaviour of "-fast" or is it a compiler problem? Thank you very much for any explanation in advance.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;

&lt;P&gt;Siegmar&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 07:11:57 GMT</pubDate>
    <dc:creator>Siegmar_G_</dc:creator>
    <dc:date>2017-03-08T07:11:57Z</dc:date>
    <item>
      <title>libraries not found compiling OpenCL program with option "-fast"</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/libraries-not-found-compiling-OpenCL-program-with-option-quot/m-p/1113740#M5342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to compile a small OpenCL program and have a problem with option "-fast". I'm using "opencl-1.2-sdk-6.3.0.1904" on a "SUSE Linux Enterprise Server 12.2 (x86_64, kernel: 4.4.38-93-default).&lt;/P&gt;

&lt;P&gt;loki introduction 108 icc -v&lt;BR /&gt;
	icc version 17.0.2 (gcc version 6.3.0 compatibility)&lt;/P&gt;

&lt;P&gt;loki introduction 109 icc -std=c11 -m64 -fast -prec_div -Wall -Wcheck dot_prod_OpenCL.c errorCodes.c -lOpenCL&lt;BR /&gt;
	ld: cannot find -lOpenCL&lt;BR /&gt;
	ld: cannot find -lm&lt;BR /&gt;
	ld: cannot find -lc&lt;BR /&gt;
	ld: cannot find -ldl&lt;BR /&gt;
	ld: cannot find -lc&lt;/P&gt;

&lt;P&gt;Everything works as expected if I replace "-fast" by "-O3".&lt;/P&gt;

&lt;P&gt;loki introduction 110 icc -std=c11 -m64 -O3 -prec_div -Wall -Wcheck dot_prod_OpenCL.c errorCodes.c -lOpenCL&lt;BR /&gt;
	loki introduction 111&lt;/P&gt;

&lt;P&gt;Can sombody explain the strange behaviour of "-fast" or is it a compiler problem? Thank you very much for any explanation in advance.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;

&lt;P&gt;Siegmar&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 07:11:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/libraries-not-found-compiling-OpenCL-program-with-option-quot/m-p/1113740#M5342</guid>
      <dc:creator>Siegmar_G_</dc:creator>
      <dc:date>2017-03-08T07:11:57Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;...Can sombody explain the</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/libraries-not-found-compiling-OpenCL-program-with-option-quot/m-p/1113741#M5343</link>
      <description>&amp;gt;&amp;gt;...Can sombody explain the strange behaviour of "-fast" or is it a compiler problem?

If you run &lt;STRONG&gt;icc -help&lt;/STRONG&gt; you will see that the option &lt;STRONG&gt;-fast&lt;/STRONG&gt; turns on a set of another options and one of them is &lt;STRONG&gt;static&lt;/STRONG&gt;.
...
&lt;STRONG&gt;-fast&lt;/STRONG&gt;  -   enable -xHOST -O3 -ipo -no-prec-div &lt;STRONG&gt;-static&lt;/STRONG&gt; -fp-model fast=2
...
&lt;STRONG&gt;-static&lt;/STRONG&gt;   - &lt;STRONG&gt;prevents linking with shared libraries&lt;/STRONG&gt;
...</description>
      <pubDate>Wed, 08 Mar 2017 17:39:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/libraries-not-found-compiling-OpenCL-program-with-option-quot/m-p/1113741#M5343</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2017-03-08T17:39:25Z</dc:date>
    </item>
  </channel>
</rss>

