文件名称:17-1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.65kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
17-1/readme.txt
17-1
17-1/readme.txt
17-1
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.