-
Notifications
You must be signed in to change notification settings - Fork 233
136 lines (110 loc) · 4.79 KB
/
Copy pathrunneontest.yaml
File metadata and controls
136 lines (110 loc) · 4.79 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
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
name: Neon tests
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
actions: read
security-events: write
jobs:
CI_test_run:
runs-on: ubuntu-22.04-arm
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python 3.12
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install system packages
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install libpython3.12 libtinfo5
sudo apt install build-essential
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60 --slave /usr/bin/g++ g++ /usr/bin/g++-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 40 --slave /usr/bin/g++ g++ /usr/bin/g++-12
sudo update-alternatives --set gcc /usr/bin/gcc-12
- name: Activate vcpkg
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
config: "./vcpkg-neon-configuration.json"
- name: Prepare framework
run: |
cd Testing
echo "Create missing folders"
mkdir FullBenchmark
mkdir Output
mkdir GeneratedInclude
mkdir GeneratedSource
mkdir GeneratedIncludeBench
mkdir GeneratedSourceBench
mkdir build
echo "Install missing python packages"
pip install -r requirements.txt
echo "Generate some missing test patterns"
python PatternGeneration/MatrixNeon.py
echo "Preprocess test description"
python preprocess.py -f desc.txt -o Output.pickle
python preprocess.py -f desc_neon.txt -o Output_neon.pickle
python preprocess.py -f desc_f16.txt -o Output_f16.pickle
echo "Generate missing CPP headers"
python processTests.py -gen . -p Patterns -d Parameters -f Output.pickle -e
python processTests.py -gen . -p Patterns -d Parameters -f Output_neon.pickle -e
python processTests.py -gen . -p Patterns -d Parameters -f Output_f16.pickle -e
cd build
cmake -G "Ninja" ..
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Execute generic tests
run: |
cd Testing/build
python ../processTests.py -p ../Patterns -d ../Parameters -gen .. -e -f ../Output.pickle
ninja
./test > result.txt
python ../processResult.py --noerr -e -f ../Output.pickle -r result.txt -html > result.html
- name: Execute neon specific C tests
run: |
cd Testing/build
sh ../test_neon.sh
- name: Execute f16 C tests
run: |
cd Testing/build
python ../processTests.py -p ../Patterns -d ../Parameters -gen .. -e -f ../Output_f16.pickle
ninja
./test > result_f16.txt
python ../processResult.py --noerr -e -f ../Output_f16.pickle -r result_f16.txt -html > result_f16.html
- name: Upload test report
uses: actions/upload-artifact@v7
with:
name: neon-test-report
path: |
Testing/build/result.html
Testing/build/result_transform_neon.html
Testing/build/result_binaryf32_neon.html
Testing/build/result_binary_complexf32_neon.html
Testing/build/result_binaryf16_neon.html
Testing/build/result_binary_complexf16_neon.html
Testing/build/result_binaryq31_neon.html
Testing/build/result_binary_complexq31_neon.html
Testing/build/result_binaryq15_neon.html
Testing/build/result_binary_complexq15_neon.html
Testing/build/result_binaryq7_neon.html
Testing/build/result_f16.html
- name: Check error
run: |
cd Testing/build
echo "Checking output..."
test "$(grep "FAILED" result.html | wc -l)" -eq 0
test "$(grep "FAILED" result_transform_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binaryf32_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binary_complexf32_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binaryf16_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binary_complexf16_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binaryq31_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binary_complexq31_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binaryq15_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binary_complexq15_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_binaryq7_neon.html | wc -l)" -eq 0
test "$(grep "FAILED" result_f16.html | wc -l)" -eq 0