-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
67 lines (58 loc) · 1.57 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
# Copyright 2022 ETH Zurich and University of Bologna.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#
# Paul Scheffler <paulsc@iis.ee.ethz.ch>
# We initialize the nonfree repo, then spawn a sub-pipeline from it
variables:
GIT_SUBMODULE_STRATEGY: recursive
# Our reference GCC toolchain for reproducible builds
before_script:
- python -V # Print out python version for debugging
- python -m pip install --user virtualenv
- python -m virtualenv venv
- source venv/bin/activate
- python -m pip install torch>=1.11 --extra-index-url https://download.pytorch.org/whl/cpu
- python -m pip install -r model/requirements.txt
- export PULP_RISCV_GCC_TOOLCHAIN=/usr/pack/pulpsdk-1.0-kgf/artifactory/pulp-sdk-release/pkg/pulp_riscv_gcc/1.0.14/
- export PATH=$PULP_RISCV_GCC_TOOLCHAIN/bin:$PATH
cache:
paths:
- venv/
.base:
artifacts:
when: always
expire_in: 1 week
stages:
- build
- test
build:
stage: build
script:
- make update-ips
- make hw-all
artifacts:
when: always
expire_in: 3 hours
paths: [ .bender, model/deps/pulp-nnx, sim ]
.neureka-vsim-tpl:
extends: .base
needs: [ build ]
stage: test
script:
- FS=${FS}
- H_IN=${H_IN}
- H_OUT=${H_OUT}
- K_IN=${K_IN}
- K_OUT=${K_OUT}
- make stimuli
- make sw-all run gui=0
- '(grep -rn "> Success! No errors found." ./transcript)'
testset:
extends: .neureka-vsim-tpl
script:
- regr/ci_regression.sh
artifacts:
when: always
expire_in: 1 year
paths: [ regr/perf.json ]