<?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: low upper bound for tag in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-low-upper-bound-for-tag/m-p/1237092#M7440</link>
    <description>&lt;P&gt;Hello&amp;nbsp; community members,&lt;/P&gt;
&lt;P&gt;Using OneAPI HPC toolkit with MPI 2021.1.1, I have compiled on my workstation a large code running nicely on supercomputers with Intel compiler/MPI 2017 environment.&lt;/P&gt;
&lt;P&gt;When I run it on my workstation, there is a message telling me that the tag for MPI SEND (or RECV) is invalid. It appears that internally the upper bound for the tag is very low, being equal to 2**19-1, whereas the one advertised by MPI_TAG_UB is much higher (1681915906)&lt;/P&gt;
&lt;P&gt;The problem can be reproduced by running the test program listed hereafter, whose output reads:&lt;/P&gt;
&lt;P&gt;&amp;gt; 1234 sent from 0 with tag 524286 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; 1234 received by 1 with tag 524286 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; 1234 sent from 0 with tag 524287 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; 1234 received by 1 with tag 524287 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; Abort(738838276) on node 1 (rank 1 in comm 0): Fatal error in PMPI_Recv: Invalid tag, error stack:&lt;BR /&gt;&amp;gt; PMPI_Recv(173): MPI_Recv(buf=0x4b7408, count=1, dtype=0x4c000430, src=0, tag=524288, MPI_COMM_WORLD, status=0x4ba280) failed&lt;BR /&gt;&amp;gt; PMPI_Recv(105): Invalid tag, value is 524288&lt;BR /&gt;&amp;gt; Abort(537516036) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Send: Invalid tag, error stack:&lt;BR /&gt;&amp;gt; PMPI_Send(159): MPI_Send(buf=0x4b7408, count=1, dtype=0x4c000430, dest=1, tag=524288, MPI_COMM_WORLD) failed&lt;BR /&gt;&amp;gt; PMPI_Send(97).: Invalid tag, value is 524288&lt;/P&gt;
&lt;P&gt;Any suggestion to overcome this difficulty is welcome since changing all the tags throughout the code would be cumbersome.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Lionel&lt;/P&gt;
&lt;P&gt;program test_MPI&lt;BR /&gt;implicit none&lt;BR /&gt;include 'mpif.h'&lt;BR /&gt;integer*4 void&lt;BR /&gt;integer*4 sizempi,rankmpi,tagmpi,ierrmpi&lt;BR /&gt;integer*4 statusmpi(MPI_STATUS_SIZE)&lt;BR /&gt;call MPI_INIT(ierrmpi)&lt;BR /&gt;call MPI_COMM_SIZE(MPI_COMM_WORLD,sizempi,ierrmpi)&lt;BR /&gt;call MPI_COMM_RANK(MPI_COMM_WORLD,rankmpi,ierrmpi)&lt;BR /&gt;void=1234&lt;BR /&gt;if(sizempi.eq.2) then&lt;BR /&gt;do tagmpi=2**19-2,2**19&lt;BR /&gt;if(rankmpi.eq.0) then&lt;BR /&gt;call MPI_SEND(void,1_4,MPI_INTEGER4,1_4,tagmpi,MPI_COMM_WORLD,ierrmpi)&lt;BR /&gt;write(*,'(i0,a,i0,a,i0)') void, ' sent from 0 with tag ',tagmpi,' &amp;lt; ',MPI_TAG_UB&lt;BR /&gt;else&lt;BR /&gt;call MPI_RECV(void,1_4,MPI_INTEGER4,0_4,tagmpi,MPI_COMM_WORLD,statusmpi,ierrmpi)&lt;BR /&gt;write(*,'(i0,a,i0,a,i0)') void,' received by 1 with tag ',tagmpi,' &amp;lt; ',MPI_TAG_UB&lt;BR /&gt;endif&lt;BR /&gt;call MPI_BARRIER(MPI_COMM_WORLD,ierrmpi)&lt;BR /&gt;enddo&lt;BR /&gt;endif&lt;BR /&gt;end program&lt;/P&gt;</description>
    <pubDate>Mon, 14 Dec 2020 15:18:03 GMT</pubDate>
    <dc:creator>LionelL</dc:creator>
    <dc:date>2020-12-14T15:18:03Z</dc:date>
    <item>
      <title>MPI: low upper bound for tag</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-low-upper-bound-for-tag/m-p/1237092#M7440</link>
      <description>&lt;P&gt;Hello&amp;nbsp; community members,&lt;/P&gt;
&lt;P&gt;Using OneAPI HPC toolkit with MPI 2021.1.1, I have compiled on my workstation a large code running nicely on supercomputers with Intel compiler/MPI 2017 environment.&lt;/P&gt;
&lt;P&gt;When I run it on my workstation, there is a message telling me that the tag for MPI SEND (or RECV) is invalid. It appears that internally the upper bound for the tag is very low, being equal to 2**19-1, whereas the one advertised by MPI_TAG_UB is much higher (1681915906)&lt;/P&gt;
&lt;P&gt;The problem can be reproduced by running the test program listed hereafter, whose output reads:&lt;/P&gt;
&lt;P&gt;&amp;gt; 1234 sent from 0 with tag 524286 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; 1234 received by 1 with tag 524286 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; 1234 sent from 0 with tag 524287 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; 1234 received by 1 with tag 524287 &amp;lt; 1681915906&lt;BR /&gt;&amp;gt; Abort(738838276) on node 1 (rank 1 in comm 0): Fatal error in PMPI_Recv: Invalid tag, error stack:&lt;BR /&gt;&amp;gt; PMPI_Recv(173): MPI_Recv(buf=0x4b7408, count=1, dtype=0x4c000430, src=0, tag=524288, MPI_COMM_WORLD, status=0x4ba280) failed&lt;BR /&gt;&amp;gt; PMPI_Recv(105): Invalid tag, value is 524288&lt;BR /&gt;&amp;gt; Abort(537516036) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Send: Invalid tag, error stack:&lt;BR /&gt;&amp;gt; PMPI_Send(159): MPI_Send(buf=0x4b7408, count=1, dtype=0x4c000430, dest=1, tag=524288, MPI_COMM_WORLD) failed&lt;BR /&gt;&amp;gt; PMPI_Send(97).: Invalid tag, value is 524288&lt;/P&gt;
&lt;P&gt;Any suggestion to overcome this difficulty is welcome since changing all the tags throughout the code would be cumbersome.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Lionel&lt;/P&gt;
&lt;P&gt;program test_MPI&lt;BR /&gt;implicit none&lt;BR /&gt;include 'mpif.h'&lt;BR /&gt;integer*4 void&lt;BR /&gt;integer*4 sizempi,rankmpi,tagmpi,ierrmpi&lt;BR /&gt;integer*4 statusmpi(MPI_STATUS_SIZE)&lt;BR /&gt;call MPI_INIT(ierrmpi)&lt;BR /&gt;call MPI_COMM_SIZE(MPI_COMM_WORLD,sizempi,ierrmpi)&lt;BR /&gt;call MPI_COMM_RANK(MPI_COMM_WORLD,rankmpi,ierrmpi)&lt;BR /&gt;void=1234&lt;BR /&gt;if(sizempi.eq.2) then&lt;BR /&gt;do tagmpi=2**19-2,2**19&lt;BR /&gt;if(rankmpi.eq.0) then&lt;BR /&gt;call MPI_SEND(void,1_4,MPI_INTEGER4,1_4,tagmpi,MPI_COMM_WORLD,ierrmpi)&lt;BR /&gt;write(*,'(i0,a,i0,a,i0)') void, ' sent from 0 with tag ',tagmpi,' &amp;lt; ',MPI_TAG_UB&lt;BR /&gt;else&lt;BR /&gt;call MPI_RECV(void,1_4,MPI_INTEGER4,0_4,tagmpi,MPI_COMM_WORLD,statusmpi,ierrmpi)&lt;BR /&gt;write(*,'(i0,a,i0,a,i0)') void,' received by 1 with tag ',tagmpi,' &amp;lt; ',MPI_TAG_UB&lt;BR /&gt;endif&lt;BR /&gt;call MPI_BARRIER(MPI_COMM_WORLD,ierrmpi)&lt;BR /&gt;enddo&lt;BR /&gt;endif&lt;BR /&gt;end program&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 15:18:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-low-upper-bound-for-tag/m-p/1237092#M7440</guid>
      <dc:creator>LionelL</dc:creator>
      <dc:date>2020-12-14T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: MPI: low upper bound for tag</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-low-upper-bound-for-tag/m-p/1237098#M7441</link>
      <description>&lt;P&gt;I forgot to add information on the OS/CPU. Here they are.&lt;/P&gt;
&lt;P&gt;Ubuntu 20.04.1 LTS with gcc 9.3.0&lt;/P&gt;
&lt;P&gt;2*Xeon Gold 6240&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 15:37:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-low-upper-bound-for-tag/m-p/1237098#M7441</guid>
      <dc:creator>LionelL</dc:creator>
      <dc:date>2020-12-14T15:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: MPI: low upper bound for tag</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-low-upper-bound-for-tag/m-p/1237618#M7442</link>
      <description>&lt;P&gt;I suggest that you ask this in&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/bd-p/oneapi-hpc-toolkit" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-HPC-Toolkit/bd-p/oneapi-hpc-toolkit&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 21:32:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-low-upper-bound-for-tag/m-p/1237618#M7442</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-12-15T21:32:52Z</dc:date>
    </item>
  </channel>
</rss>

