<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hi Rosner,<br><br>Thanks alot for your help.<br><br><br><br>--- On <b>Thu, 3/3/11, Nicolas Rosner <i><nrosner@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Nicolas Rosner <nrosner@gmail.com><br>Subject: Re: [mpich-discuss] how can I be sure that the program is running via another computer<br>To: mpich-discuss@mcs.anl.gov<br>Date: Thursday, March 3, 2011, 7:27 AM<br><br><div class="plainMail">Hi Banki,<br><br><br>> is there any way to show a message in the screen of *another computer* like "a part of program is running here"?<br><br>Yes, there is, but may I suggest that doing so might be overkill for<br>your purpose?<br><br><br>> actually I want to be sure that a part of program is running via another computer!!<br><br>Fair enough. But what if the
other computer happened to be behind a<br>locked door, or across the ocean, or had no physical screen at all? In<br>distributed computing, you quickly realize how practical it is to have<br>remote results (or, in your case, proof of remote activity) delivered<br>right back to your local screen, rather than merely cause collateral<br>effects on the remote machines.<br><br>In fact, since this is so important, MPICH does a lot of work behind<br>the scenes to ensure each of your process' output (and errors, if any)<br>are collected, sent back, merged together and displayed as if they<br>were local output. (To avoid confusion, you can optionally ask mpiexec<br>to prepend the rank of each process to each locally printed line.)<br><br>Thus, all you need to do is have each process print something like<br>"This machine's hostname is %s", or anything similar that would<br>convince you it was running somewhere else. Try looking up<br>MPI_Get_processor_name, for
instance.<br><br>Question: doesn't the cpi.c example do this already for you? It does<br>on Linux. No idea about Windows, though.<br><br>Hope this helps,<br><br>Nicolás<br><br><br><br><br>On Thu, Mar 3, 2011 at 7:29 AM, h banki <<a ymailto="mailto:hd_banki@yahoo.com" href="/mc/compose?to=hd_banki@yahoo.com">hd_banki@yahoo.com</a>> wrote:<br><br>> Hello,<br>><br>> I want to run a MPI program through two computers. so I have a machine file which has the IP of my computer and IP of another computer. and in both computers I have registered the same user with the same password.<br>> I use the below command, in the command prompt :<br>><br>> C:\Program Files\MPICH2\examples>mpiexec -n 6 -machinefile machines.txt cpi.exe<br>><br>> the program runs successfully and returns the correct result without any error.<br>><br>> now I want to know that is there any way to show a message in the screen of another computer like "a
part of program is running here"?<br>><br>> actually I want to be sure that a part of program is running via another computer!!<br>><br>> Regards,<br>><br>> Banki<br>><br>><br>> _______________________________________________<br>> mpich-discuss mailing list<br>> <a ymailto="mailto:mpich-discuss@mcs.anl.gov" href="/mc/compose?to=mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>><br>_______________________________________________<br>mpich-discuss mailing list<br><a ymailto="mailto:mpich-discuss@mcs.anl.gov" href="/mc/compose?to=mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss"
target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br></div></blockquote></td></tr></table><br>