<?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 I'm guessing you may have in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095124#M7253</link>
    <description>&lt;P&gt;I'm guessing you may have hoped that 'icc file.cpp' would switch automatically to icpc without you adding -x c++ or equivalent.&amp;nbsp; A more specific example, of your compile command, preferably with a source file, should help.&amp;nbsp; You would also want to check which g++ version is on path, as icpc uses g++ to find the headers.&lt;/P&gt;

&lt;P&gt;Follow-up should probably be on the C++ forum&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-c-compiler" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-c-compiler&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2016 16:30:00 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2016-03-02T16:30:00Z</dc:date>
    <item>
      <title>C++11 on the Intel MTL</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095123#M7252</link>
      <description>&lt;P&gt;Intel has generously given me access to the Manycore Testing Lab&amp;nbsp;to benchmark some C++11 algorithms for non-blocking shared memory read/write I developed, but unfortunately I could not get my software to compile therein (everything works just fine on my home PC using gcc 4.7.2).&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I use the following C++11 features: std::function, thread, mutex, sleep_for, atomics. Compiling with Parallel Studio XE 2016 (as suggested to me by the MTL Team) I obtained&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;the following errors:&lt;/SPAN&gt;&lt;/P&gt;

&lt;OL&gt;
	&lt;LI&gt;cannot open source file "cstdint"&lt;/LI&gt;
	&lt;LI&gt;cannot open source file "thread"&lt;/LI&gt;
	&lt;LI&gt;namespace "std" has no member "function"&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I was able to solve issue 1 replacing &amp;lt;cstdint&amp;gt; with &amp;lt;stdint.h&amp;gt; but I could not overcome problem 2 and 3.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I compiled with the -std=c++11 option (also tried -std=c++0x).&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I'm sorry if I just missed some options and this is a silly problem. Can you help me?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 11:01:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095123#M7252</guid>
      <dc:creator>Francesco_C_</dc:creator>
      <dc:date>2016-03-02T11:01:32Z</dc:date>
    </item>
    <item>
      <title>I'm guessing you may have</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095124#M7253</link>
      <description>&lt;P&gt;I'm guessing you may have hoped that 'icc file.cpp' would switch automatically to icpc without you adding -x c++ or equivalent.&amp;nbsp; A more specific example, of your compile command, preferably with a source file, should help.&amp;nbsp; You would also want to check which g++ version is on path, as icpc uses g++ to find the headers.&lt;/P&gt;

&lt;P&gt;Follow-up should probably be on the C++ forum&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-c-compiler" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-c-compiler&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:30:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095124#M7253</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-03-02T16:30:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Tim P. wrote:</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095125#M7254</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Tim P. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I'm guessing you may have hoped that 'icc file.cpp' would switch automatically to icpc without you adding -x c++ or equivalent.&amp;nbsp; A more specific example, of your compile command, preferably with a source file, should help.&amp;nbsp; You would also want to check which g++ version is on path, as icpc uses g++ to find the headers.&lt;/P&gt;

&lt;P&gt;Follow-up should probably be on the C++ forum&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-c-compiler"&gt;https://software.intel.com/en-us/forums/intel-c-compiler&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Dear Tim, thanks for the reply. I was already using icpc but your comment has been nevertheless useful. I've just checked and the g++ version on the path was too old. I updated the path in order to have a newer one (4.4.3) &amp;nbsp;and now it compiles fine. The build command I use is (after doing "source /opt/intel/bin/compilervars.sh intel64"):&lt;/P&gt;

&lt;P&gt;icpc -D_GLIBCXX_USE_NANOSLEEP -Iinclude -std=c++11 -pthread test/main.cpp -o ART&lt;/P&gt;

&lt;P&gt;You can find the source code here:&amp;nbsp;&lt;A href="https://github.com/fcvr1010/ART/tree/ARSS/ART" target="_blank"&gt;https://github.com/fcvr1010/ART/tree/ARSS/ART&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In particular, in &lt;A href="https://github.com/fcvr1010/ART/blob/ARSS/ART/test/main.cpp" target="_blank"&gt;test/main.cpp&lt;/A&gt;, I uncommented the first line of code, so basically my main is that contained in &lt;A href="https://github.com/fcvr1010/ART/blob/ARSS/ART/test/internal/NB_ARSS_1_Check.cpp" target="_blank"&gt;test/internal/NB_ARSS_1_Check.cpp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Unfortunately, when I try to run the resulting executable I obtain the following error:&lt;/P&gt;

&lt;P&gt;/usr/lib64/libstdc++.so.6 : version 'GLIBCXX_3.4.11' not found&lt;/P&gt;

&lt;P&gt;How can I solve this issue? Am I doing something terribly wrong? :-)&lt;/P&gt;

&lt;P&gt;Ps. As you suggested, I will also post the question on the C++ forum.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 23:18:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095125#M7254</guid>
      <dc:creator>Francesco_C_</dc:creator>
      <dc:date>2016-03-02T23:18:32Z</dc:date>
    </item>
    <item>
      <title>If you haven't done so, take</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095126#M7255</link>
      <description>&lt;P&gt;If you haven't done so, take care that ld_library_path is consistent with your g++ path, so that it doesn't try to run with older libraries.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 00:18:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095126#M7255</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2016-03-03T00:18:59Z</dc:date>
    </item>
    <item>
      <title>Regarding problem #3</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095127#M7256</link>
      <description>&lt;P&gt;Regarding problem #3&lt;/P&gt;

&lt;P&gt;Did you include header file "functional" ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:34:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095127#M7256</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2016-03-03T20:34:57Z</dc:date>
    </item>
    <item>
      <title>Quote:Tim P. wrote:</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095128#M7257</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Tim P. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;If you haven't done so, take care that ld_library_path is consistent with your g++ path, so that it doesn't try to run with older libraries.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How could I not have thought about that?! I'm sorry this was actually a very stupid issue. Maybe I was just confused by the fact that I was not working on my machine. Many thanks for your kind help, it solved the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:29:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095128#M7257</guid>
      <dc:creator>Francesco_C_</dc:creator>
      <dc:date>2016-03-03T22:29:21Z</dc:date>
    </item>
    <item>
      <title>Quote:iliyapolak wrote:</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095129#M7258</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;iliyapolak wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regarding problem #3&lt;/P&gt;

&lt;P&gt;Did you include header file "functional" ?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes, I did. The issue is now solved thanks to Tim P. help. Nevertheless, thank you for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 22:31:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/C-11-on-the-Intel-MTL/m-p/1095129#M7258</guid>
      <dc:creator>Francesco_C_</dc:creator>
      <dc:date>2016-03-03T22:31:08Z</dc:date>
    </item>
  </channel>
</rss>

