| 查看: 218 | 回复: 1 | |||
| 当前主题已经存档。 | |||
dzhijie金虫 (正式写手)
学生
|
[交流]
【求助】VASP下mpich2-1.1-lubuntu_amd64 安装问题
|
||
|
如题。 mpich2-1.1-lubuntu_amd64.deb成功解压后的得到三个文件: control.tar.gz ;data.tar.gz ;debian-binary。没了,就三个,请问接下来怎样安装MPI? |
» 猜你喜欢
真诚求助:手里的省社科项目结项要求主持人一篇中文核心,有什么渠道能发核心吗
已经有8人回复
寻求一种能扛住强氧化性腐蚀性的容器密封件
已经有5人回复
论文投稿,期刊推荐
已经有6人回复
请问哪里可以有青B申请的本子可以借鉴一下。
已经有4人回复
孩子确诊有中度注意力缺陷
已经有14人回复
请问下大家为什么这个铃木偶联几乎不反应呢
已经有5人回复
请问有评职称,把科研教学业绩算分排序的高校吗
已经有5人回复
2025冷门绝学什么时候出结果
已经有3人回复
天津工业大学郑柳春团队欢迎化学化工、高分子化学或有机合成方向的博士生和硕士生加入
已经有4人回复
康复大学泰山学者周祺惠团队招收博士研究生
已经有6人回复

qphll
金虫 (正式写手)
- 应助: 18 (小学生)
- 金币: 2708.7
- 散金: 2294
- 红花: 8
- 帖子: 554
- 在线: 227.1小时
- 虫号: 89654
- 注册: 2005-08-29
- 性别: GG
- 专业: 碳素材料与超硬材料
★ ★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
spur(金币+3,VIP+0): 3Q!!谢谢帮助!欢迎常来! 7-1 12:24
小木虫(金币+0.5):给个红包,谢谢回帖交流
spur(金币+3,VIP+0): 3Q!!谢谢帮助!欢迎常来! 7-1 12:24
|
干脆直接安装原包吧,不要去捣鼓预编译包了. here you go: **这里的路径只是给你参考,按照自己需要修改啦. 在ubuntu 下,不能su成root, 在执行命令前加 sudo 即可。 1. sudo cp mpich2-1.0.3.tar.gz /usr/local/share/ cd /usr/local/share 2. unzip the file sudo tar xzvf mpich2-1.0.3.tar.gz cd mpich2-1.0.3 3. 默认安装 (install as default) I installed mpich2-1.0.3 on my computer with an ubuntu operating system. sudo ./configure sudo make sudo make install 这样我有了一个单机模拟多个cpu的并行环境。 But you can not compile f77 code, please use the following command 没有 fortran 编译命令 mpif77 . 下面的安装有 mpif77 , 可以编译fortran 程序。 sudo make clean sudo ./configure --enable-f77 sudo make sudo make install 4. go to your home directory cd ~/ 5. finish installing mpich, and then you can write a small code #include "mpi.h" #include int main(){ int rank; int size; MPI_Init(0,0); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &size); std::cout<<"Hello world from process "< MPI_Finalize(); return 0; } 6. compile and link the code mpicxx -o hello.out hello.cpp 7. start the parallel environment ( you have a virtual parallel cluster) 启动并行环境 mpdboot 8. If it is the first time you use the command 'mpdboot', you may see an error message. Please do: cd $HOME touch .mpd.conf chmod 600 .mpd.conf then run the command 'mpdboot' again mpdboot 9. 使用两个 node 运行程序 You can try using two node to run the code mpirun -n 2 ./hello.out Or using the following commands 下列命令也可: mpiexec -n 2 ./hello.out mpiexec -np 2 ./hello.out mpirun -np 2 ./hello.out 输出的结果 The output will be Hello world from process 0 of 2 Hello world from process 1 of 2 10. If you want to stop the parallel environment 想停止并行运行环境 mpdcleanup 11. There are other commands, and you can use 'man ' to see the help. 下面是其他的命令 mpdexit mpdringtest mpiexec mpartition mpd mpdroot mpif77 mpdallexit mpdhelp mpdrun mpirun mpdboot mpdkilljob mpdsigjob mplex mpost mpdcheck mpdtrace mpto mpdlistjobs mptopdf mpicc mpdcleanup mpich2version mpicxx |

2楼2009-07-01 11:21:55













回复此楼