Install MPI in each node server
http://mpitutorial.com/tutorials/installing-mpich2/
Run hello world.
这里只是简单的把编译程序复制到用户的 home 目录下,然后执行。
1 | # replace hello.c with your own source code file name |
1 | // Author: Wes Kendall |
使用 hostfile 文件
1 | # This is an example hostfile. Comments begin with # |
1 | mpirun -np 20 --hostfile hostfile ./hello |