Commit 772a01a6 authored by Ben Hazelwood's avatar Ben Hazelwood
Browse files

Need to fix these MPI_Test issues

parent 33711a5a
CC=mpiicpc
CFLAGS += -g -Wall -std=c++11
CFLAGS += -g -Wall -std=c++11 -DCOMPARE_PROGRESS
LFLAGS += -L../lib -ltmpi
......
......@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
}
#ifdef COMPARE_PROGRESS
MPI_Sendrecv(MPI_IN_PLACE, 0, MPI_BYTE, MPI_PROC_NULL, 0, MPI_IN_PLACE, 0, MPI_BYTE, MPI_PROC_NULL, 0, MPI_COMM_SELF, MPI_STATUS_IGNORE);
MPI_Sendrecv(MPI_IN_PLACE, 0, MPI_BYTE, MPI_PROC_NULL, 1, MPI_IN_PLACE, 0, MPI_BYTE, MPI_PROC_NULL, 0, MPI_COMM_SELF, MPI_STATUS_IGNORE);
#endif
MPI_Barrier(MPI_COMM_WORLD);
// if (rank == source)
......
......@@ -91,6 +91,7 @@ void Timing::compareProgressWithReplicas() {
int numPending = 0;
for (int i=0; i < timer.heartbeatTimeRequests.at(r).size(); i++) {
int flag = 0;
logDebug("Sucess")
PMPI_Test(&timer.heartbeatTimeRequests.at(r).at(i), &flag, MPI_STATUS_IGNORE);
numPending += 1 - flag;
}
......
......@@ -4,6 +4,6 @@ export TEAMS=2
for interval in constant increasing random; do
for select in single rr random; do
export TMPI_FILE="$interval-$select-timings"
./rank-performance-latency.sh $interval $select ./bin/Latency 100000 100000 1
./rank-performance-latency.sh $interval $select ./bin/PerfSimulator
done
done
\ No newline at end of file
Supports Markdown
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