From d7ab4b4033dac61c29754fa0b56bcdd79ab5d246 Mon Sep 17 00:00:00 2001 From: John Kressel Date: Thu, 16 Jan 2025 12:40:57 +0000 Subject: [PATCH] Update hipeac2025 tutorial --- docs/tutorials/hipeac2025/exercise2/README.md | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/tutorials/hipeac2025/exercise2/README.md b/docs/tutorials/hipeac2025/exercise2/README.md index 22ce3083..e1009e1e 100644 --- a/docs/tutorials/hipeac2025/exercise2/README.md +++ b/docs/tutorials/hipeac2025/exercise2/README.md @@ -238,35 +238,35 @@ Finally run the code and investigate the output. Since many basic blocks were sc The output should be similar to the one below, assuming only blocks from the `test` binary were printed: ``` -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708698) (call_weak_fn) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708698) (call_weak_fn) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa570876c) (main) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa570876c) (main) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa570876c) (main) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa570876c) (main) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa570876c) (main) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times -/home/root/mambo/docs/tutorials/hipeac2024/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708698) (call_weak_fn) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708698) (call_weak_fn) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa570876c) (main) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa570876c) (main) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa570876c) (main) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa570876c) (main) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa570876c) (main) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa57087d8) (__libc_csu_init) executed 1 times +/home/root/mambo/docs/tutorials/hipeac2025/introduction/code/test (0xffffa5708000) (none) executed 1 times ``` Does it seem correct? Probably not, because we see in the test program hosted by MAMBO that there is a loop in the main function with 16 iterations. We also see that all the basic blocks execute only once. So what has gone wrong? The next exercise explores this issue.