<?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 It sure appears that you have in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002231#M30611</link>
    <description>&lt;P&gt;It sure appears that you have completed the required steps but the compile-time warning and run-time error suggest something may still be amiss with your environment.&lt;BR /&gt;
	The missing library should be present as part of the Composer XE 2013 SP1 Update installed image under:&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/libirng.so&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/libirng.so&lt;BR /&gt;
	Double check the environment variable settings for: &lt;STRONG&gt;LD_LIBRARY_PATH, MIC_LD_LIBRARY_PATH, &lt;/STRONG&gt;and &lt;STRONG&gt;MIC_LIBRARY_PATH&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ env | grep LIBRARY

LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/../compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/intel64/gcc4.4

MIC_LD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/mpirt/lib/mic:/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/mic

LD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/mpirt/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/../compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/intel64/gcc4.4

MIC_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/mic
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Apr 2014 11:11:00 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2014-04-27T11:11:00Z</dc:date>
    <item>
      <title>Compiling for Offload, libirng.so needed, crash on first Offload</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002230#M30610</link>
      <description>&lt;P&gt;Dear Support Team, dear all,&lt;/P&gt;

&lt;P&gt;I'm trying to compile and run an application for the Xeon PHI. However when I link my application with a build script it prints the following warning:&lt;/P&gt;

&lt;P&gt;[bash]ld: warning: libirng.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)[/bash]&lt;/P&gt;

&lt;P&gt;I still can run the program but it crashes on first offload with:&lt;/P&gt;

&lt;P&gt;[bash]&lt;/P&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;"&gt;On the remote process, dlopen() failed. The error message sent back from the sink is /tmp/coi_procs/1/12302/load_&lt;WBR /&gt;lib/icpcoutIWf5MP: undefined symbol: _ZSt4sqrtf&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;"&gt;On the sink, dlopen() returned NULL. The result of dlerror() is "/tmp/coi_procs/1/12302/load_&lt;WBR /&gt;lib/icpcoutIWf5MP: undefined symbol: _ZSt4sqrtf"&lt;/DIV&gt;

&lt;DIV style="color: rgb(34, 34, 34); font-family: arial, sans-serif; line-height: normal;"&gt;offload error: cannot load library to the device 0 (error code 20)&lt;/DIV&gt;

&lt;P&gt;[/bash]&lt;/P&gt;

&lt;P&gt;To me it looks like std::sqrt is missing?&lt;/P&gt;

&lt;P&gt;Before compiling I usually use:&lt;/P&gt;

&lt;P&gt;[bash]&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;source &amp;nbsp;/opt/intel/composer_xe_2013_sp1.2.144/bin/compilervars.sh intel64&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;source /opt/intel/vtune_amplifier_xe/amplxe-vars.sh[/bash]&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;My compile commands look something like this:&lt;/P&gt;

&lt;P&gt;[bash]icpc -o foo.o -c -fmessage-length=0 -O3 -fstrict-aliasing -fargument-noalias -xHost -openmp -DSTUFF=0 -Ibuild/build_foo -Isrc src/foo.cpp[/bash]&lt;/P&gt;

&lt;P&gt;Any help is highly appreciated!&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 26 Apr 2014 17:07:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002230#M30610</guid>
      <dc:creator>Alex_K_</dc:creator>
      <dc:date>2014-04-26T17:07:02Z</dc:date>
    </item>
    <item>
      <title>It sure appears that you have</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002231#M30611</link>
      <description>&lt;P&gt;It sure appears that you have completed the required steps but the compile-time warning and run-time error suggest something may still be amiss with your environment.&lt;BR /&gt;
	The missing library should be present as part of the Composer XE 2013 SP1 Update installed image under:&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/libirng.so&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/libirng.so&lt;BR /&gt;
	Double check the environment variable settings for: &lt;STRONG&gt;LD_LIBRARY_PATH, MIC_LD_LIBRARY_PATH, &lt;/STRONG&gt;and &lt;STRONG&gt;MIC_LIBRARY_PATH&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ env | grep LIBRARY

LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/../compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/intel64/gcc4.4

MIC_LD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/mpirt/lib/mic:/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/mic

LD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/mpirt/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/../compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/ipp/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/intel64/gcc4.4

MIC_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/mic
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2014 11:11:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002231#M30611</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-04-27T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Environment variables are ok</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002232#M30612</link>
      <description>&lt;P&gt;Environment variables are ok and include all you posted.&lt;/P&gt;

&lt;P&gt;The librarys are also not missing.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2014 15:57:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002232#M30612</guid>
      <dc:creator>Alex_K_</dc:creator>
      <dc:date>2014-04-27T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Ok. Then it is not clear why</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002233#M30613</link>
      <description>&lt;P&gt;Ok. Then it is not clear why the rpath error occurs. There must be something unique about the link.&lt;BR /&gt;
	The undefined symbol may relate to a library not being found or possibly sqrt somehow not seen as decorated with the __attribute__ (( target (mic))).&lt;BR /&gt;
	The small mock-ups that I have created won't exhibit either error. Can you share a reproducer with us?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 07:51:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002233#M30613</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-04-28T07:51:20Z</dc:date>
    </item>
    <item>
      <title>I guess I should have</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002234#M30614</link>
      <description>&lt;P&gt;I guess I should have mentioned I use OpenMP 4.0...&lt;/P&gt;

&lt;P&gt;However I managed to reduce the problem to this:&lt;/P&gt;

&lt;P&gt;[cpp]&lt;/P&gt;

&lt;P&gt;#include &amp;lt;cmath&amp;gt;&lt;/P&gt;

&lt;P&gt;#pragma omp declare target&lt;/P&gt;

&lt;P&gt;class Foo{&lt;/P&gt;

&lt;P&gt;public:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;Foo(){}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;void bar ( float one, float &amp;amp;two ) const&amp;nbsp;{&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;two = std::sqrt(one);&lt;/P&gt;

&lt;P&gt;&amp;nbsp; }&lt;/P&gt;

&lt;P&gt;};&lt;/P&gt;

&lt;P&gt;#pragma omp end declare target&lt;/P&gt;

&lt;P&gt;void main(){&lt;/P&gt;

&lt;P&gt;#pragma omp target&lt;/P&gt;

&lt;P&gt;&amp;nbsp; {&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Foo f;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;float a, b;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;f.bar(a, b);&lt;/P&gt;

&lt;P&gt;&amp;nbsp; }&lt;/P&gt;

&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;[/cpp]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 01:37:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002234#M30614</guid>
      <dc:creator>Alex_K_</dc:creator>
      <dc:date>2014-04-29T01:37:52Z</dc:date>
    </item>
    <item>
      <title>I just realized the posted</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002235#M30615</link>
      <description>&lt;P&gt;I just realized the posted Code works if i put the include in declare target!&lt;/P&gt;

&lt;P&gt;I somehow expected stuff in std:: to be treated differently on the Phi. A warning would have been nice anyway...&lt;/P&gt;

&lt;P&gt;Is this the usual way to do this? I haven't seen this anywhere..&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 01:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002235#M30615</guid>
      <dc:creator>Alex_K_</dc:creator>
      <dc:date>2014-04-29T01:54:00Z</dc:date>
    </item>
    <item>
      <title>Glad to hear you resolved</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002236#M30616</link>
      <description>&lt;P&gt;Glad to hear you resolved this. I need to check w/Developers about this. I do not see any specific exclusions for std:: in the OpenMP 4.0 spec. It appears in the definition of “&lt;STRONG&gt;mappable type&lt;/STRONG&gt;” section 1.2.5, pg. 11, lines 5-21, it is required.&lt;BR /&gt;
	As for a warning, perhaps the compiler is unable to determine its use within the target region and issue something like:&lt;BR /&gt;
	test.cpp(21): error: variable "std::cout" used in "omp target" region must appear in prior "omp declare target" pragma&lt;BR /&gt;
	I will inquire w/Developers about that too.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 09:05:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002236#M30616</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-04-29T09:05:34Z</dc:date>
    </item>
    <item>
      <title>I guess I should have</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002237#M30617</link>
      <description>Edit: Double Post..</description>
      <pubDate>Tue, 29 Apr 2014 15:33:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002237#M30617</guid>
      <dc:creator>Alex_K_</dc:creator>
      <dc:date>2014-04-29T15:33:22Z</dc:date>
    </item>
    <item>
      <title>Thank you for the advice and</title>
      <link>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002238#M30618</link>
      <description>Thank you for the advice and fast responses!
I applied this to my real problem. The Link Error still occurs, but I can run the program now in offload. I guess it crashes now because of SegFault :-), but I don't think this is a Phi Problem.</description>
      <pubDate>Tue, 29 Apr 2014 15:37:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compiling-for-Offload-libirng-so-needed-crash-on-first-Offload/m-p/1002238#M30618</guid>
      <dc:creator>Alex_K_</dc:creator>
      <dc:date>2014-04-29T15:37:44Z</dc:date>
    </item>
  </channel>
</rss>

