From d477611892ca2deef11ea930a3c3e2258872fde9 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Sat, 25 Nov 2023 01:50:24 -0600 Subject: [PATCH] progress --- assignments/03/Makefile | 2 +- assignments/03/lpa.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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.