Skip to content
Snippets Groups Projects
Commit 50542c71 authored by 13518104 Kevin Austin Stefano's avatar 13518104 Kevin Austin Stefano
Browse files

add in sort

parent d4b76b0f
Branches
No related merge requests found
......@@ -56,11 +56,13 @@ void QuickSort(int T[], int i, int j, int size, int rank)
if (rank==0) {
QuickSort(T, i, k, size, rank);
MPI_Recv(T,5000, MPI_INT, 1, 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE );
MPI_Bcast(T,5000, MPI_INT, 1, MPI_COMM_WORD )
// MPI_Recv(T,5000, MPI_INT, 1, 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE );
PrintArray(T, 1, j);
} else if (rank==1) {
QuickSort(T, k + 1, j, size, rank);
MPI_Send(T,5000, MPI_INT,0, 0, MPI_COMM_WORLD );
MPI_Bcast(T,5000, MPI_INT, 0, MPI_COMM_WORLD );
// MPI_Send(T,5000, MPI_INT,0, 0, MPI_COMM_WORLD );
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment