forked from pulp-platform/ITA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
87 lines (80 loc) · 1.86 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
# 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
- S: 128
E: 192
P: 256
F: 256
activation: gelu
- S: 192
E: 256
P: 128
F: 128
activation: relu
script:
- make bender
- make sim VSIM_FLAGS=-c s=$S e=$E p=$P f=$F bias=1 activation=$activation
- ./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
- S: 128
E: 192
P: 256
F: 256
activation: gelu
- S: 192
E: 256
P: 128
F: 128
activation: relu
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
- ./modelsim/return_status.sh modelsim/build/transcript $S $E $P $F hwpe_tb