File tree 2 files changed +37
-3
lines changed
2 files changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,23 @@ elif [[ "$ACL_THREADING" == "SEQ" ]]; then
36
36
ACL_OPENMP=0
37
37
fi
38
38
39
+ if [[ " $OS " == " Linux" ]]; then
40
+ ACL_MULTI_ISA_SUPPORT=1
41
+ if [[ " $ACL_THREADING " == " OMP" ]]; then
42
+ ACL_OPENMP=1
43
+ elif [[ " $ACL_THREADING " == " SEQ" ]]; then
44
+ ACL_OPENMP=0
45
+ fi
46
+ ACL_OS=" linux"
47
+ elif [[ " $OS " == " Darwin" ]]; then
48
+ ACL_MULTI_ISA_SUPPORT=0
49
+ ACL_OPENMP=0
50
+ ACL_OS=" macos"
51
+ else
52
+ echo " Unknown OS: $OS "
53
+ exit 1
54
+ fi
55
+
39
56
if [[ " $ACL_ACTION " == " clone" ]]; then
40
57
set -x
41
58
git clone --branch $ACL_VERSION --depth 1 $ACL_REPO $ACL_ROOT_DIR
@@ -49,12 +66,18 @@ elif [[ "$ACL_ACTION" == "configure" ]]; then
49
66
-DARM_COMPUTE_WERROR=0 \
50
67
-DARM_COMPUTE_BUILD_EXAMPLES=1 \
51
68
-DARM_COMPUTE_BUILD_TESTING=1 \
52
- -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
53
- -DARM_COMPUTE_ARCH=native
69
+ -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE
54
70
set +x
55
71
elif [[ " $ACL_ACTION " == " build" ]]; then
56
72
set -x
57
- cmake --build $ACL_ROOT_DIR /build
73
+ # cmake --build $ACL_ROOT_DIR/build
74
+ cd $ACL_ROOT_DIR
75
+ set -x
76
+ scons $MP Werror=0 debug=$ACL_DEBUG neon=1 opencl=0 embed_kernels=0 \
77
+ os=$ACL_OS arch=armv8.2-a build=native multi_isa=$ACL_MULTI_ISA_SUPPORT \
78
+ fixed_format_kernels=1 cppthreads=0 openmp=$ACL_OPENMP examples=0 \
79
+ validation_tests=0
80
+ set +x
58
81
set +x
59
82
else
60
83
echo " Unknown action: $ACL_ACTION "
Original file line number Diff line number Diff line change 65
65
cmakeVersion : 3.31.0
66
66
ninjaVersion : 1.12.0
67
67
68
+ - name : Install Scons
69
+ uses : threeal/pipx-install-action@b0bf0add7d5aefda03a3d4e47d651df807889e10 # v1.0.0
70
+ with :
71
+ packages : scons
72
+
68
73
- name : Read version file
69
74
id : get-versions
70
75
run : |
@@ -116,6 +121,12 @@ jobs:
116
121
run : ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
117
122
env :
118
123
ACL_ACTION : build
124
+ ACL_ROOT_DIR : ${{ github.workspace }}/ComputeLibrary
125
+ ACL_THREADING : ${{ matrix.config.threading }}
126
+ BUILD_TOOLSET : ${{ matrix.config.toolset }}
127
+ CMAKE_BUILD_TYPE : ${{ matrix.config.build }}
128
+ CMAKE_GENERATOR : Ninja
129
+ GCC_VERSION : ${{ fromJson(steps.get-versions.outputs.output).dependencies.gcc }}
119
130
120
131
- name : Get system name
121
132
id : get_system_name
You can’t perform that action at this time.
0 commit comments