<?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 Problem attempting I/O in offloaded code in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Problem-attempting-I-O-in-offloaded-code/m-p/956971#M21056</link>
    <description>&lt;P&gt;&lt;STRONG&gt;I get the error&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;On the remote process, dlopen() failed. The error message sent back from the sin&lt;BR /&gt;k is /tmp/coi_procs/1/3686/load_lib/testprintMIC.out: undefined symbol: myprint_&lt;BR /&gt;&lt;BR /&gt;On the sink, dlopen() returned NULL. The result of dlerror() is "/tmp/coi_procs/&lt;BR /&gt;1/3686/load_lib/testprintMIC.out: undefined symbol: myprint_"&lt;BR /&gt;offload error: cannot load library to the device 0 (error code 20)&lt;BR /&gt;Press any key to continue . . .&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;When running this program:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subroutine myprint()&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print *, "hello from mic"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end subroutine myprint&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; program main&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !DIR$ ATTRIBUTES OFFLOAD:mic :: myprint&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !DIR$ OFFLOAD target(mic)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call myprint()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end program main&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks in advance for any help,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Dean&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2013 20:51:34 GMT</pubDate>
    <dc:creator>Dean_B_</dc:creator>
    <dc:date>2013-10-15T20:51:34Z</dc:date>
    <item>
      <title>Problem attempting I/O in offloaded code</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-attempting-I-O-in-offloaded-code/m-p/956971#M21056</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I get the error&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;On the remote process, dlopen() failed. The error message sent back from the sin&lt;BR /&gt;k is /tmp/coi_procs/1/3686/load_lib/testprintMIC.out: undefined symbol: myprint_&lt;BR /&gt;&lt;BR /&gt;On the sink, dlopen() returned NULL. The result of dlerror() is "/tmp/coi_procs/&lt;BR /&gt;1/3686/load_lib/testprintMIC.out: undefined symbol: myprint_"&lt;BR /&gt;offload error: cannot load library to the device 0 (error code 20)&lt;BR /&gt;Press any key to continue . . .&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;When running this program:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; subroutine myprint()&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print *, "hello from mic"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end subroutine myprint&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; program main&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !DIR$ ATTRIBUTES OFFLOAD:mic :: myprint&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; !DIR$ OFFLOAD target(mic)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call myprint()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end program main&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks in advance for any help,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Dean&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 20:51:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-attempting-I-O-in-offloaded-code/m-p/956971#M21056</guid>
      <dc:creator>Dean_B_</dc:creator>
      <dc:date>2013-10-15T20:51:34Z</dc:date>
    </item>
    <item>
      <title>In addition to the attribute</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-attempting-I-O-in-offloaded-code/m-p/956972#M21057</link>
      <description>&lt;P&gt;In addition to the attribute statement inside main, put one in front of the subroutine myprint. You must tell the compiler both that main is going to call the subroutine myprint on the coprocessor and &amp;nbsp;that it needs to make a version of the subroutine myprint to run on the coprocessor.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 22:43:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-attempting-I-O-in-offloaded-code/m-p/956972#M21057</guid>
      <dc:creator>Frances_R_Intel</dc:creator>
      <dc:date>2013-10-15T22:43:21Z</dc:date>
    </item>
  </channel>
</rss>

