<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>&lt;nrosner@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Nicolas Rosner &lt;nrosner@gmail.com&gt;<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>&gt; 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>&gt; 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 &lt;<a ymailto="mailto:hd_banki@yahoo.com" href="/mc/compose?to=hd_banki@yahoo.com">hd_banki@yahoo.com</a>&gt; wrote:<br><br>&gt; Hello,<br>&gt;<br>&gt; 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>&gt; I use the below command, in the command prompt :<br>&gt;<br>&gt; C:\Program Files\MPICH2\examples&gt;mpiexec -n 6 -machinefile machines.txt cpi.exe<br>&gt;<br>&gt; the program runs successfully and returns the correct result without any error.<br>&gt;<br>&gt; 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>&gt;<br>&gt; actually I want to be sure that a part of program is running via another computer!!<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; Banki<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; mpich-discuss mailing list<br>&gt; <a ymailto="mailto:mpich-discuss@mcs.anl.gov" href="/mc/compose?to=mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>&gt; <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>&gt;<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>