From 38dd0e77cdd4c0a5fd0601321ff2167c92584ab0 Mon Sep 17 00:00:00 2001 From: James Newling Date: Fri, 3 Jan 2025 14:59:30 -0800 Subject: [PATCH] reorder --- .github/workflows/ci-linux.yml | 39 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 1d82d57be..8cadba40a 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -160,6 +160,26 @@ jobs: echo "XRT_LITE_N_CORE_ROWS=$(python build_tools/ci/amdxdna_driver_utils/amdxdna_ioctl.py --num-rows)" >> $GITHUB_ENV echo "XRT_LITE_N_CORE_COLS=$(python build_tools/ci/amdxdna_driver_utils/amdxdna_ioctl.py --num-cols)" >> $GITHUB_ENV + # Run the 'Performance' tests. These do not check numerical correctness, + # just measure the time to run some workloads. + - name : Performance benchmarks + run: | + source .venv/bin/activate + python build_tools/ci/cpu_comparison/run.py \ + test_aie_vs_cpu \ + $PWD/iree-install \ + --peano_dir=$PWD/llvm-aie \ + --vitis_dir=/opt/Xilinx/Vitis/2024.2 \ + --target_device="npu1_4col" \ + --reset_npu_between_runs -v \ + --xrt_lite_n_core_rows=$XRT_LITE_N_CORE_ROWS \ + --xrt_lite_n_core_cols=$XRT_LITE_N_CORE_COLS \ + --tests=Performance > performance.log + + # Print a summary of the findings. + python build_tools/ci/cpu_comparison/performance_summarizer.py \ + performance.log + - name: E2E correctness matmul test run: | # https://stackoverflow.com/a/17567422 @@ -188,25 +208,6 @@ jobs: --xrt_lite_n_core_cols=$XRT_LITE_N_CORE_COLS \ --skip_tests=Performance - # Run the 'Performance' tests. These do not check numerical correctness, - # just measure the time to run some workloads. - - name : Performance benchmarks - run: | - source .venv/bin/activate - python build_tools/ci/cpu_comparison/run.py \ - test_aie_vs_cpu \ - $PWD/iree-install \ - --peano_dir=$PWD/llvm-aie \ - --vitis_dir=/opt/Xilinx/Vitis/2024.2 \ - --target_device="npu1_4col" \ - --reset_npu_between_runs -v \ - --xrt_lite_n_core_rows=$XRT_LITE_N_CORE_ROWS \ - --xrt_lite_n_core_cols=$XRT_LITE_N_CORE_COLS \ - --tests=Performance > performance.log - - # Print a summary of the findings. - python build_tools/ci/cpu_comparison/performance_summarizer.py \ - performance.log - name: XRT-LITE tests run: |