Fortran MPI queries---urgent!!!

其它类软件,非上述版软件
回复
acceleratedman
帖子: 25
注册时间: 2007-07-28 15:07

Fortran MPI queries---urgent!!!

#1

帖子 acceleratedman » 2008-06-12 11:40

i use Ubuntu 7.04
i have already installed g77 successfully. it can compile fortran code.
now i want to install mpi. what should i do?
my computer has only one cpu. how i simulate several cpus under linux system? i heard that one computer can simulate several computers under windows.
any1 can help? thanks in advance..
sorry i can't type in chinese.
pls reply in chinese...
sunzhaoyu2000
帖子: 700
注册时间: 2006-10-18 15:48

#2

帖子 sunzhaoyu2000 » 2008-06-12 12:15

使用synapic安装mpich即可。
在单核上运行和多核上运行mpi程序从形式上没有任何区别:
编译:
mpif77 a.f77
运行:
mpiexec -n 4 ./a.out(打开4个进程。如果cpu核数少于4,系统会自动创建逻辑的cpu)

详细的再上网搜搜呵呵
acceleratedman
帖子: 25
注册时间: 2007-07-28 15:07

#3

帖子 acceleratedman » 2008-06-12 13:30

sunzhaoyu2000 写了:使用synapic安装mpich即可。
在单核上运行和多核上运行mpi程序从形式上没有任何区别:
编译:
mpif77 a.f77
运行:
mpiexec -n 4 ./a.out(打开4个进程。如果cpu核数少于4,系统会自动创建逻辑的cpu)

详细的再上网搜搜呵呵
thanks so much! i try first...
acceleratedman
帖子: 25
注册时间: 2007-07-28 15:07

#4

帖子 acceleratedman » 2008-06-13 10:51

has been solved.. thanks.
回复