Running MPI application from Visual Studio 2013

2020-02-29 18:56发布

问题:

I wrote a simple MPI application under Visual Studio 2013 which compiles and builds fine. I'm running Windows 7 on a standard laptop (no cluster). I installed "Microsoft HPC Pack 2008 R2" to get the proper MPI stuff and I've been able to execute my application from a DOS command line:

> mpiexec -n 4 .\testMPI.exe

Question: how to launch this (parallel) application from Visual Studio 2013 directly?

回答1:

You can run, just set Command property in $(MSMPI_BIN)\mpiexec and Command arguments in -n 4 "$(TargetPath)". If you want to debug it better try Visual Studio 2010. Here is op's (probably) repost of this question on microsoft forums.