diff --git a/assignments/03/Makefile b/assignments/03/Makefile index 912753f..0834f17 100644 --- a/assignments/03/Makefile +++ b/assignments/03/Makefile @@ -1,6 +1,6 @@ .PHONY: run clean -CFLAGS += -g +CFLAGS += -g -pg # CFLAGS += -DFMT_HEADER_ONLY -O3 # LDFLAGS += $(shell pkg-config --libs fmt) diff --git a/assignments/03/lpa.cpp b/assignments/03/lpa.cpp index 1042a31..78f9262 100644 --- a/assignments/03/lpa.cpp +++ b/assignments/03/lpa.cpp @@ -224,8 +224,10 @@ int main(int argc, char **argv) { // STEP 5 TIMER STARTS HERE MPI_Barrier(MPI_COMM_WORLD); double step_5_start_time; - if (rank == 0) + if (rank == 0) { step_5_start_time = MPI_Wtime(); + printf("STARTING STEP 5: %0.04fs\n", step_5_start_time - step_2_start_time); + } // The processes perform the transfers of non-local labels and updates of // local labels until convergence.