meijubympi

所属分类:超算/并行计算
开发工具:Visual C++
文件大小:2KB
下载次数:8
上传日期:2009-11-08 09:51:48
上 传 者liuqiangsic
说明:  用mpi实现的枚举排序,测试请在mpi的并行环境中进行
(Enumeration sorting using mpi implementation, testing in the mpi parallel environment for the conduct)

文件列表:
rank_sort.c (4192, 2003-07-14)

Example: 编译:mpicc rank_sort.c Co rank 运行:可以使用命令 mpirun Cnp SIZE rank来运行该串匹配程序,其中SIZE是所使用的处理器个数。本实例中使用了SIZE=3个处理器。   mpirun Cnp 3 rank 运行结果: Input the Data Size :30 Please Input Seed:396 Random Numbers: 2706 3767 9343 9387 8259 2684 833 5815 7745 21 3250 6612 2836 7702 88 9407 545 2622 3538 7774 3156 4385 2856 6387 19 9***2 5602 2571 706 5412 Output: 19 21 88 545 706 833 2571 2622 2684 2706 2836 2856 3156 3250 3538 3767 4385 5412 5602 5815 6387 6612 7702 7745 7774 8259 9343 9387 9407 9***2 说明:该运行实例中可以动态的输入待排序序列的长度,这里选择的是60。随机数的种子设为396

近期下载者

相关文件


收藏者