<?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 What happens when you point in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038151#M112347</link>
    <description>&lt;P&gt;What happens when you point classpointer at something prior to entering the parallel region?&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2015 21:42:54 GMT</pubDate>
    <dc:creator>jimdempseyatthecove</dc:creator>
    <dc:date>2015-10-28T21:42:54Z</dc:date>
    <item>
      <title>OpenMP crash when using CLASS(*)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038148#M112344</link>
      <description>&lt;DIV class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;
	&lt;DIV class="field-items"&gt;
		&lt;DIV class="field-item even"&gt;
			&lt;P&gt;Hi,&lt;/P&gt;

			&lt;P&gt;I'm seeing a weird crash when using an openmp do loop with a class(*) pointer.&amp;nbsp; A short test case is attached.&amp;nbsp; In the test case, if the three lines of the 'select type' statement are included, the code crashes.&amp;nbsp; If the select type is commented, the code runs.&amp;nbsp; Interestingly, the code does not even need to execute the select type statement for the crash to happen as I have a 'cycle' statement at the start of the loop.&amp;nbsp;&lt;/P&gt;

			&lt;P&gt;I can't see anything apparently wrong with the code.&amp;nbsp; Is this a possible openmp and/or fortran bug or am I violating something in the openmp standard?&lt;/P&gt;

			&lt;P&gt;I'm using intel fortran 14.0.3 on a linux machine. My compile line is 'ifort -openmp test.f90'&lt;/P&gt;

			&lt;P&gt;Thanks,&lt;/P&gt;

			&lt;P&gt;John&lt;/P&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:04:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038148#M112344</guid>
      <dc:creator>John_Young</dc:creator>
      <dc:date>2015-10-28T17:04:39Z</dc:date>
    </item>
    <item>
      <title>Note that the current OpenMP</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038149#M112345</link>
      <description>&lt;P&gt;Note that the current OpenMP standard (and the draft next standard) explicitly states that polymorphic entities are not supported.&amp;nbsp; I don't know what the compiler itself supports in this regard.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:31:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038149#M112345</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2015-10-28T19:31:57Z</dc:date>
    </item>
    <item>
      <title>Thanks.  That's good to know</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038150#M112346</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; That's good to know that this is non-standard. We were wondering why it was not working.&lt;/P&gt;

&lt;P&gt;Interestingly, if we give classpointer the 'save' attribute and make it THREADPRIVATE, then the code works fine.&amp;nbsp; Do you know if THREADPRIVATE polymorphic entities are allowable by the standard or is this just luck that it is working.&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;/P&gt;

&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:47:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038150#M112346</guid>
      <dc:creator>John_Young</dc:creator>
      <dc:date>2015-10-28T19:47:04Z</dc:date>
    </item>
    <item>
      <title>What happens when you point</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038151#M112347</link>
      <description>&lt;P&gt;What happens when you point classpointer at something prior to entering the parallel region?&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 21:42:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038151#M112347</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2015-10-28T21:42:54Z</dc:date>
    </item>
    <item>
      <title>In our full code (which this</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038152#M112348</link>
      <description>&lt;P&gt;In our full code (which this test case was boiled down from), use of classpointer before the parallel region works fine.&amp;nbsp; The crash only happens after entering the parallel region, and, in this case, is produced when the select case statement is added (whether the select case code is executed or not).&lt;/P&gt;

&lt;P&gt;I could modify the test case to show this if that would help.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 22:03:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038152#M112348</guid>
      <dc:creator>John_Young</dc:creator>
      <dc:date>2015-10-28T22:03:27Z</dc:date>
    </item>
    <item>
      <title>I do not have an older</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038153#M112349</link>
      <description>&lt;P&gt;I do not have an older version here for testing. I&amp;nbsp;seem to recall issues with CLASS(*) on some of the earlier version of IVF. Try the following:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;&amp;nbsp;&amp;nbsp; !$omp parallel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;
&amp;nbsp;&amp;nbsp; !$omp private(i_t,classpointer), COPYIN(CLASSPOINTER)
&lt;/PRE&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:32:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038153#M112349</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2015-10-29T15:32:00Z</dc:date>
    </item>
    <item>
      <title>Adding the copyin clause does</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038154#M112350</link>
      <description>Adding the copyin clause does not prevent the crash.

John</description>
      <pubDate>Thu, 29 Oct 2015 18:54:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038154#M112350</guid>
      <dc:creator>John_Young</dc:creator>
      <dc:date>2015-10-29T18:54:23Z</dc:date>
    </item>
    <item>
      <title>Thanks for the report John. I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038155#M112351</link>
      <description>&lt;P&gt;Thanks for the report John. I can reproduce this also with the current release.&amp;nbsp;I will pass&amp;nbsp;along all the findings the Developers to get their feedback.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 09:44:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/OpenMP-crash-when-using-CLASS/m-p/1038155#M112351</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-11-02T09:44:14Z</dc:date>
    </item>
  </channel>
</rss>

