<?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 Fortran vs. C offload directives: push/pop in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Fortran-vs-C-offload-directives-push-pop/m-p/972719#M24345</link>
    <description>&lt;P&gt;I've noticed in the article:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/fortran-vs-c-offload-directives-and-functions" target="_blank"&gt;http://software.intel.com/en-us/articles/fortran-vs-c-offload-directives-and-functions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That there is a convenient way to mark entire files for offload using the 'offload_attribute push/pop' pragma in c and c++. However there apparently doesn't appear to be an equivalent for fortran. This seems like an very useful feature...&lt;/P&gt;
&lt;P&gt;Is there an equivalent way of doing this with the Fortran directives that I'm missing? If not, why is this functionality not available?&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2013 18:48:05 GMT</pubDate>
    <dc:creator>james_B_8</dc:creator>
    <dc:date>2013-05-27T18:48:05Z</dc:date>
    <item>
      <title>Fortran vs. C offload directives: push/pop</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-vs-C-offload-directives-push-pop/m-p/972719#M24345</link>
      <description>&lt;P&gt;I've noticed in the article:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/fortran-vs-c-offload-directives-and-functions" target="_blank"&gt;http://software.intel.com/en-us/articles/fortran-vs-c-offload-directives-and-functions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That there is a convenient way to mark entire files for offload using the 'offload_attribute push/pop' pragma in c and c++. However there apparently doesn't appear to be an equivalent for fortran. This seems like an very useful feature...&lt;/P&gt;
&lt;P&gt;Is there an equivalent way of doing this with the Fortran directives that I'm missing? If not, why is this functionality not available?&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2013 18:48:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-vs-C-offload-directives-push-pop/m-p/972719#M24345</guid>
      <dc:creator>james_B_8</dc:creator>
      <dc:date>2013-05-27T18:48:05Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-vs-C-offload-directives-push-pop/m-p/972720#M24346</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Have you looked at the OPTIONS directive?&lt;BR /&gt;The Fortran !dir$ options directive accepts the command-line option "/offload-attribute-target=&amp;lt;target&amp;gt; ".&lt;BR /&gt;This option enables assigning a &amp;lt;target&amp;gt; attribute to a section of a program declarations appearing between a !dir$ options /offload-attribute-target=&amp;lt;target&amp;gt; and !dir$ end options directive. The declarations can contain interface definitions and variable declarations. &lt;BR /&gt;The syntax is:&lt;/P&gt;
&lt;P&gt;!dir$ options /offload-attribute-target=mic &lt;BR /&gt;&amp;lt;declarations...&amp;gt; &lt;BR /&gt;!dir$ end options&lt;/P&gt;
&lt;P&gt;A couple of examples can be found within /opt/intel/composerxe/Samples/en_US/Fortran/mic_samples/LEO_Fortran_intro/leoF09_subprograms.F90&lt;/P&gt;
&lt;P&gt;Best,&lt;BR /&gt;Leo.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2013 19:16:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-vs-C-offload-directives-push-pop/m-p/972720#M24346</guid>
      <dc:creator>Leonardo_B_Intel</dc:creator>
      <dc:date>2013-05-27T19:16:22Z</dc:date>
    </item>
    <item>
      <title>Unlike C/C++, the !dir$</title>
      <link>https://community.intel.com/t5/Software-Archive/Fortran-vs-C-offload-directives-push-pop/m-p/972721#M24347</link>
      <description>&lt;P&gt;Unlike C/C++, the !dir$ directives cannot be used independently of individual program units. Or at least, as far as I know, there are no directives that can be used like that. So, you cannot bracket a group of functions, subroutines, modules, etc. with a !dir$ / !dir$ end pair. This kind of mirrors one of the underlying differences between C and Fortran. C has a file scope; in Fortran there really isn't a file scope.&lt;/P&gt;
&lt;P&gt;There is also the compiler directive -offload-attribute-target=mic, but that doesn't give you the level of control you were asking for. I'll see that the !dir$ options /offload-attribute-target=mic gets added to the that web page.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2013 21:15:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Fortran-vs-C-offload-directives-push-pop/m-p/972721#M24347</guid>
      <dc:creator>Frances_R_Intel</dc:creator>
      <dc:date>2013-05-28T21:15:01Z</dc:date>
    </item>
  </channel>
</rss>

