diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 8e7029bd6e8..cade518d447 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -41,7 +41,7 @@ jobs: run: | if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then echo "run_biweekly=true" >> $GITHUB_OUTPUT - elif [ $(( $(date +'%V') % 2 )) -eq 1 ]; then + elif [ $(( $(date +'%V') % 2 )) -eq 0 ]; then echo "run_biweekly=true" >> $GITHUB_OUTPUT else echo "run_biweekly=false" >> $GITHUB_OUTPUT @@ -66,18 +66,23 @@ jobs: echo "SPEC_DIR=/nfs/home/ci-runner/master-perf-report/cr${DATE}-${SHORT_SHA}" >> $GITHUB_ENV echo "CKPT_HOME=/nfs/home/share/checkpoints_profiles/spec06_rv64gcb_O3_20m_gcc12.2.0-intFpcOff-jeMalloc/checkpoint-0-0-0" >> $GITHUB_ENV echo "CKPT_JSON_PATH=/nfs/home/share/checkpoints_profiles/spec06_rv64gcb_O3_20m_gcc12.2.0-intFpcOff-jeMalloc/checkpoint-0-0-0/cluster-0-0.json" >> $GITHUB_ENV - + - name: Test if: steps.determine_run.outputs.run_biweekly == 'true' run: | - python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean - mkdir -p $NOOP_HOME/build - echo "hello world" > $NOOP_HOME/build/test.log + if [ -e "$SPEC_DIR/emu" ]; then + echo "no need build" + else + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean + mkdir -p $NOOP_HOME/build + echo "need build" + fi # - name: Clean Up # if: steps.determine_run.outputs.run_biweekly == 'true' # run: | # python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean + # - name: Build EMU with DRAMsim3 # if: steps.determine_run.outputs.run_biweekly == 'true' # run: | @@ -93,6 +98,7 @@ jobs: # mkdir -p $SPEC_DIR # cp $NOOP_HOME/build/emu $SPEC_DIR/emu # fi + # - name: Run SPEC CPU2006 checkpoints # if: steps.determine_run.outputs.run_biweekly == 'true' # run: | @@ -101,6 +107,7 @@ jobs: # --xs $NOOP_HOME --threads 16 --dir $SPEC_DIR --resume \ # -L "node033 node034 node036 node037 node038 node039 node040 node041 node042" # find $NOOP_HOME/build/ -maxdepth 1 -name "*.vcd" -exec mv {} $SPEC_DIR \; + # - name: Report SPEC CPU2006 score # if: steps.determine_run.outputs.run_biweekly == 'true' # run: | @@ -114,6 +121,7 @@ jobs: # mkdir $GITHUB_WORKSPACE/result # cp $SPEC_DIR/err_ckps.json $GITHUB_WORKSPACE/result/err_ckps.json # cp $SPEC_DIR/score.txt $GITHUB_WORKSPACE/result/score.txt + # - name: Upload result # if: steps.determine_run.outputs.run_biweekly == 'true' # uses: actions/upload-artifact@v4