为什么我所有的开放MPI流程都具有等级0? [英] Why Do All My Open MPI Processes Have Rank 0?

查看:254
本文介绍了为什么我所有的开放MPI流程都具有等级0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Open MPI编写 parallel 程序.我正在运行Snow Leopard 10.6.4,并通过 homebrew 程序包管理器安装了Open MPI

I'm writing a parallel program using Open MPI. I'm running Snow Leopard 10.6.4, and I installed Open MPI through the homebrew package manager.

当我使用mpirun -np 8 ./test运行程序时,每个进程都报告它的等级为0,并认为进程总数为1,并且向控制台吐出了8行process rank: 0, total processes: 1.

When I run my program using mpirun -np 8 ./test, every process reports that it has rank 0, and believes the total number of processes to be 1, and 8 lines of process rank: 0, total processes: 1 get spit out to the console.

我知道这不是代码问题,因为完全相同的代码将按预期在我大学计算机实验室的某些Ubuntu计算机上编译并运行.我检查了自制软件的错误跟踪器,没有人报告Open MPI软件包有问题.我很茫然.

I know it's not a code issue, since the exact same code will compile and run as expected on some Ubuntu machines in my college's computer lab. I've checked homebrew's bug tracker, and no-one's reported an issue with the Open MPI package. I'm at a loss.

推荐答案

完全卸载以前的MPI实现.

Uninstall previous MPI implementation completely.

就我而言,我先安装了MPICH2,然后将其卸载,然后更改为OpenMPI.然后发生相同的情况,所有进程的等级均为0.我解决此问题的方法是:从系统中完全卸载MPICH2(我使用Ubuntu/Debian Linux).

In my case I installed MPICH2 first, then uninstalled it, and changed to OpenMPI. Then same case occured, all process' rank were 0. What I did to fix this problem is: uninstall MPICH2 completely from my system (I use Ubuntu/Debian Linux).

# apt-get remove mpich2
# apt-get autoremove

这篇关于为什么我所有的开放MPI流程都具有等级0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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