1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00
Grid/.travis.yml

110 lines
3.6 KiB
YAML
Raw Normal View History

2016-04-30 14:29:41 +01:00
language: cpp
2016-05-01 18:43:14 +01:00
2016-06-14 19:07:01 +01:00
cache:
directories:
- clang
2016-04-30 14:29:41 +01:00
matrix:
include:
2016-05-01 18:43:14 +01:00
- os: osx
osx_image: xcode7.2
compiler: clang
- os: osx
osx_image: xcode7.2
compiler: gcc
env: VERSION=-5
- compiler: gcc
2016-04-30 14:29:41 +01:00
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
2016-05-01 19:18:58 +01:00
- libmpfr-dev
- libgmp-dev
- libmpc-dev
- libopenmpi-dev
- openmpi-bin
2016-05-01 19:18:58 +01:00
- binutils-dev
2016-05-01 18:43:14 +01:00
env: VERSION=-4.9
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
2016-05-01 19:18:58 +01:00
- libmpfr-dev
- libgmp-dev
- libmpc-dev
- libopenmpi-dev
- openmpi-bin
2016-05-01 19:18:58 +01:00
- binutils-dev
2016-05-01 18:43:14 +01:00
env: VERSION=-5
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
2016-06-14 19:07:01 +01:00
- g++-4.8
2016-05-01 19:18:58 +01:00
- libmpfr-dev
- libgmp-dev
- libmpc-dev
- libopenmpi-dev
- openmpi-bin
2016-05-01 19:18:58 +01:00
- binutils-dev
2016-06-14 19:07:01 +01:00
env: CLANG_LINK=http://llvm.org/releases/3.8.0/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
2016-05-01 18:43:14 +01:00
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
2016-06-14 19:07:01 +01:00
- g++-4.8
2016-05-01 19:18:58 +01:00
- libmpfr-dev
- libgmp-dev
- libmpc-dev
- libopenmpi-dev
- openmpi-bin
2016-05-01 19:18:58 +01:00
- binutils-dev
2016-06-14 19:07:01 +01:00
env: CLANG_LINK=http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
2016-05-01 18:43:14 +01:00
before_install:
2016-06-14 19:07:01 +01:00
- export GRIDDIR=`pwd`
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]] && [ ! -e clang/bin ]; then wget $CLANG_LINK; tar -xf `basename $CLANG_LINK`; mkdir clang; mv clang+*/* clang/; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export PATH="${GRIDDIR}/clang/bin:${PATH}"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then export LD_LIBRARY_PATH="${GRIDDIR}/clang/lib:${LD_LIBRARY_PATH}"; fi
2016-05-01 19:18:58 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libmpc; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openmpi; fi
2016-05-01 19:34:20 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$CC" == "gcc" ]]; then brew install gcc5; fi
2016-05-01 19:32:28 +01:00
2016-05-01 18:43:14 +01:00
install:
- export CC=$CC$VERSION
- export CXX=$CXX$VERSION
2016-06-14 19:07:01 +01:00
- echo $PATH
- which $CC
- $CC --version
- which $CXX
- $CXX --version
2016-05-01 19:32:28 +01:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LDFLAGS='-L/usr/local/lib'; fi
2016-05-01 18:43:14 +01:00
script:
2016-08-01 09:38:40 +01:00
- ./bootstrap.sh
2016-05-01 18:43:14 +01:00
- mkdir build
- cd build
2016-08-01 09:38:40 +01:00
- ../configure --enable-precision=single --enable-simd=SSE4 --enable-comms=none
- make -j4
2016-05-01 23:04:52 +01:00
- ./benchmarks/Benchmark_dwf --threads 1
2016-07-07 22:51:37 +01:00
- echo make clean
2016-08-01 09:38:40 +01:00
- ../configure --enable-precision=double --enable-simd=SSE4 --enable-comms=none
2016-07-01 16:33:51 +01:00
- make -j4
- ./benchmarks/Benchmark_dwf --threads 1
- echo make clean
2016-08-06 00:49:14 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXXFLAGS='-DMPI_UINT32_T=MPI_UNSIGNED -DMPI_UINT64_T=MPI_UNSIGNED_LONG'; fi
- ../configure --enable-precision=single --enable-simd=SSE4 --enable-comms=mpi-auto
- make -j4
2016-08-06 00:36:05 +01:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mpirun.openmpi -n 2 ./benchmarks/Benchmark_dwf --threads 1 --mpi 2.1.1.1; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mpirun -n 2 ./benchmarks/Benchmark_dwf --threads 1 --mpi 2.1.1.1; fi