mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
115 lines
3.5 KiB
YAML
115 lines
3.5 KiB
YAML
language: cpp
|
|
|
|
cache:
|
|
directories:
|
|
- clang
|
|
|
|
matrix:
|
|
include:
|
|
- os: osx
|
|
osx_image: xcode8.3
|
|
compiler: clang
|
|
- compiler: gcc
|
|
dist: trusty
|
|
sudo: required
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.9
|
|
- libmpfr-dev
|
|
- libgmp-dev
|
|
- libmpc-dev
|
|
- libopenmpi-dev
|
|
- openmpi-bin
|
|
- binutils-dev
|
|
env: VERSION=-4.9
|
|
- compiler: gcc
|
|
dist: trusty
|
|
sudo: required
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-5
|
|
- libmpfr-dev
|
|
- libgmp-dev
|
|
- libmpc-dev
|
|
- libopenmpi-dev
|
|
- openmpi-bin
|
|
- binutils-dev
|
|
env: VERSION=-5
|
|
- compiler: clang
|
|
dist: trusty
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.8
|
|
- libmpfr-dev
|
|
- libgmp-dev
|
|
- libmpc-dev
|
|
- libopenmpi-dev
|
|
- openmpi-bin
|
|
- binutils-dev
|
|
env: CLANG_LINK=http://llvm.org/releases/3.8.0/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
|
|
- compiler: clang
|
|
dist: trusty
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-4.8
|
|
- libmpfr-dev
|
|
- libgmp-dev
|
|
- libmpc-dev
|
|
- libopenmpi-dev
|
|
- openmpi-bin
|
|
- binutils-dev
|
|
env: CLANG_LINK=http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
|
|
|
|
before_install:
|
|
- 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
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libmpc; fi
|
|
|
|
install:
|
|
- export CC=$CC$VERSION
|
|
- export CXX=$CXX$VERSION
|
|
- echo $PATH
|
|
- which autoconf
|
|
- autoconf --version
|
|
- which automake
|
|
- automake --version
|
|
- which $CC
|
|
- $CC --version
|
|
- which $CXX
|
|
- $CXX --version
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export LDFLAGS='-L/usr/local/lib'; fi
|
|
|
|
script:
|
|
- ./bootstrap.sh
|
|
- mkdir build
|
|
- cd build
|
|
- ../configure --enable-precision=single --enable-simd=SSE4 --enable-comms=none
|
|
- make -j4
|
|
- ./benchmarks/Benchmark_dwf --threads 1 --debug-signals
|
|
- echo make clean
|
|
- ../configure --enable-precision=double --enable-simd=SSE4 --enable-comms=none
|
|
- make -j4
|
|
- ./benchmarks/Benchmark_dwf --threads 1 --debug-signals
|
|
- make check
|
|
- echo make clean
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then ../configure --enable-precision=single --enable-simd=SSE4 --enable-comms=mpi-auto ; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then make -j4; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CC" == "clang" ]]; then mpirun.openmpi -n 2 ./benchmarks/Benchmark_dwf --threads 1 --mpi 2.1.1.1; fi
|
|
|
|
|