<?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 Quote:Anwar Ludin wrote: in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946529#M18426</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Anwar Ludin wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Quote:&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;EM&gt;Bachar Z.&lt;/EM&gt;wrote:
&lt;P&gt;I think you should have MIC_LD_LIBRARY_PATH referes to a place can be accessed on MIC!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi, I don't understand what you mean. I tried to append MIC_LD_LIBRARY_PATH to my LD_LIBRARY_PATH but I get the same error. I also repackaged the function in a standalone app and it works. It's only when I load the function from a shared library that it fails.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I had this problem when I started using MIC. To go arround that I have one folder mounted within the mic system,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lets call this folder "/work", when you ssh to mic you shoud be able to aces this folder, if you put the library you need inside that folder and make MIC_LD_LIBRARY_PATH refer to this folder. This solved my problem.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2013 12:53:41 GMT</pubDate>
    <dc:creator>Bachar_Z_</dc:creator>
    <dc:date>2013-07-11T12:53:41Z</dc:date>
    <item>
      <title>strange error when trying to use explicit memory copy</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946524#M18421</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've written a very simple shared library containing the following function (the library is supposed to be called from a scripting language):&lt;/P&gt;
&lt;P&gt;void sayHelloOpenMPMic(){&lt;BR /&gt;&amp;nbsp; &amp;nbsp;printf("launching threads...\n");&lt;BR /&gt;&amp;nbsp; &amp;nbsp;int i = 0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;#pragma offload target(mic) inout(i)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;i = omp_get_num_threads();&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp;printf("available threads: %i", i);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;The shared library compiles just fine but when I try to execute the function I get the following cryptic message:&lt;/P&gt;
&lt;P&gt;&amp;gt; sayHelloOpenMP()&lt;BR /&gt;launching threads...&lt;BR /&gt;On the sink, dlopen() returned NULL. The result of dlerror() is "/tmp/coi_procs/1/5419/load_lib/icpcoutSFHjM7: undefined symbol: __stack_chk_guard"&lt;BR /&gt;On the remote process, dlopen() failed. The error message sent back from the sink is /tmp/coi_procs/1/5419/load_lib/icpcoutSFHjM7: undefined symbol: __stack_chk_guard&lt;BR /&gt;offload error: cannot load library to the device 0 (error code 20)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 14:35:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946524#M18421</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2013-07-10T14:35:16Z</dc:date>
    </item>
    <item>
      <title>Here is the compile sequence:</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946525#M18422</link>
      <description>&lt;P&gt;Here is the compile sequence:&lt;/P&gt;
&lt;P&gt;icpc -I/usr/include/R -DNDEBUG -openmp -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -openmp -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c RcppExports.cpp -o RcppExports.o&lt;/P&gt;
&lt;P&gt;icpc -I/usr/include/R -DNDEBUG -openmp -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -openmp -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c rcpp_hello_world.cpp -o rcpp_hello_world.o&lt;BR /&gt;icpc -shared -L/usr/local/lib64 -o rfastrandom.so RcppExports.o rcpp_hello_world.o -L/usr/lib64/R/library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/lib64/R/library/Rcpp/lib -openmp -L/usr/lib64/R/lib -lR&lt;BR /&gt;installing to /home/aludin/R/x86_64-redhat-linux-gnu-library/3.0/rfastrandom/libs&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 15:39:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946525#M18422</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2013-07-10T15:39:58Z</dc:date>
    </item>
    <item>
      <title>I think you should have MIC</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946526#M18423</link>
      <description>&lt;P&gt;I think you should have MIC_LD_LIBRARY_PATH referes to a place can be accessed on MIC!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 16:01:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946526#M18423</guid>
      <dc:creator>Bachar_Z_</dc:creator>
      <dc:date>2013-07-10T16:01:38Z</dc:date>
    </item>
    <item>
      <title>Quote:Bachar Z. wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946527#M18424</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Bachar Z. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I think you should have MIC_LD_LIBRARY_PATH referes to a place can be accessed on MIC!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi, I don't understand what you mean. I tried to append MIC_LD_LIBRARY_PATH to my LD_LIBRARY_PATH but I get the same error. I also repackaged the function in a standalone app and it works. It's only when I load the function from a shared library that it fails.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 16:14:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946527#M18424</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2013-07-10T16:14:54Z</dc:date>
    </item>
    <item>
      <title>I don't understand the</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946528#M18425</link>
      <description>&lt;P&gt;I don't understand the reference to&amp;nbsp;undefined symbol: __stack_chk_guard in the error message. Any help would be greatly appreciated in order to solve this issue as I m completely stuck&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 08:35:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946528#M18425</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2013-07-11T08:35:33Z</dc:date>
    </item>
    <item>
      <title>Quote:Anwar Ludin wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946529#M18426</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Anwar Ludin wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Quote:&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;EM&gt;Bachar Z.&lt;/EM&gt;wrote:
&lt;P&gt;I think you should have MIC_LD_LIBRARY_PATH referes to a place can be accessed on MIC!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi, I don't understand what you mean. I tried to append MIC_LD_LIBRARY_PATH to my LD_LIBRARY_PATH but I get the same error. I also repackaged the function in a standalone app and it works. It's only when I load the function from a shared library that it fails.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I had this problem when I started using MIC. To go arround that I have one folder mounted within the mic system,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lets call this folder "/work", when you ssh to mic you shoud be able to aces this folder, if you put the library you need inside that folder and make MIC_LD_LIBRARY_PATH refer to this folder. This solved my problem.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 12:53:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946529#M18426</guid>
      <dc:creator>Bachar_Z_</dc:creator>
      <dc:date>2013-07-11T12:53:41Z</dc:date>
    </item>
    <item>
      <title>@Anwar Ludin, I am sorry I</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946530#M18427</link>
      <description>&lt;P&gt;@&lt;A href="http://software.intel.com/en-us/user/151675"&gt;Anwar Ludin&lt;/A&gt;, I am sorry I have justnotice this!, have you tried to compile without&amp;nbsp;&amp;nbsp;-fstack-protector?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 13:02:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946530#M18427</guid>
      <dc:creator>Bachar_Z_</dc:creator>
      <dc:date>2013-07-11T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Quote:Bachar Z. wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946531#M18428</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Bachar Z. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@&lt;A href="http://software.intel.com/en-us/user/151675"&gt;Anwar Ludin&lt;/A&gt;, I am sorry I have justnotice this!, have you tried to compile without&amp;nbsp;&amp;nbsp;-fstack-protector?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi Bachar! Yeah it worked! Thanks a lot! Actually you were also correct about a missing shared library on the Xeon Phi. I guess -fstack-protector compiler option is implemented by a shared object. Removed it and everything works fine! Once again many thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 13:50:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946531#M18428</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2013-07-11T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Quote:Bachar Z. wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946532#M18429</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Bachar Z. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@&lt;A href="http://software.intel.com/en-us/user/151675"&gt;Anwar Ludin&lt;/A&gt;, I am sorry I have justnotice this!, have you tried to compile without&amp;nbsp;&amp;nbsp;-fstack-protector?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi Bachar! Yes it worked onced I removed the compiler option...thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 14:00:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/strange-error-when-trying-to-use-explicit-memory-copy/m-p/946532#M18429</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2013-07-11T14:00:24Z</dc:date>
    </item>
  </channel>
</rss>

