forked from OpenXiangShan/XiangShan
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (89 loc) · 3.86 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Nightly Regression
on:
schedule:
# run at 15:33 UTC (23:33 UTC+8)
- cron: '33 15 * * *'
jobs:
build:
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 - Checkpoints
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: set env
run: |
export HEAD_SHA=${{ github.run_number }}
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
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
- 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 \
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 \
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 \
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 \
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 \
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 \
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 \
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 \
2> perf.log
cat perf.log | sort | tee $PERF_HOME/random_7.txt