@@ -112,109 +112,3 @@ jobs:
112
112
env :
113
113
CMAKE_BUILD_TYPE : ${{ matrix.config.build }}
114
114
DYLD_LIBRARY_PATH : ${{ github.workspace }}/ComputeLibrary/build
115
-
116
- # We only run the linux aarch64 runners if macos smoke tests pass.
117
- linux :
118
- needs : macos
119
- strategy :
120
- matrix :
121
- threading : [OMP]
122
- toolset : [gcc]
123
- config : [Release]
124
- host : [
125
- { name: c6g, label: ah-ubuntu_22_04-c6g_2x-50 },
126
- { name: c7g, label: ah-ubuntu_22_04-c7g_2x-50 }
127
- ]
128
-
129
- name : ${{ matrix.host.name }}, ${{ matrix.toolset }}, ${{ matrix.threading }}, ${{ matrix.config }}
130
- runs-on : ${{ matrix.host.label }}
131
- steps :
132
- - name : Checkout oneDNN
133
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
134
- with :
135
- path : oneDNN
136
-
137
- - name : Install dev tools
138
- run : |
139
- sudo apt update -y
140
- sudo apt install -y scons cmake make
141
-
142
- - if : matrix.threading == 'OMP'
143
- name : Install openmp
144
- run : |
145
- sudo apt install -y libomp-dev
146
-
147
- - if : matrix.toolset == 'gcc'
148
- name : Install gcc
149
- run : |
150
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
151
- sudo apt update -y
152
- sudo apt install -y g++-13
153
-
154
- - if : matrix.toolset == 'clang'
155
- name : Install clang
156
- uses : KyleMayes/install-llvm-action@e0a8dc9cb8a22e8a7696e8a91a4e9581bec13181
157
- with :
158
- version : " 17"
159
-
160
- - name : Clone ACL
161
- run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
162
- env :
163
- ACL_ACTION : clone
164
- ACL_CONFIG : ${{ matrix.config }}
165
- ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
166
- BUILD_TOOLSET : ${{ matrix.toolset }}
167
- GCC_VERSION : 13
168
-
169
- - name : Get ACL commit hash for cache key
170
- id : get_acl_commit_hash
171
- run : (cd ${{ github.workspace }}/ComputeLibrary && echo "ACLCommitHash=$(git rev-parse --short HEAD)") >> $GITHUB_OUTPUT
172
-
173
- - name : Get system name
174
- id : get_system_name
175
- run : (echo "SystemName=$(uname)") >> $GITHUB_OUTPUT
176
-
177
- - name : Restore cached ACL
178
- id : cache-acl-restore
179
- uses : actions/cache/restore@v4
180
- with :
181
- key : ${{ steps.get_system_name.outputs.SystemName }}-acl-${{ matrix.toolset }}-${{ matrix.config }}-${{ steps.get_acl_commit_hash.outputs.ACLCommitHash }}
182
- path : ${{ github.workspace }}/ComputeLibrary/build
183
-
184
- - name : Build ACL
185
- if : ${{ steps.cache-acl-restore.outputs.cache-hit != 'true' }}
186
- run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
187
- env :
188
- ACL_ACTION : build
189
- ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
190
- BUILD_TOOLSET : ${{ matrix.toolset }}
191
- ACL_CONFIG : ${{ matrix.config }}
192
- GCC_VERSION : 13
193
- ACL_THREADING : ${{ matrix.threading }}
194
-
195
- - name : Save ACL in cache
196
- if : ${{ steps.cache-acl-restore.outputs.cache-hit != 'true' }}
197
- id : cache-acl_build-save
198
- uses : actions/cache/save@v4
199
- with :
200
- key : ${{ steps.cache-acl-restore.outputs.cache-primary-key }}
201
- path : ${{ github.workspace }}/ComputeLibrary/build
202
-
203
- - name : Build oneDNN
204
- run : ${{ github.workspace }}/oneDNN/.github/automation/build_aarch64.sh
205
- working-directory : ${{ github.workspace }}/oneDNN
206
- env :
207
- ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
208
- BUILD_TOOLSET : ${{ matrix.toolset }}
209
- CMAKE_BUILD_TYPE : ${{ matrix.config }}
210
- GCC_VERSION : 13
211
- ONEDNN_THREADING : ${{ matrix.threading }}
212
-
213
- - name : Run oneDNN tests
214
- run : ${{ github.workspace }}/oneDNN/.github/automation/test_aarch64.sh
215
- working-directory : ${{ github.workspace }}/oneDNN/build
216
- env :
217
- BUILD_TOOLSET : ${{ matrix.toolset }}
218
- CMAKE_BUILD_TYPE : ${{ matrix.config }}
219
- DYLD_LIBRARY_PATH : ${{ github.workspace }}/ComputeLibrary/build
220
- ONEDNN_THREADING : ${{ matrix.threading }}
0 commit comments