Skip to content

Commit

Permalink
ci(perf): test again
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxpicca-Li committed Oct 28, 2024
1 parent b75f475 commit 98068c0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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: |
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 98068c0

Please sign in to comment.