-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
155 lines (148 loc) · 3.16 KB
/
.gitlab-ci.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Copyright 2023 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- test
- sim
.setup_test:
script:
- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
# format_python:
# stage: test
# script:
# - !reference [.setup_test, script]
# - pip install yapf
# - yapf -rpd .
generate_testvectors:
stage: test
script:
- !reference [.setup_test, script]
- python testGenerator.py -H 1 -S 64 -E 64 -P 64 -F 64 --activation gelu
- python testGenerator.py -H 1 -S 128 -E 192 -P 256 -F 256 --activation gelu
- python testGenerator.py -H 1 -S 192 -E 256 -P 128 -F 128 --activation relu
artifacts:
paths:
- simvectors
expire_in: 1 day
run_sim:
stage: sim
needs:
- generate_testvectors
parallel:
matrix:
- S: 64
E: 64
P: 64
F: 64
activation: gelu
no_stalls: 0
single_attention: 0
- S: 64
E: 64
P: 64
F: 64
activation: gelu
no_stalls: 1
single_attention: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 0
single_attention: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 1
single_attention: 0
- S: 192
E: 256
P: 128
F: 128
activation: relu
no_stalls: 1
single_attention: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 0
single_attention: 1
- S: 192
E: 256
P: 128
F: 128
activation: relu
no_stalls: 0
single_attention: 1
script:
- make bender
- make sim VSIM_FLAGS=-c s=$S e=$E p=$P f=$F bias=1 activation=$activation no_stalls=$no_stalls single_attention=$single_attention
- ./modelsim/return_status.sh modelsim/build/transcript $S $E $P $F ita_tb
run_hwpe_sim:
stage: sim
needs:
- generate_testvectors
parallel:
matrix:
- S: 64
E: 64
P: 64
F: 64
activation: gelu
no_stalls: 0
single_attention: 0
- S: 64
E: 64
P: 64
F: 64
activation: gelu
no_stalls: 1
single_attention: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 0
single_attention: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 1
single_attention: 0
- S: 192
E: 256
P: 128
F: 128
activation: relu
no_stalls: 1
single_attention: 0
- S: 128
E: 192
P: 256
F: 256
activation: gelu
no_stalls: 0
single_attention: 1
- S: 192
E: 256
P: 128
F: 128
activation: relu
no_stalls: 0
single_attention: 1
script:
- make bender
- make sim VSIM_FLAGS=-c DEBUG=OFF target=sim_ita_hwpe_tb s=$S e=$E p=$P f=$F bias=1 activation=$activation no_stalls=$no_stalls single_attention=$single_attention
- ./modelsim/return_status.sh modelsim/build/transcript $S $E $P $F hwpe_tb