@@ -43,18 +43,39 @@ jobs:
43
43
config : [Debug, Release]
44
44
45
45
steps :
46
+ - name : Get number of CPU cores
47
+ uses : SimenB/github-actions-cpu-cores@97ba232459a8e02ff6121db9362b09661c875ab8 # v2.0.0
48
+ id : cpu-cores
46
49
- name : Checkout oneDNN
47
50
uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
48
51
with :
49
52
path : oneDNN
50
-
51
- - name : Install Scons
53
+ # ACL is built with clang, so we can link with it directly if we are using
54
+ # clang as well.
55
+ - if : matrix.compiler.CC == 'clang'
56
+ name : Download and Extract ACL
57
+ run : ${{ github.workspace }}/oneDNN/.github/automation/get_acl.sh
58
+ env :
59
+ ACL_WITH_ASSERTS : ${{ matrix.config.ACL_WITH_ASSERTS }}
60
+ ACL_VERSION : ${{ github.event.inputs.ACL_VERSION || 'v24.08.1' }}
61
+ # If we are building with gcc, we need to clone and build ACL ourselves to
62
+ # link properly.
63
+ - if : contains( matrix.compiler.CC , 'gcc' )
64
+ name : Install Scons
52
65
uses : threeal/pipx-install-action@b0bf0add7d5aefda03a3d4e47d651df807889e10 # v1.0.0
53
66
with :
54
67
packages : scons
55
-
56
- - name : Build ACL
57
- run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
68
+ - if : contains( matrix.compiler.CC , 'gcc' )
69
+ name : Checkout ACL
70
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
71
+ with :
72
+ repository : ARM-software/ComputeLibrary
73
+ ref : ' v24.08.1'
74
+ path : ComputeLibrary
75
+ - if : contains( matrix.compiler.CC , 'gcc' )
76
+ name : Build ACL
77
+ working-directory : ${{ github.workspace }}/ComputeLibrary
78
+ run : scons Werror=1 -j${{ steps.cpu-cores.outputs.count }} neon=1 opencl=0 os=macos arch=armv8.2-a build=native cppthreads=0 openmp=0 examples=0 validation_tests=0
58
79
env :
59
80
ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
60
81
BUILD_TOOLSET : ${{ matrix.toolset }}
87
108
toolset : [clang, gcc]
88
109
config : [Debug, Release]
89
110
host : [
90
- { name: c6g, label: ah-ubuntu_22_04-c6g_2x-50 },
111
+ { name: c6g, label: ah-ubuntu_22_04-c6g_2x-50 },
91
112
{ name: c7g, label: ah-ubuntu_22_04-c7g_2x-50 }
92
113
]
93
114
@@ -148,4 +169,4 @@ jobs:
148
169
BUILD_TOOLSET : ${{ matrix.toolset }}
149
170
CMAKE_BUILD_TYPE : ${{ matrix.config }}
150
171
DYLD_LIBRARY_PATH : ${{ github.workspace }}/ComputeLibrary/build
151
- ONEDNN_THREADING : ${{ matrix.threading }}
172
+ ONEDNN_THREADING : ${{ matrix.threading }}
0 commit comments