<?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 Yes, you are correct about in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021342#M38347</link>
    <description>&lt;P&gt;Yes, you are correct about the behavior of the &lt;STRONG&gt;alloc_if/free_if&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2014 14:30:58 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2014-10-10T14:30:58Z</dc:date>
    <item>
      <title>inout</title>
      <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021338#M38343</link>
      <description>&lt;P&gt;if i do as follows in fortran&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;integer,allocatable::a(:)&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;allocate(a(n))&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;!dir$ offload target(mic) inout(a)&lt;/P&gt;

&lt;P&gt;!$omp parallel do...&lt;/P&gt;

&lt;P&gt;inside the do loop a is being passed to subroutines and assigned values. is it ok to put a inside inout as above? or is there anything still needed? Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:10:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/inout/m-p/1021338#M38343</guid>
      <dc:creator>Jen_B_</dc:creator>
      <dc:date>2014-10-10T12:10:56Z</dc:date>
    </item>
    <item>
      <title>Looks like that should work.</title>
      <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021339#M38344</link>
      <description>&lt;P&gt;Looks like that should work. I believe the array size is known at run-time and included in the array descriptor passed with the offload so &lt;STRONG&gt;length(n)&lt;/STRONG&gt; modifier is not needed for the code you outlined. If you do not need the initial values of A from the host then you could avoid the data transfer of those initial values using &lt;STRONG&gt;OUT &lt;/STRONG&gt;vs. &lt;STRONG&gt;INOUT&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 12:59:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/inout/m-p/1021339#M38344</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-10T12:59:00Z</dc:date>
    </item>
    <item>
      <title>Thanks! Also, what happens</title>
      <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021340#M38345</link>
      <description>&lt;P&gt;Thanks! Also, what happens internally regarding the alloc_if/free_if. As far as I understand default for those is true, so in my case space for "a" allocated on coprocessor before copying the data from host to coprocessor, then the data copied into data space, then the final results of "a" are copied from coprocessor to host space of "a", and at the end coprocessor deallocates space allocated for "a" on coprocessor. Am I right?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:18:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/inout/m-p/1021340#M38345</guid>
      <dc:creator>Jen_B_</dc:creator>
      <dc:date>2014-10-10T14:18:57Z</dc:date>
    </item>
    <item>
      <title>Here's the detail I could not</title>
      <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021341#M38346</link>
      <description>&lt;P&gt;Here's the detail I could not recall earlier and just found in the Fortran UG under the &lt;STRONG&gt;LENGTH ( &lt;/STRONG&gt;&lt;EM&gt;element-count-expr&lt;/EM&gt;&lt;STRONG&gt; )&lt;/STRONG&gt; on the &lt;A href="https://software.intel.com/en-us/node/512000" target="_blank"&gt;&lt;STRONG&gt;OFFLOAD &lt;/STRONG&gt;&lt;/A&gt;topic.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;A Fortran array variable can be one of four major types: explicit-shape, assumed-shape, deferred-shape and assumed-size. The runtime descriptor for the first three types makes that array variable's size known at compile time or at runtime.&lt;BR /&gt;
		...&lt;BR /&gt;
		By default, the compiler copies explicit-shape, assumed-shape and deferred-shape arrays in their entirety. They do not need an &lt;EM&gt;element-count-expr&lt;/EM&gt;. However, you can use an optional &lt;EM&gt;element-count-expr&lt;/EM&gt; to specify the total number of elements to copy, which limits the number of elements copied back and forth in the last dimension of the array.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:29:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/inout/m-p/1021341#M38346</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-10T14:29:19Z</dc:date>
    </item>
    <item>
      <title>Yes, you are correct about</title>
      <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021342#M38347</link>
      <description>&lt;P&gt;Yes, you are correct about the behavior of the &lt;STRONG&gt;alloc_if/free_if&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:30:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/inout/m-p/1021342#M38347</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-10T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Thanks a lot!</title>
      <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021343#M38348</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 14:50:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/inout/m-p/1021343#M38348</guid>
      <dc:creator>Jen_B_</dc:creator>
      <dc:date>2014-10-10T14:50:13Z</dc:date>
    </item>
    <item>
      <title>You're welcome.</title>
      <link>https://community.intel.com/t5/Software-Archive/inout/m-p/1021344#M38349</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 17:00:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/inout/m-p/1021344#M38349</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-10-10T17:00:55Z</dc:date>
    </item>
  </channel>
</rss>

