<?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 Hello, in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014687#M3977</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Regarding this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;I would like to suggest that there be a function that can be called to obtain the limits as used by the specific MPI library used by the application at run time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;MPI has such function, here is example:&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;int tag_ub = 32767;
int flag;
int* tag_ub_ptr;
MPI_Comm_get_attr(MPI_COMM_WORLD, MPI_TAG_UB, &amp;amp;tag_ub_ptr, &amp;amp;flag);
if (flag) tag_ub = *tag_ub_ptr;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 25 Apr 2018 15:10:08 GMT</pubDate>
    <dc:creator>Mikhail_S_Intel</dc:creator>
    <dc:date>2018-04-25T15:10:08Z</dc:date>
    <item>
      <title>Bug  Report :  MPI_IRECV invalid tag problem</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014681#M3971</link>
      <description>&lt;P&gt;Hi, there,&lt;/P&gt;

&lt;P&gt;In MPI_5.0.3, the MPI_TAG_UB&amp;nbsp; is set to be 1681915906.&amp;nbsp; But internally, the&amp;nbsp; upper bound is&amp;nbsp; 2^29 = 536870912, as tested out by the code attached.&lt;/P&gt;

&lt;P&gt;Same code will run just fine in MPI 4.0.3.&lt;/P&gt;

&lt;P&gt;Just to let you guys know the problem.&lt;/P&gt;

&lt;P&gt;Hope to see the fix soon. Thanks.&lt;/P&gt;

&lt;P&gt;Xudong&lt;/P&gt;

&lt;P&gt;Encl:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2-1. Source Code&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;

&lt;P&gt;program main&lt;BR /&gt;
	implicit none&lt;BR /&gt;
	include"mpif.h"&lt;BR /&gt;
	real :: ibuf(10000)&lt;BR /&gt;
	integer ,save&amp;nbsp; :: tag=2**29-1,ierr&lt;BR /&gt;
	integer :: req(MPI_STATUS_SIZE,2)&lt;/P&gt;

&lt;P&gt;CALL MPI_INIT(ierr)&lt;/P&gt;

&lt;P&gt;write(*,*)"Tag_UB=", MPI_TAG_UB, TAG&lt;BR /&gt;
	CALL MPI_IRECV(ibuf, 1000_4, MPI_REAL, 0, tag, MPI_COMM_WORLD, req(1,1), ierr)&lt;BR /&gt;
	write(*,*)"Pass ..."&lt;BR /&gt;
	tag = tag+1&lt;BR /&gt;
	write(*,*)"Tag_UB=", MPI_TAG_UB, TAG&lt;BR /&gt;
	CALL MPI_IRECV(ibuf, 1000_4, MPI_REAL, 0, tag, MPI_COMM_WORLD, req(1,2), ierr)&lt;BR /&gt;
	PAUSE&lt;/P&gt;

&lt;P&gt;end&lt;/P&gt;

&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2-2. The screen output is as follows:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Tag_UB=&amp;nbsp; 1681915906&amp;nbsp;&amp;nbsp; 536870911&lt;BR /&gt;
	&amp;nbsp;Pass ...&lt;BR /&gt;
	&amp;nbsp;Tag_UB=&amp;nbsp; 1681915906&amp;nbsp;&amp;nbsp; 536870912&lt;BR /&gt;
	Fatal error in MPI_Irecv: Invalid tag, error stack:&lt;BR /&gt;
	MPI_Irecv(165): MPI_Irecv(buf=0x6a4fc0, count=1000, MPI_REAL, src=0, tag=536870912, MPI_COMM_WORLD, request=0x6aec00) failed&lt;BR /&gt;
	MPI_Irecv(109): Invalid tag, value is 536870912&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 20:08:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014681#M3971</guid>
      <dc:creator>Xudong_X_</dc:creator>
      <dc:date>2015-02-18T20:08:39Z</dc:date>
    </item>
    <item>
      <title>Hi Xudong,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014682#M3972</link>
      <description>&lt;P&gt;Hi Xudong,&lt;/P&gt;

&lt;P&gt;Thanks for getting this reported to us!&amp;nbsp; I've submitted an internal bug report to our development team.&amp;nbsp; I'll update you again once&amp;nbsp;a fix is available.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	~Gergana&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:30:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014682#M3972</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2015-02-20T17:30:41Z</dc:date>
    </item>
    <item>
      <title>A quick update here.  This</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014683#M3973</link>
      <description>&lt;P&gt;A quick update here.&amp;nbsp; This issue has been fixed and will be included in our upcoming Intel MPI 5.1 version (to be released later this summer).&amp;nbsp; We can provide you with an early engineering build for testing.&amp;nbsp; You're welcome to send me a direct message with that request.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	~Gergana&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 15:29:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014683#M3973</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2015-05-26T15:29:19Z</dc:date>
    </item>
    <item>
      <title>Dear Gergana,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014684#M3974</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Dear Gergana,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I get same error with MPI Library 2017 Update 1&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;$ mpiifort -v&lt;BR /&gt;
	mpiifort for the Intel(R) MPI Library 2017 Update 1 for Linux*&lt;BR /&gt;
	Copyright(C) 2003-2016, Intel Corporation. &amp;nbsp;All rights reserved.&lt;BR /&gt;
	ifort version 17.0.1&lt;/P&gt;

&lt;P&gt;$ mpiifort test.F90; mpirun -np 2 ./a.out&lt;BR /&gt;
	&amp;nbsp;Tag_UB= &amp;nbsp;1681915906 &amp;nbsp; &amp;nbsp; 2097152&lt;BR /&gt;
	Fatal error in MPI_Irecv: Invalid tag, error stack:&lt;BR /&gt;
	MPI_Irecv(170): MPI_Irecv(buf=0x6b9060, count=1000, MPI_REAL, src=0, tag=2097152, MPI_COMM_WORLD, request=0x6c2ca0) failed&lt;BR /&gt;
	MPI_Irecv(109): Invalid tag, value is 2097152&lt;/P&gt;

&lt;P&gt;Happy new year 2017&lt;/P&gt;

&lt;P&gt;Pierre&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2017 14:47:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014684#M3974</guid>
      <dc:creator>Pierre_N_</dc:creator>
      <dc:date>2017-01-02T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Same issue on send.</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014685#M3975</link>
      <description>&lt;P&gt;Same issue on send.&lt;/P&gt;

&lt;P&gt;On my local cluster, one Xeon and one KNL, both running Intel PS 17.0.1 - no problem.&lt;/P&gt;

&lt;P&gt;Recently (this month), in running on the Colfax Cluster, with Intel PS 17.0.2, where I build on my system, scp program to CC, I receive the same invalid tag error.&lt;/P&gt;

&lt;P&gt;FWIW, I am sending/receiving a null length message with the tag value used as a dispatch index. The code uses MPI_TAG_UB value as a "nothing left to do" indicator. My hack resolution is to&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#define MPI_TAG_UB_broken 999999&lt;/P&gt;

&lt;P&gt;Then use that. I'd rather use a predefined upper bound. I accept the fact that different versions of MPI may have different values for the upper bound tag. Therefor, I would like to suggest that there be a function that can be called to obtain the limits as used by the specific MPI library used by the application at run time.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 14:29:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014685#M3975</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-05-22T14:29:53Z</dc:date>
    </item>
    <item>
      <title>The bug is coming back with</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014686#M3976</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;The bug is coming back with the 2019 beta version:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;$ mpiifort -v&lt;BR /&gt;
	mpiifort for the Intel(R) MPI Library 2019 Beta for Linux*&lt;BR /&gt;
	Copyright 2003-2018, Intel Corporation.&lt;BR /&gt;
	ifort version 19.0.0.046 Beta&lt;/P&gt;

&lt;P&gt;$ mpirun -np 2 ./a.out&lt;BR /&gt;
	&amp;nbsp;Tag_UB= &amp;nbsp;1681915906 &amp;nbsp; &amp;nbsp; 8454145&lt;BR /&gt;
	Abort(67744004) on node 1 (rank 1 in comm 0): Fatal error in MPI_Irecv: Invalid tag, error stack:&lt;BR /&gt;
	MPI_Irecv(156): MPI_Irecv(buf=0x6bb0a0, count=1000, MPI_REAL, src=0, tag=8454145, MPI_COMM_WORLD, request=0x6c4ce0) failed&lt;BR /&gt;
	MPI_Irecv(100): Invalid tag, value is 8454145&lt;BR /&gt;
	&amp;nbsp;Tag_UB= &amp;nbsp;1681915906 &amp;nbsp; &amp;nbsp; 8454145&lt;BR /&gt;
	[cli_1]: readline failed&lt;/P&gt;

&lt;P&gt;Thank you very much to give me the opportunity to test this new version.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:36:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014686#M3976</guid>
      <dc:creator>Pierre_N_</dc:creator>
      <dc:date>2018-04-25T13:36:55Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014687#M3977</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Regarding this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;I would like to suggest that there be a function that can be called to obtain the limits as used by the specific MPI library used by the application at run time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;MPI has such function, here is example:&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:cpp;"&gt;int tag_ub = 32767;
int flag;
int* tag_ub_ptr;
MPI_Comm_get_attr(MPI_COMM_WORLD, MPI_TAG_UB, &amp;amp;tag_ub_ptr, &amp;amp;flag);
if (flag) tag_ub = *tag_ub_ptr;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:10:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1014687#M3977</guid>
      <dc:creator>Mikhail_S_Intel</dc:creator>
      <dc:date>2018-04-25T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hello,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1228509#M7333</link>
      <description>&lt;P&gt;This bug seems still to not be fixed? Tried 2020 and 2019 versions?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 13:53:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1228509#M7333</guid>
      <dc:creator>AThar2</dc:creator>
      <dc:date>2020-11-15T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hello,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1228510#M7334</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/63968"&gt;@jimdempseyatthecove&lt;/a&gt;&amp;nbsp;your solutions works , thanks. Although, I am not sure why it works.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2020 13:56:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Bug-Report-MPI-IRECV-invalid-tag-problem/m-p/1228510#M7334</guid>
      <dc:creator>AThar2</dc:creator>
      <dc:date>2020-11-15T13:56:57Z</dc:date>
    </item>
  </channel>
</rss>

