Parallel_QSort

 1 #include<stdio.h>
 2 #include<stdlib.h>
 3
 4 int parallel_qsort(int * data , int start , int end, int p_count, int pid);
 5 int quick_sort(int *data ,int start , int end);
 6 int _mpi_send(void * data ,int length ,int dest_process,int tag);
 7
 8 int _mpi_recv(void * data ,int length ,int source_process);
 9 int partition(int * data, int start , int end);
10 int comp(void * a , void * b);
11
12
13
14
15 int _mpi_send(void * data ,int length ,int dest_process,int tag){
16
17 return MPI_Send(data,length,MPI_INT,dest_process,tag,MPI_COMM_WORLD);
18
19 }
20
21 int main(){
22
23
24
25   return 0;
26 }
27
28 int MPI_Recv(void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *);
29 int MPI_Send(void*, int, MPI_Datatype, int, int, MPI_Comm);

Parallel_QSort,布布扣,bubuko.com

时间: 2024-11-05 05:20:02

Parallel_QSort的相关文章