forked from LLNL/RAJA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (99 loc) · 4.37 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
sudo: required
services: docker
dist: trusty
language: cpp
env:
global:
- secure: xN+lGOH8LzepE1OoOrHelDgu1wf7nL/B7nBWhN7EnCB7S7hZJL/AakruHy4lMfQfF4XkrnPWmBlmc4wdLH+o6jPkUISm4nLRSTMnRV2L+Mjyzg3aIEua0xpO6rLUNgsShB8mfkieTJq+kSj3Yp2CM7GEzm+UNNxeJcY0VdUHy9msRRRbXiLViIrfwBEVC9He7xG9NWfqkpsORfoiPmVDm7YzuXALdB8qkX4AWggysz/BCVj0PwBMr754eEpOodQ9GeKDF2Kwy5vPAqK5f7zwshJtF9VevyA1A2M9y8BHJMymz4wGaSxLNMeUU85AmVIvmzX0weG94JQ7mlUVszNpO5CCIyjwCOF+IDUI8HCDJGOY7+gGnv4H2LhDwAXvFLD65FlMntQQe2e4KRTnFxtJvvghjv5FyxJSHwctLsgeDpr2uZDcAhK1yf8TNsqqMiXQj2yGLByJy8j5PjUyd8oN47uZo0T5DDMd5c3ztUppc5+DisIoqmoYQeom3lYbpeudaf492ZDBWEV4rS9COl1h7CnpanMBpXWLFc2zXyfTpRn3GifutiF8M3rSS2KHcPyb9JLePTrC4+itMkwB4SHo1VYk4H2RQAdPMDFHMKCeVs2Z4sF9pGPJR+JzRekaKFLDm73ihsuE0cnx1oPVQMjSWa0e7A1a9W4UQBvp9xR++i4=
- OMP_NUM_THREADS=3
- DO_BUILD=yes
- DO_TEST=yes
matrix:
include:
- compiler: gcc6
env:
- COMPILER=g++
- IMG=gcc6
- CMAKE_EXTRA_FLAGS="-DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_TBB=On -DRAJA_ENABLE_RUNTIME_PLUGINS=On"
- compiler: gcc7
env:
- COMPILER=g++
- IMG=gcc7
- CMAKE_EXTRA_FLAGS="-DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_TBB=On"
- compiler: gcc8
env:
- COMPILER=g++
- IMG=gcc8
- CMAKE_EXTRA_FLAGS="-DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_TBB=On -DRAJA_ENABLE_BOUNDS_CHECK=ON"
- compiler: clang9
env:
- COMPILER=clang++-9
- IMG=clang9
- CMAKE_EXTRA_FLAGS="-DCMAKE_CXX_FLAGS=-fmodules -DRAJA_ENABLE_TBB=On"
- compiler: intel18
env:
- COMPILER=/opt/intel/bin/icpc
- IMG=icc18
- CMAKE_EXTRA_FLAGS="-DRAJA_ENABLE_FORCEINLINE_RECURSIVE=Off -DRAJA_ENABLE_TBB=On -DBLT_CXX_STD=c++14"
- compiler: nvcc10.2
env:
- COMPILER=g++
- IMG=nvcc10.2
- CMAKE_EXTRA_FLAGS="-DENABLE_CUDA=On -DRAJA_ENABLE_TBB=On"
- DO_TEST=no
- compiler: gcc-8-debug
env:
- COMPILER=g++
- IMG=gcc8
- CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_WARNINGS=On -DENABLE_WARNINGS_AS_ERRORS=On -DENABLE_COVERAGE=On -DENABLE_TBB=On"
- compiler: clang-9-debug
env:
- COMPILER=clang++-9
- IMG=clang9
- CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DRAJA_ENABLE_TBB=On -DCMAKE_CXX_FLAGS=-fsanitize=address"
- ASAN_OPTIONS=detect_leaks=0
- "LSAN_OPTIONS=verbosity=1:log_threads=1"
- compiler: nvcc-debug
env:
- COMPILER=g++
- IMG=nvcc10.2
- CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Debug -DENABLE_CUDA=On -DRAJA_ENABLE_WARNINGS=On -DRAJA_ENABLE_WARNINGS_AS_ERRORS=On -DRAJA_ENABLE_TBB=On"
- DO_TEST=no
# Disable Clang Cuda until we update some things
# - compiler: clang9-cuda9.1
# env:
# - COMPILER=clang++-9
# - IMG=clang9
# - CMAKE_EXTRA_FLAGS="-DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=Off -DENABLE_CLANG_CUDA=On -DBLT_CLANG_CUDA_ARCH=sm_60 -DENABLE_CUDA=On -DCUDA_ARCH=sm_60 -DCUDA_TOOLKIT_ROOT_DIR:PATH='/usr/lib/cuda' "
# - DO_TEST=no
- compiler: hip
env:
- COMPILER=g++
- IMG=hip
- HCC_AMDGPU_TARGET=gfx900
- CMAKE_EXTRA_FLAGS="-DENABLE_HIP=On -DENABLE_OPENMP=Off -DENABLE_CUDA=Off -DRAJA_ENABLE_WARNINGS_AS_ERRORS=Off -DHIP_HIPCC_FLAGS=-fPIC"
- DO_TEST=no
before_install: # don't try to build and run intel when it's not possible
- |
if [[ "x$encrypted_cd1f6303bca7_key" != "x" ]] ; then
openssl aes-256-cbc -K $encrypted_cd1f6303bca7_key -iv $encrypted_cd1f6303bca7_iv -in ${TRAVIS_BUILD_DIR}/travis-data/intel2016.lic.enc -out ${TRAVIS_BUILD_DIR}/travis-data/intel2016.lic -d
else
if [[ $COMPILER == *"icpc"* ]] ; then
export DO_TEST=no DO_BUILD=no
fi
fi
- export LSAN_OPTIONS
- export ASAN_OPTIONS
script:
- |
if [[ "x$DOCKER_PASSWORD" != "x" ]] ; then
echo "Attempting docker login"
echo "$DOCKER_PASSWORD" | docker login -u rajaci --password-stdin
else
echo "Docker password unavailable, fail immediately"
travis_terminate 1
fi
- docker run --rm --user='root' -v ${TRAVIS_BUILD_DIR}:/home/raja rajaorg/compiler:$IMG chown -R raja /home/raja
- docker run --rm -v ${TRAVIS_BUILD_DIR}/travis-data:/opt/intel/licenses -v ${TRAVIS_BUILD_DIR}:/home/raja -e ASAN_OPTIONS -e LSAN_OPTIONS -e COMPILER -e DO_BUILD -e DO_TEST -e CMAKE_EXTRA_FLAGS -e HCC_AMDGPU_TARGET rajaorg/compiler:$IMG ./scripts/travis_build_and_test.sh
after_success:
- if [[ "${CMAKE_EXTRA_FLAGS}" == *"ENABLE_COVERAGE"* ]] ; then bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/0b376529f626b50b7d4a9fb734e0e50d28b9b91e/codecov) -a "-f" >& /dev/null; fi