<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><br>Akshar bhosale wrote:&nbsp;<div><br>&gt;When i do:</div><div>&gt;<br>&gt;/usr/local/mpich-1.2.6/bin/mpicc -o test test.c ,i get test ;but when i do<br>&gt;/usr/local/mpich-1.2.6/bin/mpirun -np 4 test,i get</div><div>&gt;<br>&gt;p0_31341: &nbsp;p4_error: Path to program is invalid while starting<br>&gt;/home/npsf/last with rsh on dragon: -1<br>&gt;p4_error: latest msg from perror: No such file or directory&nbsp;error.</div><div>&gt;<br>&gt;please suggest the solution.</div><div><br></div><div>Looks like the directory that your MPI executable 'test' is in is:</div><div><br></div><div>/home/npsf/last</div><div><br></div><div>Correct? &nbsp;This directory needs to be visible on each node used</div><div>by MPI to run your program. &nbsp;You might also need to put a ./ in</div><div>front of the name of the executable, as in ./test . You also need</div><div>be able the 'rsh' to&nbsp;each of those nodes. &nbsp;Because you have not</div><div>specified a 'machines'&nbsp;file, MPI is using the default file in the install</div><div>tree which normally&nbsp;lists the nodes in simple sequence. Still, I</div><div>think the problem option 1 or 2 above.</div><div><br></div><div>rbw&nbsp;</div><div>_______________________________________________<br>Beowulf mailing list, Beowulf@beowulf.org sponsored by Penguin Computing<br>To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf<br></div></div></body></html>