<?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 parallel features in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749841#M6619</link>
    <description>I can't make out if you are asking a question which hasn't already been covered frequently on these forums. &lt;BR /&gt;-par_threshold0 is unlikely to be useful except as a partial means of pointing out where there is potential parallelism. It will almost certainly generate parallel code and data replication on stack in many cases where that will ruin performance, as well as prevent running in 32-bit mode.</description>
    <pubDate>Wed, 20 Oct 2010 14:42:04 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2010-10-20T14:42:04Z</dc:date>
    <item>
      <title>parallel features</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749840#M6618</link>
      <description>&lt;DIV id="_mcePaste"&gt;Hi all,&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;I'm not very confident the following, but pretty sure the intel Fortran compiler has such feature.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;The problem I am facing on is that I cannot use some of the functions related to array such as&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;sum, maxval, etc.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;and also procedure&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;array = 0d0,&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;which means&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;do i = 1, N&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;array(i) = 0d0&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;enddo&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;in usual case.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;The above expressions seems not be usable with following 2 certain situations (It seems both are necessary):&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;(i) When I have large array such as complex value with number of elements 100 x 100 x 100.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;The total size of array would be 16 MB, where I have to change the limit of stack size usually like&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;$ ulimit -s 16000&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;since the unit is [kB] for above command.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;(ii) When I use option&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;-openmp -parallel&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;I'm actually using option as&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;-O3 -i-dynamic -fast -openmp -parallel -par_threshold0 -par_report2 -framework Accelerate -C&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;But I did not check which option really trigger the error.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;When I run my code in such situation, I get segmentation fault.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Does anybody have had similar experiments?&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;The above error can be avoided if you don't use functions that operate arrays and use usual do-loop for those.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;I hope this information helps.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;If anybody has any suggestions, please let me know.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Also please point out my mistakes.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Sincerely,&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;masa&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Intel Fortran Compiler for Mac OS X&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;version 10.1&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Oct 2010 06:41:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749840#M6618</guid>
      <dc:creator>masayan24</dc:creator>
      <dc:date>2010-10-20T06:41:44Z</dc:date>
    </item>
    <item>
      <title>parallel features</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749841#M6619</link>
      <description>I can't make out if you are asking a question which hasn't already been covered frequently on these forums. &lt;BR /&gt;-par_threshold0 is unlikely to be useful except as a partial means of pointing out where there is potential parallelism. It will almost certainly generate parallel code and data replication on stack in many cases where that will ruin performance, as well as prevent running in 32-bit mode.</description>
      <pubDate>Wed, 20 Oct 2010 14:42:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749841#M6619</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-10-20T14:42:04Z</dc:date>
    </item>
    <item>
      <title>parallel features</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749842#M6620</link>
      <description>Hi&lt;SPAN style="font-family: verdana, sans-serif;"&gt;tim18,&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your reply.&lt;DIV&gt;I just checked -par_threshold0 option.&lt;/DIV&gt;&lt;DIV&gt;And I understand what you told me, andrecognizeyour suggestion is correct.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;However, the problem is not that.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I still 'get segmentation fault' with/without the option even I use, for example, -par_threshold50.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I believe we cannot use simplifiedexpressionswhen you are in the situation (i) and (ii).&lt;/DIV&gt;&lt;DIV&gt;I hope I can find any official documents about this issue, but so far I don't see it.&lt;/DIV&gt;&lt;DIV&gt;If there is no such documents, then this is unknown issue (bug), which will not be in such a famous compiler.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Here I clarify my question.&lt;/DIV&gt;&lt;DIV&gt;I explained the situation.&lt;/DIV&gt;&lt;DIV&gt;I want to know if anyone has the same experience.&lt;/DIV&gt;&lt;DIV&gt;I want to know if this is a bug or just a spec.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Sincerely,&lt;/DIV&gt;&lt;DIV&gt;masa&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Oct 2010 05:13:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749842#M6620</guid>
      <dc:creator>masayan24</dc:creator>
      <dc:date>2010-10-21T05:13:08Z</dc:date>
    </item>
    <item>
      <title>parallel features</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749843#M6621</link>
      <description>-par-threshold is intended to be used at your own risk. If you got a wrong result when you didn't use par-threshold, or the compiler crashed, that would be a bug. Excessive stack usage isn't necessarily a bug, even though it gives you a failure.&lt;BR /&gt;Unfortunately, auto-parallelization still is useful only in limited situations, even though it's mandatory for good spec benchmark results. Most cases where it works well, and many where it doesn't, are easy to program with OpenMP.</description>
      <pubDate>Thu, 21 Oct 2010 13:36:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749843#M6621</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-10-21T13:36:31Z</dc:date>
    </item>
    <item>
      <title>parallel features</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749844#M6622</link>
      <description>Thanks tim18,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Yes, I understand it is still ongoing project.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;On the other hand, if I explicitly write do-loop code, it works. So still this (-par-threshold*) is very useful option.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Finally, as a result, I leave following remark (memo) for me and other users for the future related problems.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;I&gt;With auto-parallelization (with -par-threshold* and possibly other related options), one will get "segmentation fault" if one uses large array with direct operations such as substitution (Array = 0d0), sum function (a = sum(Array)), etc.&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I leave this thread for a little while for additional information (if any), and close as solved later.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your help, again.&lt;/DIV&gt;&lt;DIV&gt;masa&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Oct 2010 07:39:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/parallel-features/m-p/749844#M6622</guid>
      <dc:creator>masayan24</dc:creator>
      <dc:date>2010-10-25T07:39:19Z</dc:date>
    </item>
  </channel>
</rss>

