<?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 Kevin in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041852#M46352</link>
    <description>&lt;P&gt;Hi Kevin&lt;/P&gt;

&lt;P&gt;Thanks for the tip. I assume I can follow a similar approach for header only boost functionality.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Jamil&lt;/P&gt;</description>
    <pubDate>Mon, 29 Sep 2014 16:23:45 GMT</pubDate>
    <dc:creator>Jamil_A_</dc:creator>
    <dc:date>2014-09-29T16:23:45Z</dc:date>
    <item>
      <title>offload and STL problem</title>
      <link>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041849#M46349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The following test returns an undefined reference for the target code&lt;/P&gt;

&lt;P&gt;#include &amp;lt;algorithm&amp;gt;&lt;/P&gt;

&lt;P&gt;void test()&lt;BR /&gt;
	{&lt;/P&gt;

&lt;P&gt;#pragma offload target(mic)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double a=1.0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double b=1.0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;double c=std::max(a,b);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;int main()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp; test();&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;icpc -openmp -offload-option,mic,ld,'-zdefs' micstl.cxx&lt;BR /&gt;
	/tmp/icpcwXQiLo.o: In function `__offload_entry_micstl_cxx_6test_11b7a23007ddafd41960e6289788656dicpc326259940ELibIR':&lt;BR /&gt;
	micstl.cxx:(.text+0x72): undefined reference to `double const&amp;amp; std::max&amp;lt;double&amp;gt;(double const&amp;amp;, double const&amp;amp;)'&lt;/P&gt;

&lt;P&gt;icpc --version&lt;BR /&gt;
	icpc (ICC) 14.0.4 20140805&lt;BR /&gt;
	Copyright (C) 1985-2014 Intel Corporation. &amp;nbsp;All rights reserved.&lt;/P&gt;

&lt;P&gt;Do I need to link to a specific library on the mic?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Jamil&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2014 21:22:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041849#M46349</guid>
      <dc:creator>Jamil_A_</dc:creator>
      <dc:date>2014-09-06T21:22:51Z</dc:date>
    </item>
    <item>
      <title>icpc should normally generate</title>
      <link>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041850#M46350</link>
      <description>&lt;P&gt;icpc should normally generate in-line code for std::max(), avoiding a library reference.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2014 22:30:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041850#M46350</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-09-06T22:30:04Z</dc:date>
    </item>
    <item>
      <title>Pardon the delay, you</title>
      <link>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041851#M46351</link>
      <description>&lt;P&gt;Pardon the delay, you probably already determined the system header &lt;STRONG&gt;&amp;lt;algorithm&amp;gt; &lt;/STRONG&gt;requires decoration/declaration for inclusion in the coprocessor (target) compilation as follows:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;#pragma offload_attribute (push, target(mic))
#include &amp;lt;algorithm&amp;gt;
#pragma offload_attribute (pop)
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:10:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041851#M46351</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-09-29T16:10:49Z</dc:date>
    </item>
    <item>
      <title>Hi Kevin</title>
      <link>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041852#M46352</link>
      <description>&lt;P&gt;Hi Kevin&lt;/P&gt;

&lt;P&gt;Thanks for the tip. I assume I can follow a similar approach for header only boost functionality.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Jamil&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:23:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041852#M46352</guid>
      <dc:creator>Jamil_A_</dc:creator>
      <dc:date>2014-09-29T16:23:45Z</dc:date>
    </item>
    <item>
      <title>I'm not knowledgeable on</title>
      <link>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041853#M46353</link>
      <description>&lt;P&gt;I'm not knowledgeable on Boost but I expect that's correct. Any headers containing function declarations used within the offload code will require this style of decoration/declaration. Let me know if you run into problems and I'll solicit help from our Developers.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Sep 2014 16:41:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/offload-and-STL-problem/m-p/1041853#M46353</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-09-29T16:41:08Z</dc:date>
    </item>
  </channel>
</rss>

