<?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 Hi, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064487#M118172</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried to reproduce this, but the program ran successfully. I was using the Intel Compiler version 17.0.1 and Intel MPI 5.1.3. Please could you provide all&amp;nbsp;your environment details: Compiler version; Intel MPI version; OS version; processor type?&amp;nbsp; If you are not using Intel MPI, which MPI do you use and how was it built?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2017 18:36:52 GMT</pubDate>
    <dc:creator>Martyn_C_Intel</dc:creator>
    <dc:date>2017-01-09T18:36:52Z</dc:date>
    <item>
      <title>Problem in RANDOM_NUMBER() with openmp flag in MPI programs</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064486#M118171</link>
      <description>&lt;P&gt;I noticed that using the qopenmp or fopenmp flag causes segmentation errors when the MPI program contains calls to random_number function. This only happens with Intel compiler. Here is a simple example&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program hello_world
  use mpi_f08
  implicit none
  integer :: ierr, num_procs, my_id
  real(8):: rn
  call MPI_INIT ( ierr )
  call MPI_COMM_RANK (MPI_COMM_WORLD, my_id, ierr)
  call MPI_COMM_SIZE (MPI_COMM_WORLD, num_procs, ierr)

  call random_number(rn)
  print *, rn

  call MPI_FINALIZE ( ierr )

end
&lt;/PRE&gt;

&lt;P&gt;When I compile the program, with&amp;nbsp;mpif90 hello.f90 -qopenmp and then run with&amp;nbsp;mpirun -np 1 a.out I get:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;mpirun noticed that process rank 0 with PID XXX on node XXX exited on signal 11 (Segmentation fault).&lt;/P&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In other programs the problem appears even in the compile/link time!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 13:21:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064486#M118171</guid>
      <dc:creator>Customer__Intel4</dc:creator>
      <dc:date>2017-01-09T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064487#M118172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried to reproduce this, but the program ran successfully. I was using the Intel Compiler version 17.0.1 and Intel MPI 5.1.3. Please could you provide all&amp;nbsp;your environment details: Compiler version; Intel MPI version; OS version; processor type?&amp;nbsp; If you are not using Intel MPI, which MPI do you use and how was it built?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 18:36:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064487#M118172</guid>
      <dc:creator>Martyn_C_Intel</dc:creator>
      <dc:date>2017-01-09T18:36:52Z</dc:date>
    </item>
    <item>
      <title>I looked up the loaded Intel</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064488#M118173</link>
      <description>&lt;P&gt;I looked up the loaded Intel &amp;nbsp;modules and they are&amp;nbsp;&lt;/P&gt;

&lt;P&gt;intel/16.0.2.181 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;intel/15.0.2.164&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;openmpi/intel/1.8.5&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;after I loaded&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;openmpi/intel17/2.0.1 &amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;intel/17.0.1.132 the problem was solved. The system is Linux&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;2.6.32.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 13:53:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064488#M118173</guid>
      <dc:creator>Customer__Intel4</dc:creator>
      <dc:date>2017-01-10T13:53:23Z</dc:date>
    </item>
    <item>
      <title>Glad that worked. </title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064489#M118174</link>
      <description>&lt;P&gt;Glad that worked.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm aware of an issue that has shown up before, both with OpenMPI and elsewhere, that might be behind this. There is a symbol conflict between libintlc.so in the Intel 16.0 compiler&amp;nbsp;and libc.so.6 in new GCC/glib versions that have become default in recent OS versions, due to changes in the libc.&amp;nbsp;That could not be foreseen when the 16.0 compiler was released. It is resolved in version 17 of the Intel compiler. If you were doing dynamic linking, you could try going back to the version built with the older ifort and OpenMPI, and putting libintlc.so from Intel 17.0 &amp;nbsp;into the path instead of the one from 16.0, (or preload it), and see if that worked around the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 20:34:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-in-RANDOM-NUMBER-with-openmp-flag-in-MPI-programs/m-p/1064489#M118174</guid>
      <dc:creator>Martyn_C_Intel</dc:creator>
      <dc:date>2017-01-10T20:34:45Z</dc:date>
    </item>
  </channel>
</rss>

