My goal is to solve this FIND SUM problem using ring logical topologies: a ring of k processorsring toplogy
ALL to all ring broadcast and reduce.
-
Load MPICH2 module before compiling the program.
module load tools/mpich2-1.5-gcc -
Compile the program
cd ~/MPIsample
mpicc -o mpitest mpitest.c -
Modify netid references in email address & working directory in job script;
e.g.: vi mpitest.pbs -
Submit to the queue:
qsub mpitest.pbs
- parllel sorting
PARM mesh hypercube
内排序算法 internal sort 外排序算法 external sort
在内排序算法中,排序元素的树木要足够少,使得他们能够放到进程的主储存器。相反,外排序利用辅助存储硬件(如磁盘和硬盘 来排序,只因待排序元素数目太多,不适合放进内存。