Commit ca3972a6 authored by Taddeüs Kroes's avatar Taddeüs Kroes

ModSim ass4 taddeus: Removed some old debug lines.

parent 35f6694d
......@@ -35,9 +35,7 @@ void master(int tasks) {
#endif
start_time = MPI_Wtime();
//printf("0");
MPI_Send(sent, size, MPI_DOUBLE, 1, 0, MPI_COMM_WORLD);
//printf("...");
MPI_Recv(received, size, MPI_DOUBLE, tasks - 1, MPI_ANY_TAG,
MPI_COMM_WORLD, &status);
......@@ -47,7 +45,6 @@ void master(int tasks) {
if( received[i] != sent[i] )
failures++;
//printf("0, %fs (%d failures)\n", time, failures);
#ifdef DEBUG
printf("%fs (%d failures)\n", time, failures);
#endif
......@@ -82,9 +79,7 @@ void slave(int tasks, int rank) {
for( measurement = 1; measurement <= REPEAT; measurement++ ) {
MPI_Recv(data, size, MPI_DOUBLE, source, MPI_ANY_TAG,
MPI_COMM_WORLD, &status);
//printf("%d", rank);
MPI_Send(data, size, MPI_DOUBLE, target, 0, MPI_COMM_WORLD);
//printf("...");
}
}
......
Markdown is supported
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