文件名称:17-1
介绍说明--下载内容均来自于网络,请自行研究使用
Example:
编译:mpicc including.c –o including
运行:可以使用命令 mpirun –np SIZE including来运行该串匹配程序,其中SIZE是所使用的处理器个数。本实例中使用了SIZE=4个处理器。
mpirun –np 4 including
运行结果:
请输入点的个数:6
请输入各点的坐标
0:1 0
1:2 1
2:4 0
3:2 4
4:1 2
5:0 3
请输入要判断点的坐标
2 3
结果:vertex p is in polygon
说明:输入顶点的(x,y)坐标时中间用空格隔开。
-Example:
Compile: mpicc including.c-o including
Run: You can use the command mpirun-np SIZE including to run the string matching procedure, which SIZE is the number of processors used. The examples used SIZE = 4 processors.
mpirun-np 4 including
Run Results:
Please input the number: 6
Please input the coordinates of the points
0:1 0
1:2 1
2:4 0
3:2 4
4:1 2
5:0 3
Enter To determine the coordinates of points
23
Results: vertex p is in polygon
Descr iption: Enter the vertices (x, y) coordinates separated by a space.
编译:mpicc including.c –o including
运行:可以使用命令 mpirun –np SIZE including来运行该串匹配程序,其中SIZE是所使用的处理器个数。本实例中使用了SIZE=4个处理器。
mpirun –np 4 including
运行结果:
请输入点的个数:6
请输入各点的坐标
0:1 0
1:2 1
2:4 0
3:2 4
4:1 2
5:0 3
请输入要判断点的坐标
2 3
结果:vertex p is in polygon
说明:输入顶点的(x,y)坐标时中间用空格隔开。
-Example:
Compile: mpicc including.c-o including
Run: You can use the command mpirun-np SIZE including to run the string matching procedure, which SIZE is the number of processors used. The examples used SIZE = 4 processors.
mpirun-np 4 including
Run Results:
Please input the number: 6
Please input the coordinates of the points
0:1 0
1:2 1
2:4 0
3:2 4
4:1 2
5:0 3
Enter To determine the coordinates of points
23
Results: vertex p is in polygon
Descr iption: Enter the vertices (x, y) coordinates separated by a space.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
17-1\including.c
....\readme.txt
17-1
....\readme.txt
17-1