From 82d4c25f403adc59a297922876e862cfdff571e4 Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Thu, 17 Dec 2020 15:30:44 +0000 Subject: [PATCH] Add ACL testing to the CI for AArch64. Add testing for ACL to the CI for AArch64. A PR follows to add this to the Jenkinsfile once the docker changes land. We also need a separate script to run the tests as the full integration tests are currently broken. --- docker/Dockerfile.ci_arm | 4 +++ tests/scripts/task_config_build_arm.sh | 1 + .../task_python_arm_compute_library.sh | 30 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100755 tests/scripts/task_python_arm_compute_library.sh diff --git a/docker/Dockerfile.ci_arm b/docker/Dockerfile.ci_arm index f5b2c2af0fbf..020792700ee9 100644 --- a/docker/Dockerfile.ci_arm +++ b/docker/Dockerfile.ci_arm @@ -41,3 +41,7 @@ RUN bash /install/ubuntu_install_python_package.sh # AutoTVM deps COPY install/ubuntu_install_redis.sh /install/ubuntu_install_redis.sh RUN bash /install/ubuntu_install_redis.sh + +# Arm(R) Compute Library +COPY install/ubuntu_install_arm_compute_lib.sh /install/ubuntu_install_arm_compute_lib.sh +RUN bash /install/ubuntu_install_arm_compute_lib.sh diff --git a/tests/scripts/task_config_build_arm.sh b/tests/scripts/task_config_build_arm.sh index 65f5d6359dac..80527466c71e 100755 --- a/tests/scripts/task_config_build_arm.sh +++ b/tests/scripts/task_config_build_arm.sh @@ -34,3 +34,4 @@ echo set\(CMAKE_CXX_COMPILER g++\) >> config.cmake echo set\(CMAKE_CXX_FLAGS -Werror\) >> config.cmake echo set\(USE_VTA_TSIM ON\) >> config.cmake echo set\(USE_VTA_FSIM ON\) >> config.cmake +echo set\(USE_ARM_COMPUTE_LIB ON\) >> config.cmake diff --git a/tests/scripts/task_python_arm_compute_library.sh b/tests/scripts/task_python_arm_compute_library.sh new file mode 100755 index 000000000000..e36d042676d6 --- /dev/null +++ b/tests/scripts/task_python_arm_compute_library.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e +set -u +source tests/scripts/setup-pytest-env.sh + + +# Rebuild cython + +find . -type f -path "*.pyc" | xargs rm -f +make cython3 + +TVM_FFI=ctypes python3 -m pytest tests/python/contrib/test_arm_compute_lib +