-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
52 lines (49 loc) · 1.69 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
dist: xenial
language: cpp
addons:
apt:
packages:
- libtool-bin
- libmpich-dev
install:
# Install ROSS
- |
git clone https://github.com/ROSS-org/ROSS.git ${TRAVIS_BUILD_DIR}/ci-build-deps/ROSS
pushd ${TRAVIS_BUILD_DIR}/ci-build-deps/ROSS
mkdir build
cd build
ARCH=x86_64 CC=mpicc CXX=mpicxx cmake -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/ci-deps/ROSS ../
make -j3
make install
popd
# Install CODES
- |
git clone https://xgitlab.cels.anl.gov/codes/codes.git ${TRAVIS_BUILD_DIR}/ci-build-deps/CODES
pushd ${TRAVIS_BUILD_DIR}/ci-build-deps/CODES
./prepare.sh
mkdir build
cd build
../configure --prefix=${TRAVIS_BUILD_DIR}/ci-deps/CODES CC=mpicc CXX=mpicxx PKG_CONFIG_PATH=${TRAVIS_BUILD_DIR}/ci-deps/ROSS/lib/pkgconfig
# add --with-dumpi=/path/to/dumpi/install here to enable tracing with dumpi; only needs libundumpi, so can use --disable-libdumpi and --enable-libundumpi when installing DUMPI
make -j3
make install
popd
# Install OTF2
- |
mkdir ${TRAVIS_BUILD_DIR}/ci-build-deps/
pushd ${TRAVIS_BUILD_DIR}/ci-build-deps/
wget https://www.vi-hps.org/cms/upload/packages/otf2/otf2-2.1.1.tar.gz
tar -xf otf2-2.1.1.tar.gz
cd otf2-2.1.1
mkdir build
cd build
../configure --prefix=${TRAVIS_BUILD_DIR}/ci-deps/OTF2 CC=mpicc CXX=mpicxx --enable-shared
make -j3
make install
popd
export PATH=$PATH:${TRAVIS_BUILD_DIR}/ci-deps/OTF2/bin
script:
- cd tracer
- make all PREFIX=${TRAVIS_BUILD_DIR}/install-test CXX=mpicc CXX=mpicxx ROSS_DIR="${TRAVIS_BUILD_DIR}/ci-deps/ROSS" CODES_DIR="${TRAVIS_BUILD_DIR}/ci-deps/CODES" SELECT_TRACE="-DTRACER_OTF_TRACES=1"
- cd ../utils
- make