MPICH 真好用…
在需要大量運算的程式上有它,真是好呀。
有空再來寫一下使用感想,先給自己一個 (Y) 。
下列程式為 mpich 所附的範例,這樣應該就足夠了:
#include <iostream .h>
// modified to reference the master mpi.h file, to meet the MPI standard spec.
#include "mpi.h"
// modified to reference the master mpi.h file, to meet the MPI standard spec.
#include "mpi.h"
int
main(int argc, char *argv[])
{
MPI::Init(argc, argv);
int rank = MPI::COMM_WORLD.Get_rank();
int size = MPI::COMM_WORLD.Get_size();
cout < < "Hello World! I am " << rank << " of " << size << endl;
MPI::Finalize();
}



四月 4th, 2006 at 6:22 下午
你好我用的是linux下配置的但不知怎么的三个节点连不上
而且[配置NFS时也配不上有一条命令不好用echo /etc/rc.d/rc.wlsys>>etc/rc.d/rc.local
希望您能指教一下
谢谢!!!!!
四月 5th, 2006 at 10:38 下午
呃,我看不懂你是哪三個点連不上?