mpi5
所属分类:数学计算
开发工具:LINUX
文件大小:5KB
下载次数:12
上传日期:2004-11-06 22:04:53
上 传 者:
zkysjs
说明: 高性能计算程序示例之五
(examples of high-performance computing procedures 5)
文件列表:
20-1\dataIn.txt (118, 2003-07-14)
20-1\jacobi.c (7308, 2003-07-14)
20-1 (0, 2004-10-13)
19-2\dataIn.txt (72, 2003-07-14)
19-2\jordan.c (8071, 2003-07-14)
19-2 (0, 2004-10-13)
1. compile:
mpicc jacobi.c -o jacobi
2. run:
mpirun -np 4 jacobi
3. result (also in file dataOut.txt):
Input of file "dataIn.txt"
4 5
9.000000 -1.000000 -1.000000 1.000000 7.000000
0.000000 7.000000 -2.000000 0.000000 5.000000
-3.000000 -1.000000 3.000000 -1.000000 -1.000000
1.000000 1.000000 1.000000 9.000000 3.000000
0.000000 0.000000 1.000000 0.000000
Output of solution
x[0] = 0.999969
x[1] = 0.999960
x[2] = 0.999932
x[3] = 0.000031
Iteration num = 14
Whole running time = 0.016051 seconds
Distribute data time = 0.002***4 seconds
Parallel compute time = 0.013067 seconds
近期下载者:
相关文件:
收藏者: