如何在visual studio中提供mpi命令行参数 [英] How to give mpi command line arguments in visual studio

查看:234
本文介绍了如何在visual studio中提供mpi命令行参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们我想知道有没有办法在visual studio中使用命令行参数给出mpi命令,因为我需要调试程序

Hey guys I wanted to know is there a way to give mpi commands using the command line arguments in visual studio because I need to debug the program

推荐答案

Take看一下这个帖子:通过MPI命令行传递参数 [ ^ ]



Take a look at this thread: Passing arguments via command line with MPI[^]

引用:

在Linux / Windows / Mac OSX上的大多数MPI实现中,你调用MPI_Init(& argc,& argv),修改参数列表,就好像你已经将序列问题作为程序10 10运行一样;它将参数列表放到可执行文件中,这可能包含mpirun命令本身的任意数量的选项。



标准没有指定这个;标准留下了很多关于启动进程和初始化过程的事情,因为MPI必须处理与POSIX类型系统行为非常不同的系统。但我从来没有在POSIX类型的环境中看到过没有这样做的MPI实现。

In most MPI implementations on Linux/Windows/Mac OSX, when you call MPI_Init(&argc, &argv), the argument list is modified just as if you had run the serial problem as program 10 10; it eats the argument list up to the executable, which can potentially contain any number of options to the mpirun command itself.

The standard doesn't specify this; the standard leaves a lot of things about launching processes and the initialization process somewhat vague, as MPI has to work on systems that behave very differently than POSIX-type systems. But I've never seen an MPI implementation in a POSIX-type environment that doesn't do this.


这篇关于如何在visual studio中提供mpi命令行参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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