-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (85 loc) · 2.05 KB
/
codegen.yml
File metadata and controls
97 lines (85 loc) · 2.05 KB
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
name: codegen
on:
- push
jobs:
install-pspamm:
name: install-pspamm
runs-on: ubuntu-24.04
steps:
- name: apt-get
run: |
set -euo pipefail
sudo apt-get update
- name: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: checkout-pspamm
uses: actions/checkout@v5
- name: pip-pspamm
run: |
pip install .
- name: dry-run-pspamm
run: |
set +e
pspamm-generator
retcode=$?
set -e
if [ $retcode -ne 2 ]; then
echo "Unexpected exit code."
exit 1
fi
echo "Success!"
pspamm-codegen:
name: pspamm-codegen
runs-on: ubuntu-24.04
needs: install-pspamm
# include all vector lengths manually for now
# not supported:
# * RVV >= 1024
# * ARM/SVE which is not a power of 2
strategy:
fail-fast: false
matrix:
arch:
- hsw128
- hsw256
- knl128
- knl256
- knl512
- arm128
- arm_sve128
- arm_sve256
- arm_sve512
- arm_sve1024
- arm_sve2048
- rvv128
- rvv256
- rvv512
- rvv1024
- lsx128
- lsx256
steps:
- name: apt-get
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install g++-aarch64-linux-gnu g++-riscv64-linux-gnu g++-14-loongarch64-linux-gnu qemu-user-static
- name: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: checkout-pspamm
uses: actions/checkout@v5
- name: pip-pspamm
run: |
pip install .
- name: pspamm-tests
run: |
cd tests/
LOCALARCH=${{matrix.arch}}
if [[ ${LOCALARCH:0:3} == "knl" ]]; then
./runlocal.sh ${{matrix.arch}} norun
else
./runlocal.sh ${{matrix.arch}}
fi