-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
38 lines (31 loc) · 1.25 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
language: c
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- ccache
- gcc-5
- g++-5
- gfortran-5
before_install:
- export FC=gfortran-${GVER} CC=gcc-${GVER} CXX=g++-${GVER}
- wget -qO- --no-check-certificate https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-${OMPI}.tar.bz2 | tar -xj &&
cd openmpi-${OMPI} && mkdir build && cd build && ../configure CFLAGS="-w" --prefix=${HOME}/open-mpi
--without-verbs --without-fca --without-mxm --without-ucx --without-portals4 --without-psm --without-psm2 --without-libfabric --without-usnic --without-udreg --without-ugni --without-xpmem --without-alps --without-munge --without-sge --without-loadleveler --without-tm
--without-lsf --without-slurm --without-pvfs2 --without-plfs --without-cuda --disable-oshmem --enable-mpi-fortran --disable-oshmem-fortran --disable-libompitrace --disable-mpi-io --disable-io-romio --disable-static &&
make -j4 && make install && cd ../../
- export PATH="$HOME/open-mpi/bin:$PATH"
env:
global:
- CCACHE_CPP2=yes
- GVER=5
- OMPI=1.10.2
script:
- make -C src -j2 && make -C src count
- make -C ports/snap-c -j2 CC=mpicc CFLAGS="-O3 -std=c99 -fopenmp" LIBS="-lm"
cache:
- ccache
compiler:
- gcc