<?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 Re: OpenMP in pure procedures in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OpenMP-in-pure-procedures/m-p/898929#M4130</link>
    <description>&lt;P&gt;Have you considered using conditional compilation?&lt;/P&gt;
&lt;P&gt;When _OPENMP not defined compile the affected routines with PURE&lt;/P&gt;
&lt;P&gt;When _OPENMP defined compile the affected routines without PURE&lt;/P&gt;
&lt;P&gt;If you use the Fortran PreProcessor you could define a macro as follows&lt;/P&gt;
&lt;P&gt;#ifdef _OPENMP&lt;BR /&gt;#define TEST_PURE&lt;BR /&gt;#else&lt;BR /&gt;#define TEST_PURE pure&lt;BR /&gt;#endif&lt;/P&gt;
&lt;P&gt;Then use as&lt;/P&gt;
&lt;P&gt;TEST_PURE function foo(a,b,c)&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2006 23:09:04 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2006-11-20T23:09:04Z</dc:date>
    <item>
      <title>OpenMP in pure procedures</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OpenMP-in-pure-procedures/m-p/898928#M4129</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;According OpenMP 2.5 specification we can't use OpenMP in pure procedures. Why so? I mean, what if I what use PURE procedures also for compiler-checking of purity of my code (not only for parallelization)?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2006 02:06:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OpenMP-in-pure-procedures/m-p/898928#M4129</guid>
      <dc:creator>Stanislav_Fyodorov</dc:creator>
      <dc:date>2006-11-16T02:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: OpenMP in pure procedures</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OpenMP-in-pure-procedures/m-p/898929#M4130</link>
      <description>&lt;P&gt;Have you considered using conditional compilation?&lt;/P&gt;
&lt;P&gt;When _OPENMP not defined compile the affected routines with PURE&lt;/P&gt;
&lt;P&gt;When _OPENMP defined compile the affected routines without PURE&lt;/P&gt;
&lt;P&gt;If you use the Fortran PreProcessor you could define a macro as follows&lt;/P&gt;
&lt;P&gt;#ifdef _OPENMP&lt;BR /&gt;#define TEST_PURE&lt;BR /&gt;#else&lt;BR /&gt;#define TEST_PURE pure&lt;BR /&gt;#endif&lt;/P&gt;
&lt;P&gt;Then use as&lt;/P&gt;
&lt;P&gt;TEST_PURE function foo(a,b,c)&lt;BR /&gt;...&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2006 23:09:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OpenMP-in-pure-procedures/m-p/898929#M4130</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2006-11-20T23:09:04Z</dc:date>
    </item>
  </channel>
</rss>

