<?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 Hi, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959253#M21477</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;looking further into it, the inclusion of any one of the following three headers seems to cause trouble: algorithm, cmath and random. A minimal example to reproduce the issue (Compiler version 14.0 and MPSS 3.1.2):&lt;/P&gt;

&lt;P&gt;#pragma offload_attribute(push, target(mic))&lt;BR /&gt;
	// Include any one of these three. No need to actually use any function.&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;#include &amp;lt;random&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;#include &amp;lt;cmath&amp;gt;&lt;BR /&gt;
	#include &amp;lt;algorithm&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;#pragma offload_attribute(pop)&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;int main() {&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; #pragma offload target(mic)&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; { }&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The code compiles and the MIC compiler just brings up a warning about the missing symbols:&lt;BR /&gt;
	*MIC* unresolved __builtin_nexttowardf&lt;BR /&gt;
	*MIC* unresolved __builtin_signbit&lt;BR /&gt;
	&lt;BR /&gt;
	The application crashes when the actual offload should take place.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jan 2014 22:17:36 GMT</pubDate>
    <dc:creator>Christoph_L_</dc:creator>
    <dc:date>2014-01-11T22:17:36Z</dc:date>
    <item>
      <title>Compiler Problem on MIC with C++11</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959245#M21469</link>
      <description>&lt;P&gt;Hi, I have trouble compiling the following code with the SP1 version of the Intel C++ compiler. It works with older compilers. [cpp] #include #include int main(int argc, char**argv) { #pragma offload target(mic) { } return 0; } [/cpp] icc -std=c++11 -offload-attribute-target=mic -offload-option,mic,compiler,"-z defs" main.cpp /tmp/icc1jGwdV.o: In function `std::signbit(float)': main.cpp:(.text._ZSt7signbitf[_ZSt7signbitf]+0x2): undefined reference to `__builtin_signbit' /tmp/icc1jGwdV.o: In function `std::signbit(double)': main.cpp:(.text._ZSt7signbitd[_ZSt7signbitd]+0x2): undefined reference to `__builtin_signbit' /tmp/icc1jGwdV.o: In function `std::signbit(long double)': main.cpp:(.text._ZSt7signbite[_ZSt7signbite]+0xd): undefined reference to `__builtin_signbit' /tmp/icc1jGwdV.o: In function `std::nexttoward(float, long double)': main.cpp:(.text._ZSt10nexttowardfe[_ZSt10nexttowardfe]+0xd): undefined reference to `__builtin_nexttowardf'&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 11:24:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959245#M21469</guid>
      <dc:creator>zibschuett</dc:creator>
      <dc:date>2013-10-18T11:24:01Z</dc:date>
    </item>
    <item>
      <title>You seem to have suppressed</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959246#M21470</link>
      <description>&lt;P&gt;You seem to have suppressed important text for your source code.&lt;/P&gt;
&lt;P&gt;Are you sure you used icc rather than icpc, and the same version of g++, in both cases?&amp;nbsp; The current icpc probably works best with g++ 4.7 or 4.8.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 11:55:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959246#M21470</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-10-18T11:55:07Z</dc:date>
    </item>
    <item>
      <title>sorry for that. I wanted to</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959247#M21471</link>
      <description>&lt;P&gt;sorry for that. I wanted to include complex and cmath.&lt;/P&gt;
&lt;P&gt;I used icc, but icpc gives the same result.&lt;/P&gt;
&lt;P&gt;This is all running on the same machine. We use CentOS 6.4 with gcc 4.4.7 because of the Xeon Phi cards.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 12:28:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959247#M21471</guid>
      <dc:creator>zibschuett</dc:creator>
      <dc:date>2013-10-18T12:28:30Z</dc:date>
    </item>
    <item>
      <title>I confirmed this problem.</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959248#M21472</link>
      <description>&lt;P&gt;I confirmed this problem. &lt;/P&gt;
&lt;P&gt;I thought it might be related to g++ version, but it seems not.&amp;nbsp; icpc (on host) sometimes misses support for C++11 features on account of g++ 4.4 not supporting them, but the MIC 14.0 compiler should have its own copy of headers from gcc-4.7.&lt;/P&gt;
&lt;P&gt;Most rumors of changes for the next 14.0 update refer to performance, not failures, so it may be good to file a formal problem report.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:32:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959248#M21472</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-10-18T15:32:01Z</dc:date>
    </item>
    <item>
      <title>I will report this to</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959249#M21473</link>
      <description>&lt;P&gt;I reported this to Development and will keep this post updated as I learn more. No need for formal problem report.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: DPD200295115)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 15:40:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959249#M21473</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2013-10-18T15:40:00Z</dc:date>
    </item>
    <item>
      <title>Is there a workaround for</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959250#M21474</link>
      <description>&lt;P&gt;Is there a workaround for this in the meantime?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2013 14:57:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959250#M21474</guid>
      <dc:creator>RKannan</dc:creator>
      <dc:date>2013-11-25T14:57:40Z</dc:date>
    </item>
    <item>
      <title>I'm sorry I missed your post</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959251#M21475</link>
      <description>&lt;P&gt;I'm sorry I missed your post earlier. Unfortunately, there is no work around at this time. I inquired w/Development regarding the status of a fix. I&amp;nbsp;reiterated the impact/urgency (this has also impacted others not doing offload too) and will update once I hear more.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 18:54:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959251#M21475</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2013-12-03T18:54:49Z</dc:date>
    </item>
    <item>
      <title>I'm still experiencing issues</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959252#M21476</link>
      <description>&lt;P&gt;I'm still experiencing issues about a "missing symbol definition of __builtin_signbit" when including &amp;lt;algorithm&amp;gt; with C++11 support and offloading to the Xeon Phi (whether actual algorithms of the include are used or not doesn't matter). I'm using the most recent version of MPSS.&lt;/P&gt;

&lt;P&gt;The code on the host compiles and runs fine, but when the code is executed on a xeon phi it crashes (a dlopen error message).&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 20:39:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959252#M21476</guid>
      <dc:creator>Christoph_L_</dc:creator>
      <dc:date>2014-01-11T20:39:22Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959253#M21477</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;looking further into it, the inclusion of any one of the following three headers seems to cause trouble: algorithm, cmath and random. A minimal example to reproduce the issue (Compiler version 14.0 and MPSS 3.1.2):&lt;/P&gt;

&lt;P&gt;#pragma offload_attribute(push, target(mic))&lt;BR /&gt;
	// Include any one of these three. No need to actually use any function.&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;#include &amp;lt;random&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;#include &amp;lt;cmath&amp;gt;&lt;BR /&gt;
	#include &amp;lt;algorithm&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;#pragma offload_attribute(pop)&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;int main() {&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; #pragma offload target(mic)&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; { }&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The code compiles and the MIC compiler just brings up a warning about the missing symbols:&lt;BR /&gt;
	*MIC* unresolved __builtin_nexttowardf&lt;BR /&gt;
	*MIC* unresolved __builtin_signbit&lt;BR /&gt;
	&lt;BR /&gt;
	The application crashes when the actual offload should take place.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 22:17:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959253#M21477</guid>
      <dc:creator>Christoph_L_</dc:creator>
      <dc:date>2014-01-11T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959254#M21478</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;the problem is fixed with Intel(R) Composer XE 2013 SP1 Update 3. Please give it a try.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Georg Zitzlsberger&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2014 16:18:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiler-Problem-on-MIC-with-C-11/m-p/959254#M21478</guid>
      <dc:creator>Georg_Z_Intel</dc:creator>
      <dc:date>2014-05-19T16:18:53Z</dc:date>
    </item>
  </channel>
</rss>

