From 115d84580ca3e291895e64841ba301799c780ab9 Mon Sep 17 00:00:00 2001 From: Zehao Liu <86838383+lewislzh@users.noreply.github.com> Date: Tue, 22 Jul 2025 09:48:49 +0800 Subject: [PATCH] ci(nightly): fix nightly ci for kunminghu-v3 (#4897) --- .github/workflows/nightly.yml | 192 +++++++++++++++++----------------- 1 file changed, 96 insertions(+), 96 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 75acf1d2a..74bd4da59 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -101,99 +101,99 @@ jobs: 2> perf.log cat perf.log | sort | tee $PERF_HOME/random_7.txt -build-v3: - runs-on: bosc - continue-on-error: false - # At most 12 hours to finish (before 11:33 UTC+8). - timeout-minutes: 720 - # Build + 8 checkpoints * 1-hour timeout - name: Nightly Regression(kunminghu-v3) - Checkpoints - steps: - - uses: actions/checkout@v2 - with: - ref: kunminghu-v3 - submodules: 'recursive' - - name: set env - run: | - export HEAD_SHA=${{ github.run_number }} - echo "NOOP_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV - echo "NEMU_HOME=/nfs/home/share/ci-workloads/NEMU" >> $GITHUB_ENV - echo "PERF_HOME=/nfs/home/ci-runner/xs-perf/${HEAD_SHA}" >> $GITHUB_ENV - echo "WAVE_HOME=/nfs/home/ci-runner/xs-wave/${HEAD_SHA}" >> $GITHUB_ENV - echo "GCPT_RESTORE_BIN=/nfs/home/share/ci-workloads/fix-gcpt/gcpt.bin" >> $GITHUB_ENV - mkdir -p /nfs/home/ci-runner/xs-perf/${HEAD_SHA} - mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} - - name: clean up - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean - - name: Build EMU with DRAMsim3 and Spike-Diff - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --build \ - --dramsim3 /nfs/home/share/ci-workloads/DRAMsim3 \ - --with-dramsim3 --threads 16 --spike \ - --pgo $GITHUB_WORKSPACE/ready-to-run/coremark-2-iteration.bin \ - --llvm-profdata llvm-profdata --trace-fst - - name: Random Checkpoint 0 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_0.txt - - name: Random Checkpoint 1 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_1.txt - - name: Random Checkpoint 2 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_2.txt - - name: Random Checkpoint 3 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_3.txt - - name: Random Checkpoint 4 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_4.txt - - name: Random Checkpoint 5 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_5.txt - - name: Random Checkpoint 6 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_6.txt - - name: Random Checkpoint 7 - run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ - --wave-dump $WAVE_HOME --threads 16 --numa \ - --spike --ci random --timeout 3600 --ram-size=16GB \ - --gcpt-restore-bin $GCPT_RESTORE_BIN \ - 2> perf.log - cat perf.log | sort | tee $PERF_HOME/random_7.txt + build-v3: + runs-on: bosc + continue-on-error: false + # At most 12 hours to finish (before 11:33 UTC+8). + timeout-minutes: 720 + # Build + 8 checkpoints * 1-hour timeout + name: Nightly Regression(kunminghu-v3) - Checkpoints + steps: + - uses: actions/checkout@v2 + with: + ref: kunminghu-v3 + submodules: 'recursive' + - name: set env + run: | + export HEAD_SHA=${{ github.run_number }} + echo "NOOP_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV + echo "NEMU_HOME=/nfs/home/share/ci-workloads/NEMU" >> $GITHUB_ENV + echo "PERF_HOME=/nfs/home/ci-runner/xs-perf/${HEAD_SHA}" >> $GITHUB_ENV + echo "WAVE_HOME=/nfs/home/ci-runner/xs-wave/${HEAD_SHA}" >> $GITHUB_ENV + echo "GCPT_RESTORE_BIN=/nfs/home/share/ci-workloads/fix-gcpt/gcpt.bin" >> $GITHUB_ENV + mkdir -p /nfs/home/ci-runner/xs-perf/${HEAD_SHA} + mkdir -p /nfs/home/ci-runner/xs-wave/${HEAD_SHA} + - name: clean up + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean + - name: Build EMU with DRAMsim3 and Spike-Diff + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --build \ + --dramsim3 /nfs/home/share/ci-workloads/DRAMsim3 \ + --with-dramsim3 --threads 16 --spike \ + --pgo $GITHUB_WORKSPACE/ready-to-run/coremark-2-iteration.bin \ + --llvm-profdata llvm-profdata --trace-fst + - name: Random Checkpoint 0 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_0.txt + - name: Random Checkpoint 1 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_1.txt + - name: Random Checkpoint 2 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_2.txt + - name: Random Checkpoint 3 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_3.txt + - name: Random Checkpoint 4 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_4.txt + - name: Random Checkpoint 5 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_5.txt + - name: Random Checkpoint 6 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_6.txt + - name: Random Checkpoint 7 + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py \ + --wave-dump $WAVE_HOME --threads 16 --numa \ + --spike --ci random --timeout 3600 --ram-size=16GB \ + --gcpt-restore-bin $GCPT_RESTORE_BIN \ + 2> perf.log + cat perf.log | sort | tee $PERF_HOME/random_7.txt