<?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 Oh, I understand, Intel HD in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/GPU-HD4600-OpenCL-SPIR-compilation-problem/m-p/1065558#M4309</link>
    <description>&lt;P&gt;Oh, I understand, Intel HD doesn't support&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;cl_khr_fp64&amp;nbsp;&lt;/SPAN&gt;extension :(&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 13:15:13 GMT</pubDate>
    <dc:creator>Nikolay_P_</dc:creator>
    <dc:date>2017-01-10T13:15:13Z</dc:date>
    <item>
      <title>GPU HD4600 OpenCL SPIR compilation problem</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/GPU-HD4600-OpenCL-SPIR-compilation-problem/m-p/1065557#M4308</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I use OpenCL SPIR for two algorithms, each one has templated functions for uchar, ushort, uint, float and double (templates are implemented via defines/includes). So I have two SPIR binaries, each contains code with specializations for these types.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;But I have problems while compiling OpenCL program from SPIR binaries on Intel HD 4600 (actual driver 10.18.14.4414, 23.03.2016, Windows 8.1):&lt;/P&gt;

&lt;P&gt;1. First algorithm fails to compile with following message:&lt;/P&gt;

&lt;P style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;error: IGILTargetLowering::LowerCall(): unhandled function call!&lt;BR /&gt;
	Call made to: _&lt;EM&gt;truncdfsf2()&lt;BR /&gt;
	0x1c9d2c50: i64 = ExternalSymbol'&lt;/EM&gt;_truncdfsf2'&lt;BR /&gt;
	error: midlevel compiler failed build.&lt;/P&gt;

&lt;P&gt;2. Second one fails to compile with:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;error: IGILTargetLowering::LowerCall(): unhandled function call!&lt;/SPAN&gt;&lt;BR style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);" /&gt;
	&lt;SPAN style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;Call made to: _&lt;/SPAN&gt;&lt;EM style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;ltdf2()&lt;BR /&gt;
	0x266e2520: i64 = ExternalSymbol'&lt;/EM&gt;&lt;SPAN style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;_ltdf2'&lt;/SPAN&gt;&lt;BR style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);" /&gt;
	&lt;SPAN style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;error: midlevel compiler failed build.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;As I understand -&amp;nbsp;&lt;SPAN style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;_truncdfsf2&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;is a double-&amp;gt;float conversion and &lt;/SPAN&gt;&lt;SPAN style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; background-color: rgb(255, 255, 221);"&gt;_ltdf2&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;&amp;nbsp;is a "lesser than" operator for doubles. So I removed double support from algorithms and now I have:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;1. The first one leads to driver crash and system hangs up on &lt;/SPAN&gt;clBuildProgram&amp;nbsp;call&lt;SPAN style="font-size: 13.008px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;2. The second one works good.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;So the question is - why these two external symbols can't be found?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 12:51:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/GPU-HD4600-OpenCL-SPIR-compilation-problem/m-p/1065557#M4308</guid>
      <dc:creator>Nikolay_P_</dc:creator>
      <dc:date>2017-01-10T12:51:12Z</dc:date>
    </item>
    <item>
      <title>Oh, I understand, Intel HD</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/GPU-HD4600-OpenCL-SPIR-compilation-problem/m-p/1065558#M4309</link>
      <description>&lt;P&gt;Oh, I understand, Intel HD doesn't support&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;cl_khr_fp64&amp;nbsp;&lt;/SPAN&gt;extension :(&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 13:15:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/GPU-HD4600-OpenCL-SPIR-compilation-problem/m-p/1065558#M4309</guid>
      <dc:creator>Nikolay_P_</dc:creator>
      <dc:date>2017-01-10T13:15:13Z</dc:date>
    </item>
  </channel>
</rss>

