Skip to content

Commit d9c4f82

Browse files
authored
[CI][ETHOSN] Enable CI for Ethos-N (apache#6171)
This introduces the necessary changes to docker to support building the Ethos-N driver stack. This is required for subsequent patches which introduce the Ethos-N integration into TVM. Co-authored-by: Leo Blonk <[email protected]> Co-authored-by: Leandro Nunes <[email protected]> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Mon Jul 27 15:43:41 2020 +0100 # # On branch ethosn-ci # Changes to be committed: # modified: docker/Dockerfile.ci_cpu # new file: docker/install/ubuntu_install_ethosn_driver_stack.sh # # Untracked files: # CombinedMemoryMap.hex # OutputModel.hex # config.txt # docker/install/ethosn_cap/ # docker/install/ethosn_driver_dev-20.05-dbg-20200612-141030.tar.gz # ssd.npy # tests/python/integration/test_tir_gemm.py # tests/python/relay/test_pattern_annotate.py # tests/python/unittest/failure.py #
1 parent 02b36e7 commit d9c4f82

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

docker/Dockerfile.ci_cpu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,7 @@ RUN bash /install/ubuntu_install_arm_compute_lib.sh
8282
# Caffe deps
8383
COPY install/ubuntu_install_caffe.sh /install/ubuntu_install_caffe.sh
8484
RUN bash /install/ubuntu_install_caffe.sh
85+
86+
# Github Arm(R) Ethos(TM)-N NPU driver
87+
COPY install/ubuntu_install_ethosn_driver_stack.sh /install/ubuntu_install_ethosn_driver_stack.sh
88+
RUN bash /install/ubuntu_install_ethosn_driver_stack.sh
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
19+
set -e
20+
set -u
21+
set -o pipefail
22+
23+
repo_url="https://github.com/Arm-software/ethos-n-driver-stack"
24+
repo_dir="ethosn-driver"
25+
repo_revision="20.05"
26+
install_path="/opt/arm/$repo_dir"
27+
28+
tmpdir=$(mktemp -d)
29+
30+
cleanup()
31+
{
32+
rm -rf "$tmpdir"
33+
}
34+
35+
trap cleanup 0
36+
37+
# Ubuntu 16.04 dependencies
38+
apt-get update
39+
40+
apt-get install -y \
41+
bsdmainutils \
42+
build-essential \
43+
cmake \
44+
cpp \
45+
git \
46+
linux-headers-generic \
47+
python-dev \
48+
python3 \
49+
scons \
50+
wget
51+
52+
cd "$tmpdir"
53+
git clone "$repo_url" "$repo_dir"
54+
55+
cd "$repo_dir"
56+
git checkout "$repo_revision"
57+
58+
cd "driver"
59+
scons install_prefix="$install_path" install
60+

0 commit comments

Comments
 (0)