Ubuntu 12.04和MPICH性能

时间:2021-10-08 19:01:00

I am trying to install mpich-3.1 in a linux cluster (Ubuntu 12.04 running on all machines). Previously I installed mpich2 by sudo apt-get install mpich2 but couldn't find how to run tests. Then I removed with sudo apt-get remove mpich2.

我试图在linux集群中安装mpich-3.1(在所有机器上运行的Ubuntu 12.04)。以前我用sudo apt-get install mpich2安装了mpich2但是找不到如何运行测试。然后我用sudo apt-get删除了mpich2。

So I decided to upgrade to 3.1. I downloaded and installed mpich following instructions at https://www.mpich.org/static/downloads/3.1/mpich-3.1-installguide.pdf by running:

所以我决定升级到3.1。我按照以下说明下载并安装了mpich:https://www.mpich.org/static/downloads/3.1/mpich-3.1-installguide.pdf:

sudo ./configure -prefix=/usr/local/mpich/

sudo ./configure -prefix = / usr / local / mpich /

sudo make

sudo make

sudo make install

sudo make install

and apparently is properly installed. If I run

并且显然已正确安装。如果我跑

meteo@ventus:~/RAMS/RUN$ /usr/local/mpich/bin/mpiexec -f machinefile -n 20 hostname
ventus
ventus
ventus
ventus
ventus4
ventus4
ventus4
ventus4
ventus5
ventus5
ventus5
ventus5
ventus2
ventus2
ventus2
ventus2
ventus3
ventus3
ventus3
ventus3

Although I find it is responding "slowly". Where machinefile is

虽然我发现它“慢慢”响应。 machinefile在哪里

ventus:4
ventus2:4
ventus3:4
ventus4:4
ventus5:4

The directory is exported to all nodes in the cluster, /etc/exports

该目录将导出到群集中的所有节点/ etc / exports

/usr/local/mpich 192.168.1.0/24(rw,sync)

In /etc/mtab ant /etc/fstab in node ventus4

在节点ventus4中的/ etc / mtab ant / etc / fstab中

ventus:/usr/local/mpich /usr/local/mpich nfs rw,vers=4,addr=192.168.1.1,clientaddr=192.168.1.4 0 0

ventus:/usr/local/mpich /usr/local/mpich   nfs

Maybe the problem comes from a prior install not completely removed

也许问题来自先前的安装没有完全删除

meteo@ventus:~$ which mpiexec
/usr/local/bin/mpiexec
meteo@ventus:~$ which mpirun
/usr/local/bin/mpirun
meteo@ventus:~$ which mpicc
/usr/local/bin/mpicc

Following installation instructions which mpiexec should point to mpich installation bin directory /usr/local/mpich/bin/mpiexec

以下安装说明mpiexec应指向mpich安装bin目录/ usr / local / mpich / bin / mpiexec

But if I move /usr/local/bin/mpiexec to /usr/local/bin/mpiexec.old

但是,如果我将/ usr / local / bin / mpiexec移动到/usr/local/bin/mpiexec.old

then

然后

meteo@ventus:~$ which mpiexec
/usr/local/mpich/bin/mpiexec

points to my new mpich3 install directory. Could this be the reason of that slow performance? Which test should I run for benchmarking? How do I completely remove mpich2.

指向我的新mpich3安装目录。这可能是性能缓慢的原因吗?我应该运行哪个测试进行基准测试?我如何完全删除mpich2。

1 个解决方案

#1


1  

If you do in fact have root access to your entire machine, then you can always just delete all of the binaries, libraries, headers, etc. I'm not sure where everything is installed on your system (it's different everywhere), but the usual locations are /usr/local/bin, /usr/local/include, /usr/local/lib, etc. You should look for these files (or things that look similar:

如果你确实拥有对整个机器的root访问权限,那么你总是可以删除所有的二进制文件,库,标题等。我不确定你的系统上安装了什么(它在各处都是不同的),但是通常的位置是/ usr / local / bin,/ usr / local / include,/ usr / local / lib等。您应该查找这些文件(或类似的东西:

bin/:

斌/:

  • Anything that starts with mpi
  • 任何以mpi开头的东西

include/:

包括/:

  • Anything that starts with mpi
  • 任何以mpi开头的东西
  • Anything that starts with opa
  • 任何以opa开头的东西

lib/:

LIB /:

  • Anything that includes mpich
  • 任何包括mpich的东西
  • Anything that includes mpl
  • 任何包括mpl的东西
  • Anything that includes opa
  • 任何包括opa的东西

Beyond that, there's not much that would interfere (there's man pages somewhere too, but that's fine). If you delete all of those files, you should have gotten rid of your MPICH2 installation. This really should have been cleaned up with you did your apt-get uninstall, but that's neither here nor there...

除此之外,没有太多会干扰(也有人的页面,但那很好)。如果删除所有这些文件,您应该已经摆脱了MPICH2的安装。你应该用你的apt-get卸载来清理它,但这既不是在这里也不是......

Now, to test your new MPICH installation (the project is called MPICH now, not MPICH3), there are lots of MPI benchmarks. I'd suggest typing mpi benchmarks into your favorite search engine any trying out a few of the ones that you find. If you want to compare, you can install a few different versions of MPI. When you do this, make sure you are correctly setting up your PATH and LD_LIBRARY_PATH environment variables so your installations can sit side by side.

现在,为了测试新的MPICH安装(该项目现在称为MPICH,而不是MPICH3),有许多MPI基准测试。我建议你在你最喜欢的搜索引擎中输入mp​​i基准测试,然后尝试一些你找到的基准测试。如果要进行比较,可以安装几个不同版本的MPI。执行此操作时,请确保正确设置PATH和LD_LIBRARY_PATH环境变量,以便您的安装可以并排放置。

#1


1  

If you do in fact have root access to your entire machine, then you can always just delete all of the binaries, libraries, headers, etc. I'm not sure where everything is installed on your system (it's different everywhere), but the usual locations are /usr/local/bin, /usr/local/include, /usr/local/lib, etc. You should look for these files (or things that look similar:

如果你确实拥有对整个机器的root访问权限,那么你总是可以删除所有的二进制文件,库,标题等。我不确定你的系统上安装了什么(它在各处都是不同的),但是通常的位置是/ usr / local / bin,/ usr / local / include,/ usr / local / lib等。您应该查找这些文件(或类似的东西:

bin/:

斌/:

  • Anything that starts with mpi
  • 任何以mpi开头的东西

include/:

包括/:

  • Anything that starts with mpi
  • 任何以mpi开头的东西
  • Anything that starts with opa
  • 任何以opa开头的东西

lib/:

LIB /:

  • Anything that includes mpich
  • 任何包括mpich的东西
  • Anything that includes mpl
  • 任何包括mpl的东西
  • Anything that includes opa
  • 任何包括opa的东西

Beyond that, there's not much that would interfere (there's man pages somewhere too, but that's fine). If you delete all of those files, you should have gotten rid of your MPICH2 installation. This really should have been cleaned up with you did your apt-get uninstall, but that's neither here nor there...

除此之外,没有太多会干扰(也有人的页面,但那很好)。如果删除所有这些文件,您应该已经摆脱了MPICH2的安装。你应该用你的apt-get卸载来清理它,但这既不是在这里也不是......

Now, to test your new MPICH installation (the project is called MPICH now, not MPICH3), there are lots of MPI benchmarks. I'd suggest typing mpi benchmarks into your favorite search engine any trying out a few of the ones that you find. If you want to compare, you can install a few different versions of MPI. When you do this, make sure you are correctly setting up your PATH and LD_LIBRARY_PATH environment variables so your installations can sit side by side.

现在,为了测试新的MPICH安装(该项目现在称为MPICH,而不是MPICH3),有许多MPI基准测试。我建议你在你最喜欢的搜索引擎中输入mp​​i基准测试,然后尝试一些你找到的基准测试。如果要进行比较,可以安装几个不同版本的MPI。执行此操作时,请确保正确设置PATH和LD_LIBRARY_PATH环境变量,以便您的安装可以并排放置。