<?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 MPI_ISend bug on Fortran allocatable character in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-ISend-bug-on-Fortran-allocatable-character/m-p/1073614#M4738</link>
    <description>&lt;P&gt;I am encountering what I believe to be a bug associated with allocatable character arrays and MPI_ISend. Sending allocatable character array with MPI_ISend and receiving with MPI_Recv returns junk. See test program below, compiled with -assume realloc_lhs. Same code with GNU compiler and OpenMPI receives and prints the expected result. Are there any other compiler flags that I should be working with that would influence compiler behavior here? Statically declaring the send string produces the expected result. This is commented out in the example below.&lt;/P&gt;

&lt;P&gt;Intel Fortran Linux 17.0.1 20161005&lt;BR /&gt;
	Intel MPI Linux 5.1.3&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program main
    use mpi_f08
    implicit none

    integer                      :: ierr
    !character(11)               :: send_char
    character(:),   allocatable  :: send_char
    character(11)                :: recv_char
    type(mpi_request)            :: handle

    call MPI_Init(ierr)

    send_char = 'test string'

    call MPI_ISend(send_char,11,MPI_CHARACTER,0,0,MPI_COMM_WORLD,handle,ierr)
    call MPI_Recv(recv_char, 11,MPI_CHARACTER,0,0,MPI_COMM_WORLD,MPI_STATUS_IGNORE,ierr)
    call MPI_Wait(handle,MPI_STATUS_IGNORE,ierr)

    print*, recv_char

end program main&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Jan 2017 17:11:27 GMT</pubDate>
    <dc:creator>Wukie__Nathan</dc:creator>
    <dc:date>2017-01-18T17:11:27Z</dc:date>
    <item>
      <title>MPI_ISend bug on Fortran allocatable character</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-ISend-bug-on-Fortran-allocatable-character/m-p/1073614#M4738</link>
      <description>&lt;P&gt;I am encountering what I believe to be a bug associated with allocatable character arrays and MPI_ISend. Sending allocatable character array with MPI_ISend and receiving with MPI_Recv returns junk. See test program below, compiled with -assume realloc_lhs. Same code with GNU compiler and OpenMPI receives and prints the expected result. Are there any other compiler flags that I should be working with that would influence compiler behavior here? Statically declaring the send string produces the expected result. This is commented out in the example below.&lt;/P&gt;

&lt;P&gt;Intel Fortran Linux 17.0.1 20161005&lt;BR /&gt;
	Intel MPI Linux 5.1.3&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program main
    use mpi_f08
    implicit none

    integer                      :: ierr
    !character(11)               :: send_char
    character(:),   allocatable  :: send_char
    character(11)                :: recv_char
    type(mpi_request)            :: handle

    call MPI_Init(ierr)

    send_char = 'test string'

    call MPI_ISend(send_char,11,MPI_CHARACTER,0,0,MPI_COMM_WORLD,handle,ierr)
    call MPI_Recv(recv_char, 11,MPI_CHARACTER,0,0,MPI_COMM_WORLD,MPI_STATUS_IGNORE,ierr)
    call MPI_Wait(handle,MPI_STATUS_IGNORE,ierr)

    print*, recv_char

end program main&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2017 17:11:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-ISend-bug-on-Fortran-allocatable-character/m-p/1073614#M4738</guid>
      <dc:creator>Wukie__Nathan</dc:creator>
      <dc:date>2017-01-18T17:11:27Z</dc:date>
    </item>
    <item>
      <title>Thank you for this</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-ISend-bug-on-Fortran-allocatable-character/m-p/1073615#M4739</link>
      <description>&lt;P&gt;Thank you for this information.&amp;nbsp; I've escalated it to our engineering team.&amp;nbsp; As a workaround, you can make the following changes:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;!use mpi_f08
use mpi&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;!type(mpi_request) :: handle
integer :: handle&lt;/PRE&gt;

&lt;P&gt;These changes will allow the program to run as expected.&lt;/P&gt;

&lt;P&gt;James.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 20:48:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-ISend-bug-on-Fortran-allocatable-character/m-p/1073615#M4739</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2017-01-31T20:48:00Z</dc:date>
    </item>
  </channel>
</rss>

