码迷,mamicode.com
首页 > 其他好文 > 详细

MPI安装步骤

时间:2018-02-12 11:30:08      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:nes   步骤   mpiexec   inux   conf   file   bash   make   ref   

MPICH setup
  1. install same(not must) Linux OS on 2 or more computer
  2. config ssh: master computer should be able to ssh login slave computer without passwd:

    1. run "ssh-keygen -t rsa" on master computer
    2. scp ~/.ssh/id_rsa.pub 192.168.188.130:/home/genesis
    3. ssh 192.168.188.130 -l genesis
    4. cat /home/genesis/id_rsa.pub >> ~/.ssh/authorized_keys
  3. scp -r ~/mpich-install 192.168.188.130:/home/genesis
  4. scp /etc/hosts 192.168.188.130:/home/genesis (make sure both server and client have both server and client hostname)
  5. scp ~/cpi 192.168.188.130:/home/genesis
  6. add /home/genesis/mpich-install/bin to .bashrc on both server and slave computer
  7. mpiexec -n 5 -f machinefile ./cpi

How to make mpich

./configure --prefix=<mpi install location>
make
make install

MPI安装步骤

标签:nes   步骤   mpiexec   inux   conf   file   bash   make   ref   

原文地址:http://blog.51cto.com/lhmlogin/2071276

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!