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

add in openmpi

parent 189c8cf3
No related merge requests found
......@@ -317,11 +317,11 @@ void PreQuickSort (Edge result[], int size, int rank) {
source = MPI_Get_count(&status, mpi_edge_type, &arr);
int src = status.MPI_SOURCE;
temp = (Edge *) malloc (sizeof(Edge) *arr);
Edge * temp = (Edge *) malloc (sizeof(Edge) *arr);
source = MPI_Recv(temp, arr, mpi_edge_type, src, 1, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
//Impementasiquicksort disini
source = MPI_Send(temp, arr, mpi_adge_type, src, 1, MPI_COMM_WORLD);
free(arr);
source = MPI_Send(temp, arr, mpi_edge_type, src, 1, MPI_COMM_WORLD);
free(temp);
}
}
......
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