Skip to main content

MPICH2 on Windows XP: Launch Failed "error 2 - The system cannot find the file specified"

I had a problem executing a parallel program built with MPICH2 from Argonne National Laboratory. I had been able to use "mpiexec" to execute example codes and my test codes but the followings happened yesterday when I tried to run my "Practice.exe" parallel Hello World code:

The current directory is "t:\", which is a subst drive that maps to "c:\Briefcase\Tmp".
$mpiexec -np 4 "Practice.exe"
launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified.

launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified.

launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified.

launch failed: CreateProcess(Practice.exe) on 'tvs-laptop' failed, error 2 - The system cannot find the file specified.

I spent many hours yesterday trying to find what went wrong but got no luck. This morning, by accident and perhaps serendipity, I tried to execute the code with an absolute (non-subst) path. It works!! Here is the output:
$mpiexec -np 4 c:\Briefcase\Tmp\Practice.exe
[2 of 4] Hello from tvs-laptop
[0 of 4] Hello from tvs-laptop
[3 of 4] Hello from tvs-laptop
[1 of 4] Hello from tvs-laptop

MPI executes parallel codes by making multiple Remote Procedure Calls (RPCs). My guess is that subst drives are created on a per-user session basis and is not accessible when an RPC call is made. That's why using mpiexec when the present working directory is a subst drive doesn't work.

Keywords: , , , ,

Comments

Anonymous said…
Thanks for the tip. I was getting the same error, and found that mpiexec was pointing to the wrong location. Without your tip, I would have spent many more hours staring at the screen.

Popular posts from this blog

Tips: Mac OS X: Full ANSI Color Support in Terminal.app

I'm trying to switch my Java development platform from Windows XP to Mac OS X Tiger. Wondering how to colorize the Terminal screen, I spent some time googling. From the discussions at the end of this page: macosxhints.com - Add full ANSI color support to Terminal.app Here's a summary of how to enable it: With bash shell as default, simply add export TERM=xterm-color [I prefer this for Linux compatibility] or export TERM=dtterm in the ~/.profile (single-user) or /etc/profile (system-wide) Color terminal is enabled. Use ' ls -G ' (the -G enables color output) to test. Add alias ls='ls -G' in the profile file for convenience. Keywords: mac-os-x , unix , terminal , shell , tips

iTunes: Error 261 while Burning Data CDs/DVDs

Apple Discussions: 261 error while burning MP3 CD. I usually put an aphostrophe (') in the name of playlists and was having error 261 burning CD/DVD data discs since iTunes 5.1. Upgrading to iTunes 6.0 for Windows doesn't help. I was burning a music DVD this morning and had Error 261 again. So I went to Apple iTunes Discussions site and look for a thread on this. Viola! There are many people having the same problem as mine. The thread ends at a point where someone removing ampersands, the '&' symbols, from their playlists and could avoid this error. I tried removing aphostrophes from the name of my playlist because aphostrophe falls into the kind of non-alphabet characters that needs escaping in some programming languages. It works!! Keywords: itunes , windows

Microsoft Office Outlook Connector 12.1 Beta 2 Crashes Thai Language Input in Outlook 2007

It's been more than a year since I last blogged. I've been busy with work and also don't know what to blog. Here comes my new findings: Microsoft Office Outlook Connector 12.1 Beta 2 + Outlook 2007 + Thai Language Input = CRASH This has also been proven here . I downloaded the Outlook Connector the other night for improved supports to Windows Live Hotmail -- only to find that whenever I start typing e-mails in Thai, i.e., hit the "language switch" key Outlook simply crashes! I googled for " outlook 2007 crash language switch " this morning and find someone having the same Outlook Connector insta.led and the same problem as mine. So, Outlook Connector is most likely the cause of trouble. I uninstalled Outlook Connector this morning and, yes, typing in Thai doesn't crash Outlook 2007 anymore! Keywords: Outlook , Thailand , Troubleshooting