<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for trying MVAPICH2 and providing this patch
to fix the problem!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'll incorporate this patch to our
svn.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>--Qi</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=xavier.bru@bull.net href="mailto:xavier.bru@bull.net">xb</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=mvapich-discuss@cse.ohio-state.edu
href="mailto:mvapich-discuss@cse.ohio-state.edu">mvapich-discuss@cse.ohio-state.edu</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 02, 2007 8:09
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [mvapich-discuss] mpiexec_cr
(small) issue</DIV>
<DIV><BR></DIV>Hello all,<BR><BR>Trying to run mpiexec with cr enabled, I hit
a (small) problem where running mpiexec without specifying a path to the
command, I get a "command line too long" message. Command works OK if we
specify a path before the command name.<BR>Hereafter a patch that fixes this
(small) problem.<BR><BR>xavier<BR><BR><BR>traces
----------------------------------------------------------------------------------<BR><TT><I><BR>#
mpiexec -n 2 ./cpi<BR>command line too long<BR>#
/usr/local/mvapich2/bin/mpiexec -n 2 ./cpi<BR>Process 0 of 2 is on
woodcr1<BR>Process 1 of 2 is on woodcr1<BR>pi is approximately
3.1415926544231318, Error is 0.0000000008333387<BR>wall clock time =
0.223271<BR>#<BR>Patched command:<BR># mpiexec -n 2 ./cpi<BR>Process 0 of 2 is
on woodcr1<BR>Process 1 of 2 is on woodcr1<BR>pi is approximately
3.1415926544231318, Error is 0.0000000008333387<BR>wall clock time =
0.224422<BR># <BR><BR></I></TT>Patch
---------------------------------------------------------------------------------------<BR><TT>---
mvapich2-trunk-2007-03-01/src/pm/mpd/mpiexec_cr.c~
2007-02-16 21:17:51.000000000 +0100<BR>+++
mvapich2-trunk-2007-03-01/src/pm/mpd/mpiexec_cr.c 2007-03-02
13:51:11.000000000 +0100<BR>@@ -435,7 +435,8 @@<BR>
CR_Init();<BR> /*replace the command line to
mpiexec*/<BR> rchar =
strrchr(argv[0],'/');<BR>- length =
rchar+1-argv[0];<BR>+ /* strrchr returns NULL if char is not
found */<BR>+ length = rchar ? rchar+1-argv[0] :
0;<BR> if (length+strlen(MPIRUN)>MAX_PATH_LEN)
{<BR> fprintf(stderr,"command
line too long\n");<BR> exit
(1);<BR><BR></TT><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>mvapich-discuss
mailing
list<BR>mvapich-discuss@cse.ohio-state.edu<BR>http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss<BR></BLOCKQUOTE></BODY></HTML>