<div dir="ltr">I am trying to get the value of MPI_TAG_UB using the following code:<br><br><span style="font-family:courier new,monospace"> MPI_Aint * maxTag;;<br> int error, flag;<br> <br> error = MPI_Comm_get_attr(MPI_COMM_WORLD, MPI_TAG_UB, &maxTag, &flag);<br>
<br> if(error != MPI_SUCCESS || !flag ){<br> printf( " ERROR IN native mpitagub\n");<br> }<br> <br> printf( "mpitagub = %d\n", *maxTag);</span><br><div><br><br></div><div>For MPICH3 I get<br><br>
mpitagub = 1073741823<br><br></div><div>I also did it for OpenMPI and I get<br><br>mpitagub = 2147483647<br><br></div><div>The value from OpenMPI makes sense since its 2^31 -1. But at the end the MPI_TAG_UB is MPI implementation dependent. <br>
<br><b>So I was wondering the value that I got from MPICH3 (mpitagub = 1073741823) is this OK? or my code is wrong somewhere?</b><br></div><div><br></div><div>Thanks<br clear="all"></div><div><div><div dir="ltr"><span style="color:rgb(0,0,0)">Bibrak</span><br style="color:rgb(0,0,0)">
<span style="color:rgb(0,0,0)"><br></span><font color="#888888"></font></div></div>
</div></div>