摘要: 在多核处理器、超级计算机日益普及的今天,程序员们怎能对并行程序“袖手旁观”呢?为了练手,我用MPI写了一个并行排序程序,先介绍下我的第一个版本,大概的思路是:使用MPI在各个进程之间进行通信,1. 进程0生成随机数,并且讲数据分段,将各段数据分配给其他进程2. 其他进程收到数据段,使用冒泡排序进行,发送回进程03. 进程0收到这些数据,通过归并排序按顺序整合起来。下面是这个版本代码,View Code // MPI Hello World demo#include <mpi.h>#include <stdio.h>#include <stdlib.h>#in 阅读全文
posted @ 2011-11-16 22:22 Rosting 阅读(4656) 评论(4) 推荐(2) 编辑
摘要: MemberCurrent Day’s WorkNext Day’s WorkNoteAo TangTask 468Task 471Task 469 Extract all author namesYue WuTask 714 Implement the agreement page716 improve the interface of org itemsHaifeng XuTask 717 implement the animation of the horizonal lineNone advisor/advisee’s commentsZhe SongUnitTest ProgramF 阅读全文
posted @ 2011-11-16 00:20 Rosting 阅读(318) 评论(0) 推荐(0) 编辑