-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.sh
24 lines (24 loc) · 1.08 KB
/
.travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set -e
cd ./source
echo "Testing this implementation"
export CC=gcc-10 && export CXX=g++-10
$CXX --version
$CXX -DNDEBUG -fno-exceptions -fno-rtti -fopenmp -g0 -march=native -O3 -std=c++17 -o ./binarytrees ./binarytrees.cpp ;
time ./binarytrees 21
rm -rf ./binarytrees
export CC=clang-10 && export CXX=clang++-10
$CXX --version
$CXX -DNDEBUG -fno-exceptions -fno-rtti -fopenmp=libgomp -g0 -march=native -O3 -std=c++17 -o ./binarytrees ./binarytrees.cpp ;
time ./binarytrees 21
rm -rf ./binarytrees
echo "Testing the BenchmarksGame implementation"
export CC=gcc-10 && export CXX=g++-10
$CXX --version
$CXX -DNDEBUG -fno-exceptions -fno-rtti -fopenmp -g0 -march=native -O3 -std=c++17 -o ./binarytrees_benchmarksgame ./binarytrees_benchmarksgame.cpp ;
time ./binarytrees_benchmarksgame 21
rm -rf ./binarytrees_benchmarksgame
export CC=clang-10 && export CXX=clang++-10
$CXX --version
$CXX -DNDEBUG -fno-exceptions -fno-rtti -fopenmp=libgomp -g0 -march=native -O3 -std=c++17 -o ./binarytrees_benchmarksgame ./binarytrees_benchmarksgame.cpp ;
time ./binarytrees_benchmarksgame 21
rm -rf ./binarytrees_benchmarksgame