From 4d1ab33de786c3d21b5d124a2083dcc5347ab0fe Mon Sep 17 00:00:00 2001 From: jimmy23246 Date: Sun, 1 Feb 2026 17:44:53 -0500 Subject: [PATCH] changed errors in tutorial 2/3 --- Exercises/assignment2.md | 8 ++++---- Exercises/assignment3.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Exercises/assignment2.md b/Exercises/assignment2.md index 341c18a..47cfd8b 100644 --- a/Exercises/assignment2.md +++ b/Exercises/assignment2.md @@ -93,9 +93,9 @@ assign sched_perf.total_active_threads = perf_total_active_threads; ### Step 5: Expose the Counters in the Runtime -In the `vx_dump_perf` function in [`vortex/runtime/stub/vx_utils.cpp`](https://github.com/vortexgpgpu/vortex/blob/master/runtime/stub/vx_utils.cpp#L216), retrieve the values for `total_issued_warps` and `total_active_threads` and use them to calculate warp efficiency. +In the `vx_dump_perf` function in [`vortex/runtime/stub/utils.cpp`](https://github.com/vortexgpgpu/vortex/blob/master/runtime/stub/utils.cpp#L159), retrieve the values for `total_issued_warps` and `total_active_threads` and use them to calculate warp efficiency. -In `vx_utils.cpp`, add the following code to fetch the values from the CSR and calculate warp efficiency: +In `utils.cpp`, add the following code to fetch the values from the CSR and calculate warp efficiency: At the end of the other counter declarations in `vx_dump_perf`, add: ```cpp @@ -104,7 +104,7 @@ uint64_t total_issued_warps = 0; uint64_t total_active_threads = 0; ``` -Then, add a new case for VX_DCR_MPM_CLASS_3 to calculate and print per-core Warp Efficiency in [`vortex/runtime/stub/vx_utils.cpp`](https://github.com/vortexgpgpu/vortex/blob/master/runtime/stub/vx_utils.cpp#L550): +Then, add a new case for VX_DCR_MPM_CLASS_3 to calculate and print per-core Warp Efficiency in [`vortex/runtime/stub/utils.cpp`](https://github.com/vortexgpgpu/vortex/blob/master/runtime/stub/utils.cpp#L590): ```cpp case VX_DCR_MPM_CLASS_3: { @@ -140,7 +140,7 @@ case VX_DCR_MPM_CLASS_3: break; ``` -and add the new case to calculate and print the total average Warp Efficiency of the GPU in [`vortex/runtime/stub/vx_utils.cpp`](https://github.com/vortexgpgpu/vortex/blob/master/runtime/stub/vx_utils.cpp#L630): +and add the new case to calculate and print the total average Warp Efficiency of the GPU in [`vortex/runtime/stub/utils.cpp`](https://github.com/vortexgpgpu/vortex/blob/master/runtime/stub/utils.cpp#L681): ```cpp case VX_DCR_MPM_CLASS_3: { uint64_t threads_per_warp; diff --git a/Exercises/assignment3.md b/Exercises/assignment3.md index 4ddef3e..a0f5d40 100644 --- a/Exercises/assignment3.md +++ b/Exercises/assignment3.md @@ -794,7 +794,7 @@ To test your changes, you can run the following to build and verify prefetch fun make -s # Test with SimX -./ci/blackbox.sh --driver=simx --cores=1 --app=prefetch --perf=1 +./ci/blackbox.sh --driver=simx --cores=1 --app=prefetch --perf=3 ``` The expected result is a test passed message and an output of all 3 metric counters, feel free to change `kernel.cpp` with different instruction/data sizes to observe prefetch efficiency