问题标签 [mpiexec]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1522 浏览

python - 超级计算机:在超级计算机中运行的程序的简单示例

我正在学习如何使用超级计算机来充分利用资源。假设我有一个 python 脚本,它将创建一个具有给定随机数的文本文件。

我的文件.py

这将在本地机器上只创建一个文本文件。
有什么方法可以使用该程序的多个实例,使用多个节点并获得多个输出?

我在 C 程序中得到了一个 mpiexec 的模板,看起来像这样,但是我找不到任何 python 程序的模板。

注意: 在使用多个内核的单个节点上,我可以编写如下 bash 脚本:

但我想利用不同的节点
所需输出: 输出/out1.txt、out2.txt、out3.txt 等

一些相关链接如下:
https://www.osc.edu/sites/osc.edu/files/documentation/Batch%20Training%20-%2020150312%20-%20OSC.pdf
https://www.osc.edu /~kmanalo/多线程提交

0 投票
1 回答
3059 浏览

mpi - -n 和 -np 之间的 Mpiexec 区别?

我是 MPI 世界的新手,有一个问题让我非常恼火。-n 和 -np 之间的真正区别是什么?

0 投票
1 回答
2764 浏览

windows - Intel MPI - mpiexec.exe does not run, only gives a blank screen

I have some problem running mpiexec.exe on my computer. I installed intel parallel studio xe cluster edition on my windows 10 laptop, which includes intel-mpi. Then I registered my mpi following this page:

https://software.intel.com/en-us/get-started-with-mpi-for-windows

and then I configured my visual studio 2013 according to: https://software.intel.com/en-us/node/610381

However, when I compile and run the MPI program (in Fortran), a cmd window pops up but nothing shows up. The I tried to use

directly in a cmd window as administrator, nothing shows up after the execution command. I checked my task manager that my program is not running and the entire window just stays like that forever until I hit Ctrl+C to terminate it.

The same program runs perfectly on my desktop and I configured my desktop using exact the same way. I am really confused about this issue since it does not give any error message but a blank screen. Can anyone help me with this issue?

0 投票
1 回答
2527 浏览

compiler-errors - 在局域网中运行 MPI 集群程序时出错

在 LAN 环境中运行 MPI 集群程序时出错。我在本地 LAN 环境中创建了主客户端和其他客户端。我按照本教程创建一个集群并运行它,在 LAN 中运行 MPI 集群

mpiuser@507-12 :~/cloud/mpich-3.0.4/examples$ mpirun -np 4 -hosts 192.168.100.77, 192.168.100.78 ./icpi

这就是说我们应该在编写命令时使用适当的标签,然后它就会起作用。但是,我尝试了许多通过更改或更改标签来运行它的方法。仍然得到同样的错误。无法弄清楚出了什么问题。请以应有的尊重帮助我。谢谢。

0 投票
0 回答
628 浏览

mpi - 系统找不到 MPI 中指定的路径

我正在编写一个示例程序 MPI,其中一个进程向另一个进程发送一个整数。

这是我的源代码

这是我在 windows cmd 行中运行 mpiexec 时的错误

ERROR: 报错: failed to set work directory to 'D:\study_documents\Thesis\Nam 4\Demo\Sample Codes\MPI_HelloWorld\Debug' on DESKTOP-EKN1RD3 错误 (3) 系统找不到指定的路径。

0 投票
0 回答
181 浏览

windows - Run exe file from other nodes

I have a cluster nodes containing 2 PCs.How can i run specific exe file from one node in other node(for example from node 0). I must run executable file simultaneously for parallel run from command prompt in the first node. But when i run mpiexec -n 2 -ppn 1 -f host.txt c.exe in the first node this error appear. Host file just containing IP addresses of nodes and all exe file are in a same location in all nodes. How can i solve this? Thanks

0 投票
1 回答
3562 浏览

windows - mpiexec - 用户拒绝连接主机的凭据

为了更熟悉 MPI,我在我的 Windows 10 机器上安装了 MS-MPI,然后安装了 mpi4py(python MPI)。我尝试了一个 hello_world 代码:

然后,以管理员身份使用 windows 命令执行以下命令:

我得到:

启动进程所需的用户凭据:帐户(域\用户)[DESKTOP-3CFSBJ8\Hazem]:

我做了一个注册,作为 mpiexec - 从用户名/密码注册,然后再次执行该命令,我收到以下错误:

用户拒绝连接到主机的凭据。

执行命令 mpiexec 时出现问题。

0 投票
0 回答
159 浏览

networking - 将 nohup 用于 lammps 命令

我正在使用 MPICH2 并行运行的远程 Windows 机器上运行 Lammps,但有时,连接断开并且模拟退出。我使用了这个命令,但它不起作用:

它在没有“nohup”的情况下工作。

我在这里想念什么?

0 投票
0 回答
71 浏览

c - 在 MPICH2 中的 Scanf 之后我无法继续

所以我有一个程序,它将一个数组划分为从机的相等数组。我基本上使用 MPI_Scatter 来做到这一点。我还有一个变量,它决定这些数组将发生什么过程。(如 <0 - Sum> <1 - Min> <2 - Avg> <3 - Max>)所以在我的主部分代码中,我必须从用户那里获取一个数字并将其发送给从属。但是在 scanf 程序只是挂起之后。我正在使用 vs 2015 和 MPIEXEC 包装器。

所以在我输入一个数字后它不会继续。如下图。

MPIEXEC 包装器

0 投票
1 回答
168 浏览

python - 将 line_profiler/kernprof 与 mpiexec 一起使用

mpi4py我正在尝试对使用kernprofhttps://github.com/rkern/line_profiler)分析器的 Python 程序进行一些逐行分析。

如果我只是以正常方式运行脚本:

一切似乎都正常,但当然只运行 MPI 程序的单个实例(等级 = 0)。因此,我想运行它以运行mpiexec更多进程,但如果我在mpiexec程序中运行分析器,则只会运行并且不会产生分析信息:

有没有人有kernprof在 MPI 程序上运行的经验?