从Visual Studio 2013运行MPI应用程序 [英] Running MPI application from Visual Studio 2013

查看:153
本文介绍了从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.

这篇关于从Visual Studio 2013运行MPI应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆