forked from StanfordLegion/legion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
115 lines (110 loc) · 3.78 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
language: cpp
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- gcc
- clang
env:
global:
- WARN_AS_ERROR=1
- REALM_SYNTHETIC_CORE_MAP=""
matrix:
- CC_FLAGS="-std=c++98" DEBUG=0
- CC_FLAGS="-std=c++98 -DPRIVILEGE_CHECKS -DBOUNDS_CHECKS" DEBUG=1
- CC_FLAGS="-std=c++98 -DLEGION_SPY" DEBUG=1 TEST_SPY=1
- CC_FLAGS="-std=c++0x" DEBUG=0
# - CC_FLAGS="-std=c++98" DEBUG=1 USE_GASNET=1 USE_LLVM=1 DISABLE_INNER=1
matrix:
exclude:
- os: osx
compiler: gcc
# blacklist some branches
branches:
only:
- stable
- master
before_install:
- export THREADS=2
- |
if [[ "$(uname)" = "Linux" ]]; then
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo add-apt-repository ppa:pypy/ppa -y
sudo apt-get update -qq
sudo apt-get install -qq g++-4.9 clang-3.5 libclang-3.5-dev llvm-3.5-dev openmpi-bin libopenmpi-dev libblas-dev liblapack-dev pypy
fi
- |
if [[ "$(uname)" = "Darwin" ]]; then
brew update
brew install pypy homebrew/versions/llvm35
fi
- if [[ "$(uname)" = "Linux" && "$CXX" = "g++" ]]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [[ "$(uname)" = "Linux" && "$CXX" = "clang++" ]]; then export CXX="clang++-3.5" CC="clang-3.5"; fi
- if [[ "$(uname)" = "Linux" ]]; then export LLVM_CONFIG="llvm-config-3.5"; fi
- |
if [[ "$USE_GASNET" -eq 1 ]]; then
export CONDUIT=mpi
export GASNET_ROOT="$PWD/gasnet/release"
export LAUNCHER="mpirun -n 2 -bind-to none -x TERRA_PATH -x INCLUDE_PATH -x LD_LIBRARY_PATH -x LG_RT_DIR"
unset WARN_AS_ERROR
git clone https://github.com/StanfordLegion/gasnet.git gasnet
pushd gasnet
make -j$THREADS
popd
fi
script:
- export LG_RT_DIR=$PWD/runtime
# Regent
- ./language/travis.py
# Legion tutorials
- |
make -s -C tutorial/00_hello_world -j$THREADS
tutorial/00_hello_world/hello_world -logfile out_%.log
make -s -C tutorial/01_tasks_and_futures
tutorial/01_tasks_and_futures/tasks_and_futures -logfile out_%.log
make -s -C tutorial/02_index_tasks
tutorial/02_index_tasks/index_tasks -logfile out_%.log
make -s -C tutorial/03_global_vars
tutorial/03_global_vars/global_vars -logfile out_%.log
make -s -C tutorial/04_logical_regions
tutorial/04_logical_regions/logical_regions -logfile out_%.log
make -s -C tutorial/05_physical_regions
tutorial/05_physical_regions/physical_regions -logfile out_%.log
make -s -C tutorial/06_privileges
tutorial/06_privileges/privileges -logfile out_%.log
make -s -C tutorial/07_partitioning
tutorial/07_partitioning/partitioning -logfile out_%.log
make -s -C tutorial/08_multiple_partitions
tutorial/08_multiple_partitions/multiple_partitions -logfile out_%.log
make -s -C tutorial/09_custom_mapper
tutorial/09_custom_mapper/custom_mapper -logfile out_%.log
# Legion examples
- |
make -s -C examples/full_circuit
examples/full_circuit/ckt_sim -logfile out_%.log
make -s -C examples/full_ghost
examples/full_ghost/ghost -ll:cpu 4 -logfile out_%.log
make -s -C examples/spmd_cgsolver
examples/spmd_cgsolver/cgsolver -ll:cpu 4 -perproc -logfile out_%.log
# Legion fuzz tester
- |
# if [[ "$TEST_SPY" -eq 1 ]]; then
if [[ "$DEBUG" -eq 1 ]]; then
git clone https://github.com/StanfordLegion/fuzz-tester fuzz-tester
pushd fuzz-tester
WARN_AS_ERROR=0 python main.py
popd
fi
# Realm
- |
if [[ "$DEBUG" -eq 0 ]]; then
make -s -C test/realm DEBUG=0 SHARED_LOWLEVEL=0 USE_CUDA=0 USE_GASNET=0 clean
make -s -C test/realm DEBUG=0 SHARED_LOWLEVEL=0 USE_CUDA=0 USE_GASNET=0 run_all
fi
- |
if [[ "$DEBUG" -eq 0 ]]; then
make -s -C test/performance/realm SHARED_LOWLEVEL=0 clean_all
make -s -C test/performance/realm SHARED_LOWLEVEL=0 run_all
fi