forked from xtensor-stack/xsimd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
203 lines (203 loc) · 6.55 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
language: cpp
dist: xenial
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: COMPILER=gcc GCC=4.9
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env: COMPILER=gcc GCC=5
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env: COMPILER=gcc GCC=6 FORCE_NO_INSTR_SET=1
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env: COMPILER=gcc GCC=6 ENABLE_XTL_COMPLEX=1
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env: COMPILER=gcc GCC=7 ENABLE_FALLBACK=1 ENABLE_XTL_COMPLEX=1
- os: linux
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
env: AVX512=1
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang-4.0
- g++-4.9-arm-linux-gnueabi
- g++-4.9-multilib
- gcc-4.9-multilib
- qemu
- qemu-system-arm
env: COMPILER=clang CLANG=4.0 CROSS_COMPILE=1 ARM_ARCH_DIR=arm-linux-gnueabi GCC_VER=4.9.3 ARM_SETTINGS="armv7-a -mfpu=neon -mfloat-abi=softfp -target arm-linux-gnueabi"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang-4.0
- g++-4.9-arm-linux-gnueabi
- g++-4.9-multilib
- gcc-4.9-multilib
- qemu
- qemu-system-arm
env: COMPILER=clang CLANG=4.0 CROSS_COMPILE=1 ARM_ARCH_DIR=arm-linux-gnueabi GCC_VER=4.9.3 ARM_SETTINGS="armv8-a -mfpu=neon -mfloat-abi=softfp -target arm-linux-gnueabi"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- clang-4.0
- g++-4.9-aarch64-linux-gnu
- gcc-4.9-aarch64-linux-gnu
- g++-4.9-multilib
- gcc-4.9-multilib
- qemu
- qemu-system-arm
env: COMPILER=clang CLANG=4.0 CROSS_COMPILE=1 ARM_ARCH_DIR=aarch64-linux-gnu GCC_VER=4.9.3 ARM_SETTINGS="armv8-a -target aarch64-linux-gnueabi"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- clang-4.0
env: COMPILER=clang CLANG=4.0
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-5.0
packages:
- g++-4.9
- clang-5.0
env: COMPILER=clang CLANG=5.0
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-6.0
packages:
- clang-6.0
env: COMPILER=clang CLANG=6.0
- os: osx
osx_image: xcode8
compiler: clang
env:
global:
- MINCONDA_VERSION="latest"
- MINCONDA_LINUX="Linux-x86_64"
- MINCONDA_OSX="MacOSX-x86_64"
before_install:
- |
# Configure build variables
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$COMPILER" == "gcc" ]]; then
export CXX=g++-$GCC CC=gcc-$GCC;
fi
if [[ "$COMPILER" == "clang" ]]; then
export CXX=clang++-$CLANG CC=clang-$CLANG;
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export CXX=clang++ CC=clang;
fi
install:
# Define the version of miniconda to download
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
MINCONDA_OS=$MINCONDA_LINUX;
cat /proc/cpuinfo;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
MINCONDA_OS=$MINCONDA_OSX;
fi
- wget "http://repo.continuum.io/miniconda/Miniconda3-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda install gtest cmake -c conda-forge
- if [[ "$ENABLE_XTL_COMPLEX" == 1 ]] ; then
conda install xtl -c conda-forge ;
fi
- if [[ "$CROSS_COMPILE" == 1 ]] ; then
if [[ "$ARM_ARCH_DIR" == "aarch64-linux-gnu" ]] ; then
mkdir $HOME/linker_bin ;
ln -s /usr/bin/aarch64-linux-gnu-ld $HOME/linker_bin/ld ;
echo "SETTING GNU LINKER DIR" ;
ls -al $HOME/linker_bin/ld ;
cmake . -DDOWNLOAD_GTEST=ON -DCROSS_COMPILE_ARM=ON -DDOWNLOAD_GTEST=ON -DARM_ARCH_DIRECTORY="$ARM_ARCH_DIR" -DARM_GCC_VER="$GCC_VER" -DTARGET_ARCH="$ARM_SETTINGS --prefix=$HOME/linker_bin/" ;
else
cmake . -DDOWNLOAD_GTEST=ON -DCROSS_COMPILE_ARM=ON -DDOWNLOAD_GTEST=ON -DARM_ARCH_DIRECTORY="$ARM_ARCH_DIR" -DARM_GCC_VER="$GCC_VER" -DTARGET_ARCH="$ARM_SETTINGS" ;
fi
elif [[ "$ENABLE_FALLBACK" == 1 ]] ; then
cmake -DDOWNLOAD_GTEST=ON -DENABLE_FALLBACK=ON -DENABLE_XTL_COMPLEX=ON . ;
elif [[ "$ENABLE_XTL_COMPLEX" == 1 ]] ; then
cmake -DDOWNLOAD_GTEST=ON -DENABLE_XTL_COMPLEX=ON . ;
elif [[ "$AVX512" == 1 ]] ; then
conda install gcc_linux-64 gxx_linux-64 ;
conda install -c conda-forge beautifulsoup4==4.6.3 ;
sh install_sde.sh ;
export PATH="$HOME/miniconda/bin:$PATH" ;
export CC=x86_64-conda_cos6-linux-gnu-gcc CXX=x86_64-conda_cos6-linux-gnu-g++ ;
which $CXX ;
cmake . -DDOWNLOAD_GTEST=ON -DTARGET_ARCH=skylake-avx512 -DCMAKE_INSTALL_PREFIX=$HOME/miniconda -DDOWNLOAD_GTEST=ON ;
else
cmake . -DDOWNLOAD_GTEST=ON ;
fi
- if [[ "$FORCE_NO_INSTR_SET" == 1 ]] ; then
cmake . -DDOWNLOAD_GTEST=ON -DXSIMD_FORCE_X86_INSTR_SET=0 -DXSIMD_FORCE_X86_AMD_INSTR_SET=0 ;
fi
- make -j2 test_xsimd
- cd test
script:
- if [[ "$CROSS_COMPILE" == 1 ]]; then
if [[ "$ARM_ARCH_DIR" == "aarch64-linux-gnu" ]]; then
qemu-aarch64 -L /usr/aarch64-linux-gnu/ ./test_xsimd ;
else
qemu-arm -L /usr/arm-linux-gnueabi/ ./test_xsimd ;
fi
elif [[ "$AVX512" == 1 ]] ; then
uname -m ;
../intel-sde-downloader/sde-external-8.35.0-2019-03-11-lin/sde64 -skx -- ./test_xsimd ;
else
./test_xsimd;
fi