<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi Victor,
<div><br>
</div>
<div>Your code was not attached. Can you send it again?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sangmin</div>
<div><br>
</div>
<div><br>
<div>
<div>On Oct 16, 2014, at 6:34 AM, Victor Vysotskiy <<a href="mailto:victor.vysotskiy@teokem.lu.se">victor.vysotskiy@teokem.lu.se</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div fpstyle="1" ocsi="0" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
Hi, </p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
I am straggling with a simple MPI program when a vector derived datatype is used as origin/remote datatypes in the MPI_Put RMA operation. The underlying idea is quite simple: a contiguous piece of memory is interpreted as a 2D array and only its certain slice
is going to be updated via MPI_Put. To this end, I am using a MPI_Type_vector call. Everything works fine when the stride value <= 24000, regardless count and blocklength. However, if stride is greater than 24000 then program simply hangs. The source code
is attached and you can simply verify the issue by compiling and running it with the following parameters:</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
mpicc mpi_tvec_rma.c</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
mpirun -np 2 ./a.out 10000 2000 </p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
Ok</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
mpirun -np 2 ./a.out 20000 2000 </p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
Ok</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
mpirun -np 2 ./a.out 30000 2000 </p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
Hangs</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
Is there any internal/known limits to the size of MPI_TYPE_VECTOR datatypes?</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
So, I am really puzzled what is happening here and any help will be greatly appreciated! </p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
With best regards,</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
Victor.</p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
P.S. The attached code is perfectly runs with the OpenMPI v1.8.2. </p>
<p style="margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding: 0px; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; color: rgb(83, 87, 94);">
P.P.S. Below are given some details about hardware and software setups used:</p>
<div>
<div style="font-family: Tahoma; font-size: 13px;">
<div class="BodyFragment"><font size="2"><span style="font-size: 10pt;">
<div class="PlainText">
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 Version: 1.5</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 Release date: Mon Oct 8 14:00:48 CDT 2012</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 Device: ch3:nemesis</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 configure: --prefix=/opt/mpi/mpich2/ --disable-weak-symbols</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 CC: gcc -O2</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 CXX: c++ -O2</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 F77: gfortran -O2</p>
<p style="margin-right: 0px; margin-left: 0px; font-size: 11px; font-family: Menlo;">
MPICH2 FC: gfortran -O2</p>
<div><br>
</div>
<div>GCC version 4.7.3</div>
<div><br>
</div>
<div><br>
</div>
</div>
</span></font></div>
</div>
</div>
</div>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></div>
</blockquote>
</div>
<br>
</div>
</body>
</html>