From ae2aaee2e3f82f62a76fac7f1db9409ee9bb2ad6 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 15 May 2025 11:53:50 +0200 Subject: MLP: fix loop iteration joinpoint --- MLP/Makefile | 4 ++-- MLP/include/dfatool_host.ah | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/MLP/Makefile b/MLP/Makefile index 9d69752..1ce804d 100644 --- a/MLP/Makefile +++ b/MLP/Makefile @@ -43,10 +43,10 @@ bin/mlp_host: ${HOST_SOURCES} include bin ${QUIET}rm -f include/dfatool_host_dpu.ah bin/mlp_dpu: ${DPU_SOURCES} include bin - dpu-upmem-dpurte-clang ${DPU_FLAGS} -o $@ ${DPU_SOURCES} + ${QUIET}dpu-upmem-dpurte-clang ${DPU_FLAGS} -o $@ ${DPU_SOURCES} clean: - $(RM) -r $(BUILDDIR) + ${QUIET}$(RM) -r $(BUILDDIR) test: all bin/mlp_host -m 1024 -n 1024 diff --git a/MLP/include/dfatool_host.ah b/MLP/include/dfatool_host.ah index 8cc4db5..6ea4a18 100644 --- a/MLP/include/dfatool_host.ah +++ b/MLP/include/dfatool_host.ah @@ -21,8 +21,10 @@ aspect DfatoolHostTiming : public DfatoolHostDPUTiming { printf("[>>] MLP | n_dpus=%u n_rows=%u n_cols=%u\n", NR_DPUS, n_rows, n_cols); } - advice call("% binarySearch(...)") : after() { - printf("[--] MLP | n_dpus=%u n_rows=%u n_cols=%u\n", NR_DPUS, n_rows, n_cols); + advice call("% start(...)") : after() { + if (*(tjp->arg<1>()) == 1) { + printf("[--] MLP | n_dpus=%u n_rows=%u n_cols=%u\n", NR_DPUS, n_rows, n_cols); + } } advice execution("% main(...)") : after() { -- cgit v1.2.3