【发布时间】:2015-06-03 18:48:12
【问题描述】:
我是 MPI 编程的新手。我想在指定数量的内核上运行我的 MPI 程序。我通过输入mpirun --help 引用了帮助选项。它给出了以下输出:
... -c|-np|--np <arg0> Number of processes to run ... -n|--n <arg0> Number of processes to run ...
但是,当我提到this website 时,它在两个不同的地方指定了以下两个不同的东西:
在介绍中:
mpirun 通常是这样工作的
mpirun -np <number of processes> <program name and arguments>
在选项帮助菜单中:
-np <np>
- specify the number of processors to run on
在这种情况下,-np 是否指定要运行的进程数或要运行的处理器数?此外,如何在多台 PC 上运行我的 MPI 程序?
在这方面的任何帮助将不胜感激。
【问题讨论】:
标签: multithreading multiprocessing mpi