<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="IncrediMail 1.0">
<STYLE>v\:* {
        BEHAVIOR: url (#default#vml)
}
</STYLE>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER></X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style="MARGIN: 5px 10px 0px; FONT-FAMILY: Arial; FONT-SIZE: 12pt" background="" scroll=yes bgColor=#ffffff>
<TABLE id=INCREDIMAINTABLE border=0 cellSpacing=0 cellPadding=2 width="100%">
<TBODY>
<TR>
<TD style="POSITION: relative; DIRECTION: ltr; FONT-SIZE: 12pt" id=INCREDITEXTREGION width="100%">
<DIV style="PADDING-LEFT: 2px" id=INCREDI_TEXT_AREA>
<DIV>
<DIV><SPAN id=result_box class=medium_text><SPAN style="BACKGROUND-COLOR: rgb(255,255,255)" title="estou enviando novamente as informações dos computadores: MSI-975 IP100.100.100Mask255.0.0.0 nome do computador na rede MSI-975, outro ASUS IP100.100.101Mask255.0.0.0 nome computador na rede ASUS">I am sending back the information from the computers: MSI-975 IP100.100.100Mask255.0.0.0 name of the computer network MSI-975, ASUS IP100.100.101Mask255.0.0.0 another computer on the network name ASUS</SPAN></SPAN> </DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV>
<DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr id=IncrediOriginalMessage><I>-------Mensagem original-------</I></DIV>
<DIV> </DIV>
<DIV id=receivestrings>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>De:</B></I> <A href="mailto:mpich-discuss-request@mcs.anl.gov">mpich-discuss-request@mcs.anl.gov</A></DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>Data:</B></I> 4/1/2010 21:30:24</DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>Para:</B></I> <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV style="FONT-SIZE: 11pt" dir=ltr><I><B>Assunto:</B></I> mpich-discuss Digest, Vol 16, Issue 2</DIV></DIV>
<DIV> </DIV>
<DIV>Send mpich-discuss mailing list submissions to</DIV>
<DIV> <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV> </DIV>
<DIV>To subscribe or unsubscribe via the World Wide Web, visit</DIV>
<DIV> <A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV>or, via email, send a message with subject or body 'help' to</DIV>
<DIV> <A href="mailto:mpich-discuss-request@mcs.anl.gov">mpich-discuss-request@mcs.anl.gov</A></DIV>
<DIV> </DIV>
<DIV>You can reach the person managing the list at</DIV>
<DIV> <A href="mailto:mpich-discuss-owner@mcs.anl.gov">mpich-discuss-owner@mcs.anl.gov</A></DIV>
<DIV> </DIV>
<DIV>When replying, please edit your Subject line so it is more specific</DIV>
<DIV>than "Re: Contents of mpich-discuss digest..."</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Today's Topics:</DIV>
<DIV> </DIV>
<DIV> 1. Install and config (Rodinei Nunes)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>----------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 1</DIV>
<DIV>Date: Mon, 4 Jan 2010 14:58:39 +0430</DIV>
<DIV>From: "Rodinei Nunes" <<A href="mailto:rodinei.nunes@yahoo.com.br">rodinei.nunes@yahoo.com.br</A>></DIV>
<DIV>Subject: [mpich-discuss] Install and config</DIV>
<DIV>To: <<A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A>></DIV>
<DIV>Message-ID: <<A href="mailto:4B41C2D7.000005.02612@MSI-975">4B41C2D7.000005.02612@MSI-975</A>></DIV>
<DIV>Content-Type: text/plain; charset="iso-8859-1"</DIV>
<DIV> </DIV>
<DIV>hello, I have two computers with a 975 Placida Mar MSi power edition with</DIV>
<DIV>pentium D 3.4GHZ with 100,100,100,100 and IP mask 255.0.0.0 name of the</DIV>
<DIV>computer on the network is MSI-975 and the other computer is an ASUS P5E3</DIV>
<DIV>Premium pentium D 2.8GHZ using the IP 255.0.0.0 and mask 100,100,100,101</DIV>
<DIV>your name on the network is ASUS. Please can someone send me the setting to</DIV>
<DIV>use these two computers together, which the configuration on each computer?</DIV>
<DIV>Well I do not know anything about the MPICH2. Grateful</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>-------Mensagem original-------</DIV>
<DIV> </DIV>
<DIV>De: <A href="mailto:mpich-discuss-request@mcs.anl.gov">mpich-discuss-request@mcs.anl.gov</A></DIV>
<DIV>Data: 01/04/10 21:06:54</DIV>
<DIV>Para: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Assunto: mpich-discuss Digest, Vol 16, Issue 1</DIV>
<DIV> </DIV>
<DIV>Send mpich-discuss mailing list submissions to</DIV>
<DIV> <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV> </DIV>
<DIV>To subscribe or unsubscribe via the World Wide Web, visit</DIV>
<DIV> <A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV>or, via email, send a message with subject or body 'help' to</DIV>
<DIV> <A href="mailto:mpich-discuss-request@mcs.anl.gov">mpich-discuss-request@mcs.anl.gov</A></DIV>
<DIV> </DIV>
<DIV>You can reach the person managing the list at</DIV>
<DIV> <A href="mailto:mpich-discuss-owner@mcs.anl.gov">mpich-discuss-owner@mcs.anl.gov</A></DIV>
<DIV> </DIV>
<DIV>When replying, please edit your Subject line so it is more specific</DIV>
<DIV>than "Re: Contents of mpich-discuss digest..."</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Today's Topics:</DIV>
<DIV> </DIV>
<DIV> 1. Re: smpd on windows 7 (Jayesh Krishna)</DIV>
<DIV> 2. Re: MPI_Waitsome and MPI_Getcount incorrect (<A href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A>)</DIV>
<DIV> 3. Re: mpich2-1.2.1 on Cygwin/Vista (Jayesh Krishna)</DIV>
<DIV> 4. Re: smpd on windows 7 (Sherry Frese)</DIV>
<DIV> 5. Re: mpich2-1.2.1 on Cygwin/Vista (Sherry Frese)</DIV>
<DIV> 6. Re: smpd on windows 7 (<A href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A>)</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>----------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 1</DIV>
<DIV>Date: Mon, 4 Jan 2010 09:09:45 -0600 (CST)</DIV>
<DIV>From: Jayesh Krishna <<A href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A>></DIV>
<DIV>Subject: Re: [mpich-discuss] smpd on windows 7</DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Cc: <A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A></DIV>
<DIV>Message-ID: <<A href="mailto:12042708.581131262617785646.JavaMail.root@zimbra">12042708.581131262617785646.JavaMail.root@zimbra</A>></DIV>
<DIV>Content-Type: text/plain; charset=utf-8</DIV>
<DIV> </DIV>
<DIV>Hi,</DIV>
<DIV> Open a command prompt with administrator privileges (Right-click on</DIV>
<DIV>command prompt icon and select "Run as administrator") and use the windows</DIV>
<DIV>installer from command line to install MPICH2.</DIV>
<DIV> To uninstall MPICH2 (It is recommended that you uninstall MPICH2 before</DIV>
<DIV>installing a new version) run the following at the command prompt (with</DIV>
<DIV>admin privileges),</DIV>
<DIV> </DIV>
<DIV> msiexec /x mpich2-1.2.1-win-ia32.msi</DIV>
<DIV> </DIV>
<DIV> To install MPICH2 run the following at the command prompt (with admin</DIV>
<DIV>privileges),</DIV>
<DIV> </DIV>
<DIV> msiexec /i mpich2-1.2.1-win-ia32.msi</DIV>
<DIV> </DIV>
<DIV> Let us know if you still have problems.</DIV>
<DIV> </DIV>
<DIV>(PS: Running msiexec at the command prompt should bring up the GUI for</DIV>
<DIV>installing MPICH2.)</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Jayesh</DIV>
<DIV> </DIV>
<DIV>----- Original Message -----</DIV>
<DIV>From: "Sherry Frese" <<A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A>></DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Sent: Monday, December 28, 2009 9:54:42 AM GMT -06:00 US/Canada Central</DIV>
<DIV>Subject: [mpich-discuss] smpd on windows 7</DIV>
<DIV> </DIV>
<DIV>I have been using MPICH2 on Windows XP (as well as under linux) for</DIV>
<DIV>over 2 years.</DIV>
<DIV> </DIV>
<DIV>I am now moving to Windows 7 on a new PC. I have downloaded and</DIV>
<DIV>installed the most recent MPICH2 for Windows and the install appears</DIV>
<DIV>to have been OK. However, the smpd refuses to install as a</DIV>
<DIV>service. smpd never shows up in the Task Manager's list of</DIV>
<DIV>services. I have run 'sc //hostname query smpd', and it says the</DIV>
<DIV>'specified service does not exist as an installed service'.</DIV>
<DIV> </DIV>
<DIV>I have redone the full install several times, under 2 different admin</DIV>
<DIV>accounts (one of them named 'administator'). I have tried the</DIV>
<DIV>explicit smpd -install as well (varying accounts, directory</DIV>
<DIV>locations. etc.), and routinely receive the message:</DIV>
<DIV> </DIV>
<DIV>OpenSCManager Failed:</DIV>
<DIV>Access is denied. (error 5)</DIV>
<DIV>Unable to remove the previous installation, install failed.</DIV>
<DIV> </DIV>
<DIV>If I try smpd -uninstall, I get the same OpenSCManager Failed... message.</DIV>
<DIV> </DIV>
<DIV>Any advice would be greatly appreciated</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>----------------------------</DIV>
<DIV>Sherry Frese</DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list</DIV>
<DIV><A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 2</DIV>
<DIV>Date: Mon, 4 Jan 2010 09:43:06 -0600 (CST)</DIV>
<DIV>From: <A href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A></DIV>
<DIV>Subject: Re: [mpich-discuss] MPI_Waitsome and MPI_Getcount incorrect</DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Message-ID: <<A href="mailto:19470479.583711262619786913.JavaMail.root@zimbra">19470479.583711262619786913.JavaMail.root@zimbra</A>></DIV>
<DIV>Content-Type: text/plain; charset=utf-8</DIV>
<DIV> </DIV>
<DIV>Hi,</DIV>
<DIV> There is a bug in your code which results in accessing invalid indices of</DIV>
<DIV>the status array.</DIV>
<DIV> Please modify the for loop in your code as below and let us know if it</DIV>
<DIV>works for you.</DIV>
<DIV> </DIV>
<DIV>####################################################################</DIV>
<DIV> </DIV>
<DIV> for (;;) {</DIV>
<DIV> /* wait for one, or multiple requests to finish */</DIV>
<DIV> int outcount = MPI::Request::Waitsome(2, req, array_of_indeces,</DIV>
<DIV>array_of_statuses);</DIV>
<DIV> if (outcount == MPI_UNDEFINED) break; /* no active handles */</DIV>
<DIV> </DIV>
<DIV> debug("received count: %d", outcount);</DIV>
<DIV> for (int index=0; index<outcount; index++) {</DIV>
<DIV> /* size_t index = array_of_indeces[outcount]; */</DIV>
<DIV> int req_index = array_of_indeces[index];</DIV>
<DIV> </DIV>
<DIV> debug("Request %d completed", req_index);</DIV>
<DIV> int recv_count = array_of_statuses[index]</DIV>
<DIV>Get_count(array_of_types[req_index]);</DIV>
<DIV> debug("MPI_GET_COUNT %d", recv_count);</DIV>
<DIV> }</DIV>
<DIV> }</DIV>
<DIV> </DIV>
<DIV>####################################################################</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Jayesh</DIV>
<DIV> </DIV>
<DIV>----- Original Message -----</DIV>
<DIV>From: "Tam?s Farag?" <<A href="mailto:fafarago@gmail.com">fafarago@gmail.com</A>></DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Sent: Monday, December 28, 2009 3:55:51 AM GMT -06:00 US/Canada Central</DIV>
<DIV>Subject: Re: [mpich-discuss] MPI_Waitsome and MPI_Getcount incorrect</DIV>
<DIV> </DIV>
<DIV>Sorry for the late reply but I was out of the country for a week. I am</DIV>
<DIV>using MPICH2 1.2.1 on a WinXP SP3 machine running an Intel Core i5</DIV>
<DIV>CPU. This is the output I get when running the application (mpiexec -n</DIV>
<DIV>2 -l test3.exe)</DIV>
<DIV> </DIV>
<DIV>[1]client before: a 0, b 0</DIV>
<DIV>[0]host: a 1, b 2</DIV>
<DIV>[0]done, waiting....</DIV>
<DIV>[1]received count: 1</DIV>
<DIV>[1]MPI_Waitsome index 0</DIV>
<DIV>[1]MPI_GET_COUNT 1</DIV>
<DIV>[1]received count: 1</DIV>
<DIV>[1]MPI_Waitsome index 1</DIV>
<DIV>[1]MPI_GET_COUNT -32766</DIV>
<DIV>[1]client after: a 1, b 2</DIV>
<DIV>[1]done, waiting....</DIV>
<DIV>[0]finalize</DIV>
<DIV>[1]finalize</DIV>
<DIV> </DIV>
<DIV>On 22/12/2009, Rajeev Thakur <<A href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</A>> wrote:</DIV>
<DIV>> I am not able to reproduce this problem when running MPICH2 1.2.1 with 2</DIV>
<DIV>> processes on a single machine.</DIV>
<DIV>></DIV>
<DIV>> Rajeev</DIV>
<DIV>></DIV>
<DIV>>> -----Original Message-----</DIV>
<DIV>>> From: <A href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</A></DIV>
<DIV>>> [<A href="mailto:mpich-discuss-bounces@mcs.anl.gov">mailto:mpich-discuss-bounces@mcs.anl.gov</A>] On Behalf Of Tam?s Farag?</DIV>
<DIV>>> Sent: Wednesday, December 16, 2009 7:48 AM</DIV>
<DIV>>> To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>>> Subject: [mpich-discuss] MPI_Waitsome and MPI_Getcount incorrect</DIV>
<DIV>>></DIV>
<DIV>>> My actual problem, why I initiated the previous post at</DIV>
<DIV>>> <A href="http://lists.mcs.anl.gov/pipermail/mpich-discuss/2009-December">http://lists.mcs.anl.gov/pipermail/mpich-discuss/2009-December</A></DIV>
<DIV>>> /006187.html</DIV>
<DIV>>> ([mpich-discuss] MPI_GET_COUNT behaviour unclear).</DIV>
<DIV>>></DIV>
<DIV>>> See the very simple source code below. I initialise two</DIV>
<DIV>>> persistent requests, then run a Waitsome on both of them and</DIV>
<DIV>>> getting the top-level datatypes received. With Waitsome the</DIV>
<DIV>>> second one returns MPI_UNDEFINED, no idea why. Waitall</DIV>
<DIV>>> correctly returns 1 in both cases.</DIV>
<DIV>>> What is going on, is it my fault and can it be solved?</DIV>
<DIV>>></DIV>
<DIV>>> I have also uploaded the source code to</DIV>
<DIV>>> <A href="http://www.liacs.nl/~tfarago/test.cpp">http://www.liacs.nl/~tfarago/test.cpp</A></DIV>
<DIV>>> NOTE: right now the tags are all the same, but even if</DIV>
<DIV>>> different tags are given to the sending and receiving side</DIV>
<DIV>>> (eg 0 and 1), the outcoume is the same. From the output it</DIV>
<DIV>>> can be seen that even if MPI_GET_COUNT returns some kind of</DIV>
<DIV>>> an error the program's behaviour is still correct.</DIV>
<DIV>>> NOTE: also, strangely I cannot get Waitsome to return both</DIV>
<DIV>>> completed requests, not even if I let the client sleep/idle</DIV>
<DIV>>> for several seconds.</DIV>
<DIV>>></DIV>
<DIV>>> ---CODE--</DIV>
<DIV>>> #include <stdarg.h></DIV>
<DIV>>> #include <stdio.h></DIV>
<DIV>>> #include <mpi.h></DIV>
<DIV>>></DIV>
<DIV>>> #pragma comment(lib, "cxx.lib")</DIV>
<DIV>>> #pragma comment(lib, "mpi.lib")</DIV>
<DIV>>></DIV>
<DIV>>> void __cdecl debug(const char* msg, ...) {</DIV>
<DIV>>> va_list va;</DIV>
<DIV>>> va_start(va, msg);</DIV>
<DIV>>> vfprintf(stderr, msg, va);</DIV>
<DIV>>> fputs("\n", stderr);</DIV>
<DIV>>> fflush(stderr);</DIV>
<DIV>>> }</DIV>
<DIV>>></DIV>
<DIV>>> int main() {</DIV>
<DIV>>> MPI::Init();</DIV>
<DIV>>> int my_node = MPI::COMM_WORLD.Get_rank();</DIV>
<DIV>>></DIV>
<DIV>>> int a, b;</DIV>
<DIV>>> MPI::Prequest req[2];</DIV>
<DIV>>> a = 0; b = 0;</DIV>
<DIV>>> if (my_node == 0) {</DIV>
<DIV>>> a = 1; b = 2;</DIV>
<DIV>>> req[0] = MPI::COMM_WORLD.Send_init(&a, 1,</DIV>
<DIV>>> MPI::INT, 1, 0);</DIV>
<DIV>>> req[1] = MPI::COMM_WORLD.Send_init(&b, 1,</DIV>
<DIV>>> MPI::INT, 1, 0);</DIV>
<DIV>>> } else {</DIV>
<DIV>>> size_t size = MPI::INT.Pack_size(1, MPI::COMM_WORLD);</DIV>
<DIV>>></DIV>
<DIV>>> req[0] = MPI::COMM_WORLD.Recv_init(&a, size,</DIV>
<DIV>>> MPI::INT, 0, MPI::ANY_TAG);</DIV>
<DIV>>> req[1] = MPI::COMM_WORLD.Recv_init(&b, size,</DIV>
<DIV>>> MPI::INT, 0, MPI::ANY_TAG);</DIV>
<DIV>>> }</DIV>
<DIV>>></DIV>
<DIV>>> MPI::Prequest::Startall(2, req);</DIV>
<DIV>>></DIV>
<DIV>>> if (my_node == 0) {</DIV>
<DIV>>> debug("host: a %d, b %d", a, b);</DIV>
<DIV>>> } else {</DIV>
<DIV>>> debug("client before: a %d, b %d", a, b);</DIV>
<DIV>>> int array_of_indeces[2];</DIV>
<DIV>>> MPI::Status array_of_statuses[2];</DIV>
<DIV>>> MPI::Datatype array_of_types[2];</DIV>
<DIV>>> array_of_types[0] = MPI::INT;</DIV>
<DIV>>> array_of_types[1] = MPI::INT;</DIV>
<DIV>>> #if 1</DIV>
<DIV>>> for (;;) {</DIV>
<DIV>>> /* wait for one, or multiple requests</DIV>
<DIV>>> to finish */</DIV>
<DIV>>> int outcount =</DIV>
<DIV>>> MPI::Request::Waitsome(2, req, array_of_indeces, array_of_statuses);</DIV>
<DIV>>> if (outcount == MPI_UNDEFINED) break;</DIV>
<DIV>>> /* no active handles */</DIV>
<DIV>>></DIV>
<DIV>>> debug("received count: %d", outcount);</DIV>
<DIV>>> for (outcount--; outcount >= 0; --outcount) {</DIV>
<DIV>>> size_t index =</DIV>
<DIV>>> array_of_indeces[outcount];</DIV>
<DIV>>></DIV>
<DIV>>> debug("MPI_Waitsome index %d", index);</DIV>
<DIV>>> int recv_count =</DIV>
<DIV>>> array_of_statuses[index].Get_count(array_of_types[index]);</DIV>
<DIV>>> debug("MPI_GET_COUNT %d", recv_count);</DIV>
<DIV>>> }</DIV>
<DIV>>> }</DIV>
<DIV>>> #else</DIV>
<DIV>>> MPI::Prequest::Waitall(2, req, array_of_statuses);</DIV>
<DIV>>></DIV>
<DIV>>> for (int outcount = 2; outcount > 0; --outcount) {</DIV>
<DIV>>> int recv_count =</DIV>
<DIV>>> array_of_statuses[outcount-1].Get_count(array_of_types[outcount-1]);</DIV>
<DIV>>> debug("MPI_GET_COUNT %d", recv_count);</DIV>
<DIV>>> }</DIV>
<DIV>>> #endif</DIV>
<DIV>>> debug("client after: a %d, b %d", a, b);</DIV>
<DIV>>> }</DIV>
<DIV>>></DIV>
<DIV>>> debug("done, waiting....");</DIV>
<DIV>>> MPI::COMM_WORLD.Barrier();</DIV>
<DIV>>> debug("finalize");</DIV>
<DIV>>> MPI::Finalize();</DIV>
<DIV>>> return 0;</DIV>
<DIV>>> }</DIV>
<DIV>>> ---CODE---</DIV>
<DIV>></DIV>
<DIV>> _______________________________________________</DIV>
<DIV>> mpich-discuss mailing list</DIV>
<DIV>> <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>> <A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV>></DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list</DIV>
<DIV><A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 3</DIV>
<DIV>Date: Mon, 4 Jan 2010 10:12:36 -0600 (CST)</DIV>
<DIV>From: Jayesh Krishna <<A href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A>></DIV>
<DIV>Subject: Re: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista</DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Cc: <A href="mailto:gustav@indiana.edu">gustav@indiana.edu</A></DIV>
<DIV>Message-ID: <<A href="mailto:18116662.585721262621556712.JavaMail.root@zimbra">18116662.585721262621556712.JavaMail.root@zimbra</A>></DIV>
<DIV>Content-Type: text/plain; charset=utf-8</DIV>
<DIV> </DIV>
<DIV>Hi,</DIV>
<DIV> Let me take a look at this and get back to you.</DIV>
<DIV> Meanwhile, if you are planning to work with C/C++ MPI programs (not</DIV>
<DIV>fortran MPI programs) you can install MPICH2 on windows and use the gcc libs</DIV>
<DIV>(you can even compile/link directly with the windows mpi libraries with gcc)</DIV>
<DIV>provided with the installation.</DIV>
<DIV> </DIV>
<DIV>(PS: To install MPICH2 on Vista/windows_7 type "msiexec /i mpich2-1.2</DIV>
<DIV>1-win-ia32.msi" from an administrator command prompt. Right-click on the</DIV>
<DIV>command prompt icon and select "Run as administrator" to run a command</DIV>
<DIV>prompt with admin privileges. Similarly to uninstall MPICH2 type "msiexec /x</DIV>
<DIV>mpich2-1.2.1-win-ia32.msi".)</DIV>
<DIV>Regards,</DIV>
<DIV>Jayesh</DIV>
<DIV>----- Original Message -----</DIV>
<DIV>From: "gustav" <<A href="mailto:gustav@indiana.edu">gustav@indiana.edu</A>></DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Sent: Thursday, December 24, 2009 7:54:06 AM GMT -06:00 US/Canada Central</DIV>
<DIV>Subject: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Well, it works. Finally. But with one little snag--see below.</DIV>
<DIV> </DIV>
<DIV> System: Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6002</DIV>
<DIV>Service Pack 2</DIV>
<DIV> uname: CYGWIN_NT-6.0-WOW64 Crawley 1.5.25(0.156/4/2) 2008-06-12 19:34</DIV>
<DIV>i686 Cygwin</DIV>
<DIV> CPU: AMD Phenom X4 9550</DIV>
<DIV> gcc: gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)</DIV>
<DIV> MPI: mpich2-1.2.1</DIV>
<DIV> config: ./configure --prefix=/home/gustav/mpich2-1.2.1</DIV>
<DIV>--disable-sharedlibs --enable-timer-type=gettimeofday --with-device=ch3:ssm</DIV>
<DIV>--with-thread-package=pthreads</DIV>
<DIV> </DIV>
<DIV>An important step that must be emphasized for Cygwin users is that to</DIV>
<DIV>enable XSI IPCs (this activates shared memory too) Cygserver must be</DIV>
<DIV>run on the machine. See /usr/share/doc/Cygwin/cygserver.README for</DIV>
<DIV>more info. Also, the CYGWIN environmental variable must be set to</DIV>
<DIV>"server". This is described in the doc, as well.</DIV>
<DIV> </DIV>
<DIV>With all this done and MPI compiled and installed, it works for a user</DIV>
<DIV>with admin privileges. Here's a brief demo:</DIV>
<DIV> </DIV>
<DIV> root@Crawley 515 # echo $CYGWIN</DIV>
<DIV> server</DIV>
<DIV> root@Crawley 516 # which mpdboot</DIV>
<DIV> /home/gustav/mpich2-1.2.1/bin/mpdboot</DIV>
<DIV> root@Crawley 517 # mpdboot --ncpus=4 --verbose</DIV>
<DIV> running mpdallexit on Crawley</DIV>
<DIV> LAUNCHED mpd on Crawley via</DIV>
<DIV> RUNNING: mpd on Crawley</DIV>
<DIV> root@Crawley 518 # mpirun -np 4 hostname</DIV>
<DIV> Crawley</DIV>
<DIV> Crawley</DIV>
<DIV> Crawley</DIV>
<DIV> Crawley</DIV>
<DIV> root@Crawley 519 # mpirun -np 4 /home/gustav/src/MPI-tests/hellow2.exe</DIV>
<DIV> Crawley: hello world from process 0 of 4</DIV>
<DIV> Crawley: hello world from process 1 of 4</DIV>
<DIV> Crawley: hello world from process 2 of 4</DIV>
<DIV> Crawley: hello world from process 3 of 4</DIV>
<DIV> root@Crawley 520 # mpdallexit</DIV>
<DIV> root@Crawley 521 #</DIV>
<DIV> </DIV>
<DIV>Alas, there is a little snag. User "root" has admin privileges. User</DIV>
<DIV>"gustav" does not. And here is what happens when this hapless</DIV>
<DIV>individual attempts the same:</DIV>
<DIV> </DIV>
<DIV> gustav@Crawley 556 $ echo $CYGWIN</DIV>
<DIV> server</DIV>
<DIV> gustav@Crawley 557 $ mpdboot --ncpus=4 --verbose</DIV>
<DIV> running mpdallexit on Crawley</DIV>
<DIV> LAUNCHED mpd on Crawley via</DIV>
<DIV> RUNNING: mpd on Crawley</DIV>
<DIV> gustav@Crawley 558 $ mpirun -np 4 hostname</DIV>
<DIV> Crawley</DIV>
<DIV> Crawley</DIV>
<DIV> Crawley</DIV>
<DIV> Crawley</DIV>
<DIV> gustav@Crawley 559 $ mpirun -np 4 /home/gustav/src/MPI-tests/hellow2.exe</DIV>
<DIV> Assertion failed in file mpidi_pg.c at line 277: ((pg)->ref_count) == 0</DIV>
<DIV> internal ABORT - process 0</DIV>
<DIV> [cli_0]: aborting job:</DIV>
<DIV> internal ABORT - process 0</DIV>
<DIV> rank 0 in job 2 Crawley_50796 caused collective abort of all ranks</DIV>
<DIV> exit status of rank 0: killed by signal 9</DIV>
<DIV> gustav@Crawley 560 $ mpdallexit</DIV>
<DIV> gustav@Crawley 561 $</DIV>
<DIV> </DIV>
<DIV>On the other hand, this little non-MPI program that tests shared memory</DIV>
<DIV>stuff still works for the non-admin user:</DIV>
<DIV> </DIV>
<DIV> gustav@Crawley 563 $ cat shm.c</DIV>
<DIV> #include <stdio.h></DIV>
<DIV> #include <sys/types.h></DIV>
<DIV> #include <sys/ipc.h></DIV>
<DIV> #include <sys/shm.h></DIV>
<DIV> </DIV>
<DIV> int main(int argc, char *argv[])</DIV>
<DIV> {</DIV>
<DIV> int shmid;</DIV>
<DIV> </DIV>
<DIV> if((shmid = shmget(IPC_PRIVATE, 1, IPC_CREAT)) == -1){</DIV>
<DIV> perror("shmget");</DIV>
<DIV> }</DIV>
<DIV> shmctl(shmid, IPC_RMID, NULL);</DIV>
<DIV> }</DIV>
<DIV> </DIV>
<DIV> gustav@Crawley 564 $ cc -o shm shm.c</DIV>
<DIV> gustav@Crawley 565 $ ./shm</DIV>
<DIV> gustav@Crawley 566 $ echo $?</DIV>
<DIV> 0</DIV>
<DIV> gustav@Crawley 567 $</DIV>
<DIV> </DIV>
<DIV>Question: Why can't the non-admin user execute the MPI program?</DIV>
<DIV> </DIV>
<DIV>Greetings to all,</DIV>
<DIV> </DIV>
<DIV>--</DIV>
<DIV>Zdzislaw (Gustav) Meglicki, Office of the Vice President for Information</DIV>
<DIV>Technology, Indiana University, 601 E. Kirkwood Ave., Room 116,</DIV>
<DIV>Bloomington, IN 47405-1223, USA, <A href="http://perth.ovpit.indiana.edu/gustav">http://perth.ovpit.indiana.edu/gustav</A>,</DIV>
<DIV>Ph: 812-856-5597 (o), 812-345-3284 (m), Fax: 812-855-3310/812-856-3147,</DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list</DIV>
<DIV><A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 4</DIV>
<DIV>Date: Mon, 04 Jan 2010 09:16:45 -0700</DIV>
<DIV>From: Sherry Frese <<A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A>></DIV>
<DIV>Subject: Re: [mpich-discuss] smpd on windows 7</DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Message-ID: <<A href="mailto:6.2.5.6.2.20100104083538.02d6ebe0@Numerex-LLC.com">6.2.5.6.2.20100104083538.02d6ebe0@Numerex-LLC.com</A>></DIV>
<DIV>Content-Type: text/plain; charset="us-ascii"; format=flowed</DIV>
<DIV> </DIV>
<DIV>Jayesh,</DIV>
<DIV> </DIV>
<DIV>Thanks for the response, but it still does not work.</DIV>
<DIV> </DIV>
<DIV>Previously I had just been executing the .msi file from my admin</DIV>
<DIV>account. This time I uninstalled (which said it was successful) and</DIV>
<DIV>then installed the MPICH2, using msiexec from the command line as you</DIV>
<DIV>suggested. The GUI came up, and all seemed fine (I kept the default</DIV>
<DIV>smpd password and installed for all users). And indeed, as before I</DIV>
<DIV>have all the MPICH2 directories and files in my Program File (x86)</DIV>
<DIV>directory. However the smpd service is not being installed.</DIV>
<DIV> </DIV>
<DIV>I've checked on the Task manager - it's not there.</DIV>
<DIV>I tried sc \\hostname query smpd and it now says</DIV>
<DIV> </DIV>
<DIV>[SC] EnumQueryServicesStatus: OpenService FAILED 1060:</DIV>
<DIV>The specified service does not exist as an installed service.</DIV>
<DIV> </DIV>
<DIV>My parallel executable is called m2. When I try</DIV>
<DIV> </DIV>
<DIV> mpiexec -n 1 -localonly m2</DIV>
<DIV> </DIV>
<DIV>I get a request for the smpd passphrase , which I supply.</DIV>
<DIV> </DIV>
<DIV>mpiexec (I assume) then comes back with</DIV>
<DIV> </DIV>
<DIV>Unknown option : -d</DIV>
<DIV>missing numproc flag: -n , -np, -hosts, or -localonly</DIV>
<DIV>Unable to parse mipexec command arguments</DIV>
<DIV>ReadFile() Failed, error 109</DIV>
<DIV>unable to start the local smpd manager</DIV>
<DIV> </DIV>
<DIV>I get the same response if I try mpiexec -n 2</DIV>
<DIV>-localonly m2 or mpiexec -localonly 1 m2 .</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I'm pretty sure that the problem is that the smpd service is not</DIV>
<DIV>being installed.</DIV>
<DIV> </DIV>
<DIV>One additional piece of info. This is a 64 bit machine, and the m2</DIV>
<DIV>I am running is a 32 bit version. But it runs fine in serial on this</DIV>
<DIV>machine.</DIV>
<DIV> </DIV>
<DIV>Thanks for you help,</DIV>
<DIV>Sherry</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>At 08:09 AM 1/4/2010, you wrote:</DIV>
<DIV>>Hi,</DIV>
<DIV>> Open a command prompt with administrator privileges (Right-click</DIV>
<DIV>> on command prompt icon and select "Run as administrator") and use</DIV>
<DIV>> the windows installer from command line to install MPICH2.</DIV>
<DIV>> To uninstall MPICH2 (It is recommended that you uninstall MPICH2</DIV>
<DIV>> before installing a new version) run the following at the command</DIV>
<DIV>> prompt (with admin privileges),</DIV>
<DIV>></DIV>
<DIV>> msiexec /x mpich2-1.2.1-win-ia32.msi</DIV>
<DIV>></DIV>
<DIV>> To install MPICH2 run the following at the command prompt (with</DIV>
<DIV>> admin privileges),</DIV>
<DIV>></DIV>
<DIV>> msiexec /i mpich2-1.2.1-win-ia32.msi</DIV>
<DIV>></DIV>
<DIV>> Let us know if you still have problems.</DIV>
<DIV>></DIV>
<DIV>>(PS: Running msiexec at the command prompt should bring up the GUI</DIV>
<DIV>>for installing MPICH2.)</DIV>
<DIV>></DIV>
<DIV>>Regards,</DIV>
<DIV>>Jayesh</DIV>
<DIV>></DIV>
<DIV>>----- Original Message -----</DIV>
<DIV>>From: "Sherry Frese" <<A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A>></DIV>
<DIV>>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>>Sent: Monday, December 28, 2009 9:54:42 AM GMT -06:00 US/Canada Central</DIV>
<DIV>>Subject: [mpich-discuss] smpd on windows 7</DIV>
<DIV>></DIV>
<DIV>>I have been using MPICH2 on Windows XP (as well as under linux) for</DIV>
<DIV>>over 2 years.</DIV>
<DIV>></DIV>
<DIV>>I am now moving to Windows 7 on a new PC. I have downloaded and</DIV>
<DIV>>installed the most recent MPICH2 for Windows and the install appears</DIV>
<DIV>>to have been OK. However, the smpd refuses to install as a</DIV>
<DIV>>service. smpd never shows up in the Task Manager's list of</DIV>
<DIV>>services. I have run 'sc //hostname query smpd', and it says the</DIV>
<DIV>>'specified service does not exist as an installed service'.</DIV>
<DIV>></DIV>
<DIV>>I have redone the full install several times, under 2 different admin</DIV>
<DIV>>accounts (one of them named 'administator'). I have tried the</DIV>
<DIV>>explicit smpd -install as well (varying accounts, directory</DIV>
<DIV>>locations. etc.), and routinely receive the message:</DIV>
<DIV>></DIV>
<DIV>>OpenSCManager Failed:</DIV>
<DIV>>Access is denied. (error 5)</DIV>
<DIV>>Unable to remove the previous installation, install failed.</DIV>
<DIV>></DIV>
<DIV>>If I try smpd -uninstall, I get the same OpenSCManager Failed... message.</DIV>
<DIV>></DIV>
<DIV>>Any advice would be greatly appreciated</DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>>----------------------------</DIV>
<DIV>>Sherry Frese</DIV>
<DIV>></DIV>
<DIV>>_______________________________________________</DIV>
<DIV>>mpich-discuss mailing list</DIV>
<DIV>&<A href="mailto:amp;gt;mpich-discuss@mcs.anl.gov">amp;gt;mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV>>_______________________________________________</DIV>
<DIV>>mpich-discuss mailing list</DIV>
<DIV>&<A href="mailto:amp;gt;mpich-discuss@mcs.anl.gov">amp;gt;mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV>----------------------------</DIV>
<DIV>Sherry Frese</DIV>
<DIV>NumerEx</DIV>
<DIV>505-828-9050</DIV>
<DIV>NOTE NEW EMAIL ADDRESS - <A href="mailto:Sherry.Frese@NumerEx-LLC.com">Sherry.Frese@NumerEx-LLC.com</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 5</DIV>
<DIV>Date: Mon, 04 Jan 2010 09:31:41 -0700</DIV>
<DIV>From: Sherry Frese <<A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A>></DIV>
<DIV>Subject: Re: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista</DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Message-ID: <<A href="mailto:6.2.5.6.2.20100104092725.02c87018@Numerex-LLC.com">6.2.5.6.2.20100104092725.02c87018@Numerex-LLC.com</A>></DIV>
<DIV>Content-Type: text/plain; charset="us-ascii"; format=flowed</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Unfortunately my applications are both C and Fortran. But so far</DIV>
<DIV>I've been able to compile and link (using the MPICH2 libraries)</DIV>
<DIV>on my windows 7 machine. I just can't run under mpiexec. (I've</DIV>
<DIV>tried executables built on the windows 7 machine & older</DIV>
<DIV>executables built under XP with the same results).</DIV>
<DIV> </DIV>
<DIV>I'll wait to hear from you.</DIV>
<DIV> </DIV>
<DIV>--Sherry</DIV>
<DIV> </DIV>
<DIV>At 09:12 AM 1/4/2010, you wrote:</DIV>
<DIV>>Hi,</DIV>
<DIV>> Let me take a look at this and get back to you.</DIV>
<DIV>> Meanwhile, if you are planning to work with C/C++ MPI programs</DIV>
<DIV>> (not fortran MPI programs) you can install MPICH2 on windows and</DIV>
<DIV>> use the gcc libs (you can even compile/link directly with the</DIV>
<DIV>> windows mpi libraries with gcc) provided with the installation.</DIV>
<DIV>></DIV>
<DIV>>(PS: To install MPICH2 on Vista/windows_7 type "msiexec /i</DIV>
<DIV>>mpich2-1.2.1-win-ia32.msi" from an administrator command prompt.</DIV>
<DIV>>Right-click on the command prompt icon and select "Run as</DIV>
<DIV>>administrator" to run a command prompt with admin privileges.</DIV>
<DIV>>Similarly to uninstall MPICH2 type "msiexec /x mpich2-1.2.1-win-ia32.msi".)</DIV>
<DIV>>Regards,</DIV>
<DIV>>Jayesh</DIV>
<DIV>>----- Original Message -----</DIV>
<DIV>>From: "gustav" <<A href="mailto:gustav@indiana.edu">gustav@indiana.edu</A>></DIV>
<DIV>>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>>Sent: Thursday, December 24, 2009 7:54:06 AM GMT -06:00 US/Canada Central</DIV>
<DIV>>Subject: [mpich-discuss] mpich2-1.2.1 on Cygwin/Vista</DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>>Well, it works. Finally. But with one little snag--see below.</DIV>
<DIV>></DIV>
<DIV>> System: Windows Longhorn/Vista (not yet supported!) Ver 6.0</DIV>
<DIV>> Build 6002 Service Pack 2</DIV>
<DIV>> uname: CYGWIN_NT-6.0-WOW64 Crawley 1.5.25(0.156/4/2)</DIV>
<DIV>> 2008-06-12 19:34 i686 Cygwin</DIV>
<DIV>> CPU: AMD Phenom X4 9550</DIV>
<DIV>> gcc: gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)</DIV>
<DIV>> MPI: mpich2-1.2.1</DIV>
<DIV>> config: ./configure --prefix=/home/gustav/mpich2-1.2.1</DIV>
<DIV>> --disable-sharedlibs --enable-timer-type=gettimeofday</DIV>
<DIV>> --with-device=ch3:ssm --with-thread-package=pthreads</DIV>
<DIV>></DIV>
<DIV>>An important step that must be emphasized for Cygwin users is that to</DIV>
<DIV>>enable XSI IPCs (this activates shared memory too) Cygserver must be</DIV>
<DIV>>run on the machine. See /usr/share/doc/Cygwin/cygserver.README for</DIV>
<DIV>>more info. Also, the CYGWIN environmental variable must be set to</DIV>
<DIV>>"server". This is described in the doc, as well.</DIV>
<DIV>></DIV>
<DIV>>With all this done and MPI compiled and installed, it works for a user</DIV>
<DIV>>with admin privileges. Here's a brief demo:</DIV>
<DIV>></DIV>
<DIV>> root@Crawley 515 # echo $CYGWIN</DIV>
<DIV>> server</DIV>
<DIV>> root@Crawley 516 # which mpdboot</DIV>
<DIV>> /home/gustav/mpich2-1.2.1/bin/mpdboot</DIV>
<DIV>> root@Crawley 517 # mpdboot --ncpus=4 --verbose</DIV>
<DIV>> running mpdallexit on Crawley</DIV>
<DIV>> LAUNCHED mpd on Crawley via</DIV>
<DIV>> RUNNING: mpd on Crawley</DIV>
<DIV>> root@Crawley 518 # mpirun -np 4 hostname</DIV>
<DIV>> Crawley</DIV>
<DIV>> Crawley</DIV>
<DIV>> Crawley</DIV>
<DIV>> Crawley</DIV>
<DIV>> root@Crawley 519 # mpirun -np 4 /home/gustav/src/MPI-tests/hellow2.exe</DIV>
<DIV>> Crawley: hello world from process 0 of 4</DIV>
<DIV>> Crawley: hello world from process 1 of 4</DIV>
<DIV>> Crawley: hello world from process 2 of 4</DIV>
<DIV>> Crawley: hello world from process 3 of 4</DIV>
<DIV>> root@Crawley 520 # mpdallexit</DIV>
<DIV>> root@Crawley 521 #</DIV>
<DIV>></DIV>
<DIV>>Alas, there is a little snag. User "root" has admin privileges. User</DIV>
<DIV>>"gustav" does not. And here is what happens when this hapless</DIV>
<DIV>>individual attempts the same:</DIV>
<DIV>></DIV>
<DIV>> gustav@Crawley 556 $ echo $CYGWIN</DIV>
<DIV>> server</DIV>
<DIV>> gustav@Crawley 557 $ mpdboot --ncpus=4 --verbose</DIV>
<DIV>> running mpdallexit on Crawley</DIV>
<DIV>> LAUNCHED mpd on Crawley via</DIV>
<DIV>> RUNNING: mpd on Crawley</DIV>
<DIV>> gustav@Crawley 558 $ mpirun -np 4 hostname</DIV>
<DIV>> Crawley</DIV>
<DIV>> Crawley</DIV>
<DIV>> Crawley</DIV>
<DIV>> Crawley</DIV>
<DIV>> gustav@Crawley 559 $ mpirun -np 4 /home/gustav/src/MPI-tests/hellow2</DIV>
<DIV>exe</DIV>
<DIV>> Assertion failed in file mpidi_pg.c at line 277: ((pg)->ref_count) ==</DIV>
<DIV>0</DIV>
<DIV>> internal ABORT - process 0</DIV>
<DIV>> [cli_0]: aborting job:</DIV>
<DIV>> internal ABORT - process 0</DIV>
<DIV>> rank 0 in job 2 Crawley_50796 caused collective abort of all ranks</DIV>
<DIV>> exit status of rank 0: killed by signal 9</DIV>
<DIV>> gustav@Crawley 560 $ mpdallexit</DIV>
<DIV>> gustav@Crawley 561 $</DIV>
<DIV>></DIV>
<DIV>>On the other hand, this little non-MPI program that tests shared memory</DIV>
<DIV>>stuff still works for the non-admin user:</DIV>
<DIV>></DIV>
<DIV>> gustav@Crawley 563 $ cat shm.c</DIV>
<DIV>> #include <stdio.h></DIV>
<DIV>> #include <sys/types.h></DIV>
<DIV>> #include <sys/ipc.h></DIV>
<DIV>> #include <sys/shm.h></DIV>
<DIV>></DIV>
<DIV>> int main(int argc, char *argv[])</DIV>
<DIV>> {</DIV>
<DIV>> int shmid;</DIV>
<DIV>></DIV>
<DIV>> if((shmid = shmget(IPC_PRIVATE, 1, IPC_CREAT)) == -1){</DIV>
<DIV>> perror("shmget");</DIV>
<DIV>> }</DIV>
<DIV>> shmctl(shmid, IPC_RMID, NULL);</DIV>
<DIV>> }</DIV>
<DIV>></DIV>
<DIV>> gustav@Crawley 564 $ cc -o shm shm.c</DIV>
<DIV>> gustav@Crawley 565 $ ./shm</DIV>
<DIV>> gustav@Crawley 566 $ echo $?</DIV>
<DIV>> 0</DIV>
<DIV>> gustav@Crawley 567 $</DIV>
<DIV>></DIV>
<DIV>>Question: Why can't the non-admin user execute the MPI program?</DIV>
<DIV>></DIV>
<DIV>>Greetings to all,</DIV>
<DIV>></DIV>
<DIV>>--</DIV>
<DIV>>Zdzislaw (Gustav) Meglicki, Office of the Vice President for Information</DIV>
<DIV>>Technology, Indiana University, 601 E. Kirkwood Ave., Room 116,</DIV>
<DIV>>Bloomington, IN 47405-1223, USA, <A href="http://perth.ovpit.indiana.edu/gustav">http://perth.ovpit.indiana.edu/gustav</A>,</DIV>
<DIV>>Ph: 812-856-5597 (o), 812-345-3284 (m), Fax: 812-855-3310/812-856-3147,</DIV>
<DIV>></DIV>
<DIV>>_______________________________________________</DIV>
<DIV>>mpich-discuss mailing list</DIV>
<DIV>&<A href="mailto:amp;gt;mpich-discuss@mcs.anl.gov">amp;gt;mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV>>_______________________________________________</DIV>
<DIV>>mpich-discuss mailing list</DIV>
<DIV>&<A href="mailto:amp;gt;mpich-discuss@mcs.anl.gov">amp;gt;mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV>----------------------------</DIV>
<DIV>Sherry Frese</DIV>
<DIV>NumerEx</DIV>
<DIV>505-828-9050</DIV>
<DIV>NOTE NEW EMAIL ADDRESS - <A href="mailto:Sherry.Frese@NumerEx-LLC.com">Sherry.Frese@NumerEx-LLC.com</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>Message: 6</DIV>
<DIV>Date: Mon, 4 Jan 2010 10:36:47 -0600 (CST)</DIV>
<DIV>From: <A href="mailto:jayesh@mcs.anl.gov">jayesh@mcs.anl.gov</A></DIV>
<DIV>Subject: Re: [mpich-discuss] smpd on windows 7</DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Cc: <A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A></DIV>
<DIV>Message-ID: <<A href="mailto:1247911.587581262623007296.JavaMail.root@zimbra">1247911.587581262623007296.JavaMail.root@zimbra</A>></DIV>
<DIV>Content-Type: text/plain; charset=utf-8</DIV>
<DIV> </DIV>
<DIV>Hi,</DIV>
<DIV> Can you see MPICH2 process manager in the list of services (Look at</DIV>
<DIV>Control Panel\System and Security\Administrative Tools\Services)? Also check</DIV>
<DIV>the status of the service (Is it started ?)?</DIV>
<DIV> You don't have to supply the "-localonly" flag to run MPI processes on the</DIV>
<DIV>local machine. MPICH2 by default launches the processes on the local machine</DIV>
<DIV>("mpiexec -n 1 m2" should launch m2 on the local machine).</DIV>
<DIV> Can you run a simple non-MPI program (mpiexec -n 2 hostname)?</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Jayesh</DIV>
<DIV>----- Original Message -----</DIV>
<DIV>From: "Sherry Frese" <<A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A>></DIV>
<DIV>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>Sent: Monday, January 4, 2010 10:16:45 AM GMT -06:00 US/Canada Central</DIV>
<DIV>Subject: Re: [mpich-discuss] smpd on windows 7</DIV>
<DIV> </DIV>
<DIV>Jayesh,</DIV>
<DIV> </DIV>
<DIV>Thanks for the response, but it still does not work.</DIV>
<DIV> </DIV>
<DIV>Previously I had just been executing the .msi file from my admin</DIV>
<DIV>account. This time I uninstalled (which said it was successful) and</DIV>
<DIV>then installed the MPICH2, using msiexec from the command line as you</DIV>
<DIV>suggested. The GUI came up, and all seemed fine (I kept the default</DIV>
<DIV>smpd password and installed for all users). And indeed, as before I</DIV>
<DIV>have all the MPICH2 directories and files in my Program File (x86)</DIV>
<DIV>directory. However the smpd service is not being installed.</DIV>
<DIV> </DIV>
<DIV>I've checked on the Task manager - it's not there.</DIV>
<DIV>I tried sc \\hostname query smpd and it now says</DIV>
<DIV> </DIV>
<DIV>[SC] EnumQueryServicesStatus: OpenService FAILED 1060:</DIV>
<DIV>The specified service does not exist as an installed service.</DIV>
<DIV> </DIV>
<DIV>My parallel executable is called m2. When I try</DIV>
<DIV> </DIV>
<DIV> mpiexec -n 1 -localonly m2</DIV>
<DIV> </DIV>
<DIV>I get a request for the smpd passphrase , which I supply.</DIV>
<DIV> </DIV>
<DIV>mpiexec (I assume) then comes back with</DIV>
<DIV> </DIV>
<DIV>Unknown option : -d</DIV>
<DIV>missing numproc flag: -n , -np, -hosts, or -localonly</DIV>
<DIV>Unable to parse mipexec command arguments</DIV>
<DIV>ReadFile() Failed, error 109</DIV>
<DIV>unable to start the local smpd manager</DIV>
<DIV> </DIV>
<DIV>I get the same response if I try mpiexec -n 2</DIV>
<DIV>-localonly m2 or mpiexec -localonly 1 m2 .</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I'm pretty sure that the problem is that the smpd service is not</DIV>
<DIV>being installed.</DIV>
<DIV> </DIV>
<DIV>One additional piece of info. This is a 64 bit machine, and the m2</DIV>
<DIV>I am running is a 32 bit version. But it runs fine in serial on this</DIV>
<DIV>machine.</DIV>
<DIV> </DIV>
<DIV>Thanks for you help,</DIV>
<DIV>Sherry</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>At 08:09 AM 1/4/2010, you wrote:</DIV>
<DIV>>Hi,</DIV>
<DIV>> Open a command prompt with administrator privileges (Right-click</DIV>
<DIV>> on command prompt icon and select "Run as administrator") and use</DIV>
<DIV>> the windows installer from command line to install MPICH2.</DIV>
<DIV>> To uninstall MPICH2 (It is recommended that you uninstall MPICH2</DIV>
<DIV>> before installing a new version) run the following at the command</DIV>
<DIV>> prompt (with admin privileges),</DIV>
<DIV>></DIV>
<DIV>> msiexec /x mpich2-1.2.1-win-ia32.msi</DIV>
<DIV>></DIV>
<DIV>> To install MPICH2 run the following at the command prompt (with</DIV>
<DIV>> admin privileges),</DIV>
<DIV>></DIV>
<DIV>> msiexec /i mpich2-1.2.1-win-ia32.msi</DIV>
<DIV>></DIV>
<DIV>> Let us know if you still have problems.</DIV>
<DIV>></DIV>
<DIV>>(PS: Running msiexec at the command prompt should bring up the GUI</DIV>
<DIV>>for installing MPICH2.)</DIV>
<DIV>></DIV>
<DIV>>Regards,</DIV>
<DIV>>Jayesh</DIV>
<DIV>></DIV>
<DIV>>----- Original Message -----</DIV>
<DIV>>From: "Sherry Frese" <<A href="mailto:Sherry.Frese@Numerex-LLC.com">Sherry.Frese@Numerex-LLC.com</A>></DIV>
<DIV>>To: <A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>>Sent: Monday, December 28, 2009 9:54:42 AM GMT -06:00 US/Canada Central</DIV>
<DIV>>Subject: [mpich-discuss] smpd on windows 7</DIV>
<DIV>></DIV>
<DIV>>I have been using MPICH2 on Windows XP (as well as under linux) for</DIV>
<DIV>>over 2 years.</DIV>
<DIV>></DIV>
<DIV>>I am now moving to Windows 7 on a new PC. I have downloaded and</DIV>
<DIV>>installed the most recent MPICH2 for Windows and the install appears</DIV>
<DIV>>to have been OK. However, the smpd refuses to install as a</DIV>
<DIV>>service. smpd never shows up in the Task Manager's list of</DIV>
<DIV>>services. I have run 'sc //hostname query smpd', and it says the</DIV>
<DIV>>'specified service does not exist as an installed service'.</DIV>
<DIV>></DIV>
<DIV>>I have redone the full install several times, under 2 different admin</DIV>
<DIV>>accounts (one of them named 'administator'). I have tried the</DIV>
<DIV>>explicit smpd -install as well (varying accounts, directory</DIV>
<DIV>>locations. etc.), and routinely receive the message:</DIV>
<DIV>></DIV>
<DIV>>OpenSCManager Failed:</DIV>
<DIV>>Access is denied. (error 5)</DIV>
<DIV>>Unable to remove the previous installation, install failed.</DIV>
<DIV>></DIV>
<DIV>>If I try smpd -uninstall, I get the same OpenSCManager Failed... message.</DIV>
<DIV>></DIV>
<DIV>>Any advice would be greatly appreciated</DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>>----------------------------</DIV>
<DIV>>Sherry Frese</DIV>
<DIV>></DIV>
<DIV>>_______________________________________________</DIV>
<DIV>>mpich-discuss mailing list</DIV>
<DIV>&<A href="mailto:amp;gt;mpich-discuss@mcs.anl.gov">amp;gt;mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV>>_______________________________________________</DIV>
<DIV>>mpich-discuss mailing list</DIV>
<DIV>&<A href="mailto:amp;gt;mpich-discuss@mcs.anl.gov">amp;gt;mpich-discuss@mcs.anl.gov</A></DIV>
<DIV>><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV>----------------------------</DIV>
<DIV>Sherry Frese</DIV>
<DIV>NumerEx</DIV>
<DIV>505-828-9050</DIV>
<DIV>NOTE NEW EMAIL ADDRESS - <A href="mailto:Sherry.Frese@NumerEx-LLC.com">Sherry.Frese@NumerEx-LLC.com</A></DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list</DIV>
<DIV><A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list</DIV>
<DIV><A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>End of mpich-discuss Digest, Vol 16, Issue 1</DIV>
<DIV>********************************************</DIV>
<DIV>-------------- next part --------------</DIV>
<DIV>An HTML attachment was scrubbed...</DIV>
<DIV>URL: <<A href="http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100104/ac6edae5/attachment.htm">http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100104/ac6edae5/attachment.htm</A>></DIV>
<DIV> </DIV>
<DIV>------------------------------</DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list</DIV>
<DIV><A href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A></DIV>
<DIV><A href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>End of mpich-discuss Digest, Vol 16, Issue 2</DIV>
<DIV>********************************************</DIV></DIV></TD></TR>
<TR>
<TD id=INCREDIFOOTER width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="100%"></TD>
<TD id=INCREDISOUND vAlign=bottom align=middle></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>