Skip to content

Commit 87f359d

Browse files
nSircombemgouicem
authored andcommitted
cpu: aarch64: build: update Compute Library min. version to 22.02
1 parent 5c68387 commit 87f359d

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

.github/automation/.drone.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ steps:
2929
- export DEBIAN_FRONTEND=noninteractive
3030
- apt-get update && apt-get install -y git build-essential cmake scons gcc-10 g++-10
3131
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 1 && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 1
32-
- .github/automation/build_acl.sh --version 21.11 --arch arm64-v8a --root-dir $(pwd)/ComputeLibrary
32+
- .github/automation/build_acl.sh --version 22.02 --arch arm64-v8a --root-dir $(pwd)/ComputeLibrary
3333
- .github/automation/build.sh --threading omp --mode Release --source-dir $(pwd) --build-dir $(pwd)/build --acl-dir $(pwd)/ComputeLibrary
3434
- .github/automation/test.sh --test-kind gtest --build-dir $(pwd)/build --report-dir $(pwd)/report
3535

@@ -83,7 +83,7 @@ steps:
8383
- .github/automation/env/clang.sh
8484
- export CC=clang
8585
- export CXX=clang++
86-
- .github/automation/build_acl.sh --version 21.11 --arch arm64-v8a --root-dir $(pwd)/ComputeLibrary
86+
- .github/automation/build_acl.sh --version 22.02 --arch arm64-v8a --root-dir $(pwd)/ComputeLibrary
8787
- .github/automation/build.sh --threading omp --mode Release --source-dir $(pwd) --build-dir $(pwd)/build --acl-dir $(pwd)/ComputeLibrary
8888
- .github/automation/test.sh --test-kind gtest --build-dir $(pwd)/build --report-dir $(pwd)/report
8989

@@ -114,7 +114,7 @@ steps:
114114
image: ubuntu:18.04
115115
commands:
116116
- apt-get update && apt-get install -y git build-essential cmake scons
117-
- .github/automation/build_acl.sh --version 21.11 --arch arm64-v8a --root-dir $(pwd)/ComputeLibrary
117+
- .github/automation/build_acl.sh --version 22.02 --arch arm64-v8a --root-dir $(pwd)/ComputeLibrary
118118
- .github/automation/build.sh --threading omp --mode Release --source-dir $(pwd) --build-dir $(pwd)/build --acl-dir $(pwd)/ComputeLibrary
119119
- .github/automation/test.sh --test-kind gtest --build-dir $(pwd)/build --report-dir $(pwd)/report
120120

.github/automation/build_acl.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22

33
# *******************************************************************************
4-
# Copyright 2020-2021 Arm Limited and affiliates.
4+
# Copyright 2020-2022 Arm Limited and affiliates.
55
# SPDX-License-Identifier: Apache-2.0
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,7 +18,7 @@
1818
# *******************************************************************************
1919

2020
# Compute Library build defaults
21-
ACL_VERSION="v21.11"
21+
ACL_VERSION="v22.02"
2222
ACL_DIR="${PWD}/ComputeLibrary"
2323
ACL_ARCH="arm64-v8a"
2424

@@ -47,11 +47,10 @@ done
4747
readonly ACL_REPO="https://github.com/ARM-software/ComputeLibrary.git"
4848
MAKE_NP="-j$(grep -c processor /proc/cpuinfo)"
4949

50-
git clone $ACL_REPO $ACL_DIR
50+
git clone --branch $ACL_VERSION --depth 1 $ACL_REPO $ACL_DIR
5151
cd $ACL_DIR
52-
git checkout $ACL_VERSION
5352

54-
scons $MAKE_NP Werror=0 debug=0 neon=1 gles_compute=0 embed_kernels=0 \
53+
scons --silent $MAKE_NP Werror=0 debug=0 neon=1 opencl=0 embed_kernels=0 \
5554
os=linux arch=$ACL_ARCH build=native
5655

5756
exit $?

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ integration. Compute Library is an open-source library for machine learning appl
9292
and provides AArch64 optimized implementations of core functions. This functionality currently
9393
requires that Compute Library is downloaded and built separately, see
9494
[Build from Source](https://oneapi-src.github.io/oneDNN/dev_guide_build.html). oneDNN is only
95-
compatible with Compute Library versions 21.11 or later.
95+
compatible with Compute Library versions 22.02 or later.
9696

9797
> **WARNING**
9898
>

cmake/ACL.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ******************************************************************************
2-
# Copyright 2020-2021 Arm Limited and affiliates.
2+
# Copyright 2020-2022 Arm Limited and affiliates.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -31,7 +31,7 @@ endif()
3131

3232
find_package(ACL REQUIRED)
3333

34-
set(ACL_MINIMUM_VERSION "21.11")
34+
set(ACL_MINIMUM_VERSION "22.02")
3535

3636
if(ACL_FOUND)
3737
file(GLOB_RECURSE ACL_VERSION_FILE $ENV{ACL_ROOT_DIR}/*/arm_compute_version.embed)

doc/build/build_options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ For a debug build of oneDNN it is advisable to specify a Compute Library build
240240
which has also been built with debug enabled.
241241

242242
@warning
243-
oneDNN is only compatible with Compute Library builds v21.11 or later.
243+
oneDNN is only compatible with Compute Library builds v22.02 or later.
244244

245245
#### Vendor BLAS libraries
246246
oneDNN can use a standard BLAS library for GEMM operations.

0 commit comments

Comments
 (0)