<?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 Intel OpenCL Compiler does not know about cl_intel_printf in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800328#M797</link>
    <description>&lt;SPAN class="sectionbodytext"&gt;Are you using CPU or Intel GPU device?&lt;/SPAN&gt;&lt;DIV class="sectionbodytext"&gt;On GPU cl_intel_printf extention and -cl-opt-disable compiler option are both unsupported.&lt;/DIV&gt;</description>
    <pubDate>Thu, 21 Jun 2012 15:52:46 GMT</pubDate>
    <dc:creator>EvgeniyPeshkov</dc:creator>
    <dc:date>2012-06-21T15:52:46Z</dc:date>
    <item>
      <title>Intel OpenCL Compiler does not know about cl_intel_printf</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800327#M796</link>
      <description>Hello,
&lt;BR /&gt;
&lt;BR /&gt;
I'm using Intel OpenCL SDK 2012 on Linux and I get the following error message when I compile my kernel:&lt;PRE&gt;:5:48: warning: OpenCL extension 'cl_intel_printf' is not supported - ignoring&lt;/PRE&gt;
This does not make sense since I can use it and it's working.&lt;BR /&gt;
&lt;BR /&gt;
In my code I first check for cl_intel_printf with
&lt;PRE&gt;#if defined cl_intel_printf&lt;/PRE&gt;
and then I enable it with
&lt;PRE&gt;#pragma OPENCL EXTENSION cl_intel_printf : enable&lt;/PRE&gt;
&lt;BR /&gt;
This warning is quite annoying since I want to compile my OpenCL code with
&lt;PRE&gt;-Werror&lt;/PRE&gt;
as a build parameter during development. This obviously does not work since the false warning prevents the code from executing.&lt;BR /&gt;
&lt;BR /&gt;
I also noticed that
&lt;PRE&gt;-cl-opt-disable&lt;/PRE&gt;
seems to be ignored since the build log contains
&lt;PRE&gt;Kernel &lt;FOOBAR&gt; was successfully vectorized&lt;/FOOBAR&gt;&lt;/PRE&gt;
As far as I understand it vectorization is an optimization step.&lt;BR /&gt;
&lt;BR /&gt;
How can I get rid of the warning?&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
kugeleck</description>
      <pubDate>Sun, 17 Jun 2012 21:58:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800327#M796</guid>
      <dc:creator>kugeleck</dc:creator>
      <dc:date>2012-06-17T21:58:08Z</dc:date>
    </item>
    <item>
      <title>Intel OpenCL Compiler does not know about cl_intel_printf</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800328#M797</link>
      <description>&lt;SPAN class="sectionbodytext"&gt;Are you using CPU or Intel GPU device?&lt;/SPAN&gt;&lt;DIV class="sectionbodytext"&gt;On GPU cl_intel_printf extention and -cl-opt-disable compiler option are both unsupported.&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jun 2012 15:52:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800328#M797</guid>
      <dc:creator>EvgeniyPeshkov</dc:creator>
      <dc:date>2012-06-21T15:52:46Z</dc:date>
    </item>
    <item>
      <title>Intel OpenCL Compiler does not know about cl_intel_printf</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800329#M798</link>
      <description>I'm using a dual core Intel CPU.</description>
      <pubDate>Thu, 21 Jun 2012 21:51:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800329#M798</guid>
      <dc:creator>kugeleck</dc:creator>
      <dc:date>2012-06-21T21:51:28Z</dc:date>
    </item>
    <item>
      <title>Intel OpenCL Compiler does not know about cl_intel_printf</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800330#M799</link>
      <description>I've tried -cl-opt-disable compiler option and yes, there is still "Kernel &lt;ABC&gt; was successfully vectorized" string in log.&lt;DIV&gt;As OpenCL specification says-cl-opt-disable disables all optimizations that are listed in "Optimization Options" chapter like-cl-mad-enable,-cl-unsafe-math-optimizations etc. It's optimizations of math functions commonly. So this option doesn't have to disable Intel autovectorization. And vectorization is another kind of optimization related to parallel execution of work-items by splitting them to compute using wide vector ALUs.&lt;/DIV&gt;&lt;DIV&gt;You only can disable autovectorization by usingvec_type_hint kernel attribute (see OpenCL specification), or using -g (debug) option that disables autovectorization and all optimizations.&lt;/DIV&gt;&lt;DIV&gt;In respect of cl_intel printf extention, I have the same warning. Maybe it is a bug of SDK.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/ABC&gt;</description>
      <pubDate>Fri, 22 Jun 2012 09:05:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Intel-OpenCL-Compiler-does-not-know-about-cl-intel-printf/m-p/800330#M799</guid>
      <dc:creator>EvgeniyPeshkov</dc:creator>
      <dc:date>2012-06-22T09:05:33Z</dc:date>
    </item>
  </channel>
</rss>

