从Visual Studio 2013运行MPI应用程序
我在Visual Studio 2013下编写了一个简单的MPI应用程序,该应用程序可以很好地进行编译和构建.我在标准笔记本电脑(无群集)上运行Windows 7. 我安装了"Microsoft HPC Pack 2008 R2"以获取正确的MPI东西,并且能够从DOS命令行执行我的应用程序:
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
问题:如何直接从Visual Studio 2013启动此(并行)应用程序?
Question: how to launch this (parallel) application from Visual Studio 2013 directly?
您可以运行,只需在$(MSMPI_BIN)\mpiexec
中设置Command
属性,并在-n 4 "$(TargetPath)"
中设置Command arguments
.如果要对其进行更好的调试,请尝试使用Visual Studio2010.
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.