Skip to content

Commit 91d3636

Browse files
author
RuQing Xu
committed
Travis Support Arm SVE
- Updated distro to 20.04 focal aarch64-gcc-10. This is minimal version required by aarch64-gcc-10. SVE intrinsics would not compile without GCC >=10. - x86 toolchains use official repo instead of ubuntu-toolchain-r/test. 20.04 focal is not supported by that PPA at the moment. - Add extra configuration-time options to .travis.yml. - Add Arm SVE entry to .travis.yml.
1 parent 61584de commit 91d3636

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

.travis.yml

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,83 @@
11
language: c
22
sudo: required
3-
dist: trusty
3+
dist: focal
44
matrix:
55
include:
66
# full testsuite (all tests except for mixed datatype)
77
- os: linux
88
compiler: gcc
9-
env: OOT=0 TEST=1 SDE=0 THR="none" CONF="auto"
9+
env: OOT=0 TEST=1 SDE=0 THR="none" CONF="auto" \
10+
PACKAGES="gcc-8 binutils"
1011
# mixed-datatype testsuite (gemm_nn only)
1112
- os: linux
1213
compiler: gcc
13-
env: OOT=0 TEST=MD SDE=0 THR="none" CONF="auto"
14+
env: OOT=0 TEST=MD SDE=0 THR="none" CONF="auto" \
15+
PACKAGES="gcc-8 binutils"
1416
# salt testsuite (fast set of operations+parameters)
1517
- os: linux
1618
compiler: gcc
17-
env: OOT=0 TEST=SALT SDE=0 THR="none" CONF="auto"
19+
env: OOT=0 TEST=SALT SDE=0 THR="none" CONF="auto" \
20+
PACKAGES="gcc-8 binutils"
1821
# test x86_64 ukrs with SDE
1922
- os: linux
2023
compiler: gcc
21-
env: OOT=0 TEST=0 SDE=1 THR="none" CONF="x86_64"
24+
env: OOT=0 TEST=0 SDE=1 THR="none" CONF="x86_64" \
25+
PACKAGES="gcc-8 binutils"
2226
# openmp build
2327
- os: linux
2428
compiler: gcc
25-
env: OOT=0 TEST=0 SDE=0 THR="openmp" CONF="auto"
29+
env: OOT=0 TEST=0 SDE=0 THR="openmp" CONF="auto" \
30+
PACKAGES="gcc-8 binutils"
2631
# pthreads build
2732
- os: linux
2833
compiler: gcc
29-
env: OOT=0 TEST=0 SDE=0 THR="pthreads" CONF="auto"
34+
env: OOT=0 TEST=0 SDE=0 THR="pthreads" CONF="auto" \
35+
PACKAGES="gcc-8 binutils"
3036
# out-of-tree build
3137
- os: linux
3238
compiler: gcc
33-
env: OOT=1 TEST=0 SDE=0 THR="none" CONF="auto"
39+
env: OOT=1 TEST=0 SDE=0 THR="none" CONF="auto" \
40+
PACKAGES="gcc-8 binutils"
3441
# clang build
3542
- os: linux
3643
compiler: clang
37-
env: OOT=0 TEST=0 SDE=0 THR="none" CONF="auto"
44+
env: OOT=0 TEST=0 SDE=0 THR="none" CONF="auto" \
45+
PACKAGES="clang-8 binutils"
3846
# macOS with system compiler (clang)
3947
- os: osx
4048
compiler: clang
41-
env: OOT=0 TEST=1 SDE=0 THR="none" CONF="auto"
49+
env: OOT=0 TEST=1 SDE=0 THR="none" CONF="auto" \
50+
PACKAGES="clang-8 binutils"
4251
# cortexa15 build and fast testsuite (qemu)
4352
- os: linux
4453
compiler: arm-linux-gnueabihf-gcc
4554
env: OOT=0 TEST=FAST SDE=0 THR="none" CONF="cortexa15" \
46-
PACKAGES="gcc-arm-linux-gnueabihf qemu-system-arm qemu-user" \
55+
PACKAGES="gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-system-arm qemu-user" \
4756
TESTSUITE_WRAPPER="qemu-arm -cpu cortex-a15 -L /usr/arm-linux-gnueabihf/"
4857
# cortexa57 build and fast testsuite (qemu)
4958
- os: linux
5059
compiler: aarch64-linux-gnu-gcc
5160
env: OOT=0 TEST=FAST SDE=0 THR="none" CONF="cortexa57" \
52-
PACKAGES="gcc-aarch64-linux-gnu qemu-system-arm qemu-user" \
61+
PACKAGES="gcc-aarch64-linux-gnu libc6-dev-arm64-cross qemu-system-arm qemu-user" \
5362
TESTSUITE_WRAPPER="qemu-aarch64 -L /usr/aarch64-linux-gnu/"
63+
# armsve build and fast testsuite (qemu)
64+
- os: linux
65+
compiler: aarch64-linux-gnu-gcc-10
66+
env: OOT=0 TEST=FAST SDE=0 THR="none" CONF="armsve" \
67+
PACKAGES="gcc-10-aarch64-linux-gnu libc6-dev-arm64-cross qemu-system-arm qemu-user" \
68+
TESTSUITE_WRAPPER="qemu-aarch64 -cpu max,sve=true,sve512=true -L /usr/aarch64-linux-gnu/"
5469
install:
55-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo rm -f /usr/bin/as; fi
56-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ln -s /usr/lib/binutils-2.26/bin/as /usr/bin/as; fi
57-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo rm -f /usr/bin/ld; fi
58-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo ln -s /usr/lib/binutils-2.26/bin/ld /usr/bin/ld; fi
59-
- if [ "$CC" = "gcc" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CC="gcc-6"; fi
70+
- if [ "$CC" = "clang" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CC="clang-8"; fi
71+
- if [ "$CC" = "gcc" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CC="gcc-8" ; fi
6072
- if [ -n "$PACKAGES" ]; then sudo apt-get install -y $PACKAGES; fi
61-
addons:
62-
apt:
63-
sources:
64-
- ubuntu-toolchain-r-test
65-
packages:
66-
- gcc-6
67-
- binutils-2.26
68-
- clang
6973
script:
7074
- export DIST_PATH=.
71-
- pwd
7275
- if [ $OOT -eq 1 ]; then export DIST_PATH=`pwd`; mkdir ../oot; cd ../oot; chmod -R a-w $DIST_PATH; fi
76+
- $DIST_PATH/configure -t $THR CC=$CC CFLAGS=$CFLAGS $CONF
77+
- $CC --version
7378
- pwd
74-
- $DIST_PATH/configure -t $THR CC=$CC $CONF
75-
- pwd
79+
- env
7680
- ls -l
77-
- $CC --version
78-
- make -j 2
81+
- make -j 2 V=1
7982
- if [ "$TEST" != "0" ]; then travis_wait 30 $DIST_PATH/travis/do_testsuite.sh; fi
8083
- if [ "$SDE" = "1" ]; then travis_wait 30 $DIST_PATH/travis/do_sde.sh; fi

0 commit comments

Comments
 (0)