forked from libxsmm/libxsmm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
116 lines (95 loc) · 5.27 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
sudo: false
language: cpp
branches:
except:
- develop
- results
matrix:
fast_finish: true
include:
- os: linux
compiler: gcc
env: OPT=1 PYTHON=python3
- os: linux
compiler: gcc
env: DBG=1 LIBXSMM_TARGET=sse
- os: linux
compiler: clang
env: DBG=1 LIBXSMM_TARGET=0
- os: osx
osx_image: xcode9.1
compiler: clang
env: OPT=1
- os: osx
osx_image: xcode6.4
compiler: clang
env: DBG=1
env:
global:
- UPLOAD_DIR=libxsmm
- LIBXSMM_VERBOSE=2
- PEDANTIC_HIGH="PEDANTIC=2"
- PEDANTIC_TEST="PEDANTIC=1"
addons:
apt:
packages:
- gfortran
- libblas-dev
- liblapack-dev
- python3
- sshpass
before_install:
- if [ "${CODECOV_ENABLED}" = "" ] || [ "${CODECOV_ENABLED}" != "0" ]; then
if [ "${TRAVIS_OS_NAME}" = "osx" ] && [ "${CC}" != "clang" ]; then sudo easy_install pip; fi;
fi
install:
- if [ "${CODECOV_ENABLED}" = "" ] || [ "${CODECOV_ENABLED}" != "0" ]; then
if [ "${CC}" != "clang" ]; then pip install --user codecov; fi;
fi
- if [ "${UPLOAD_ENABLED}" != "" ] && [ "${UPLOAD_ENABLED}" != "0" ] && [ "" = "$(which sshpass)" ] ; then
(cd /tmp && curl -O -L https://downloads.sourceforge.net/project/sshpass/sshpass/1.06/sshpass-1.06.tar.gz &&
tar xvzf sshpass-1.06.tar.gz && cd sshpass-1.06 && ./configure && make ${MAKEJ} && sudo make install &&
cd ${TRAVIS_BUILD_DIR}) || true;
fi
after_success:
- eval ${CODECOV}
before_script:
- source .env/travis.env
script:
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e PREFIX=${UPLOAD_DIR} ${PEDANTIC_HIGH} TRACE=1 STATIC=0 ABSLIBS=1 EFLAGS="-DITYPE=double" install-artifacts tests &&
if [ "${CXX}" != "g++" ] && [ "${TRAVIS_OS_NAME}" != "osx" ]; then
env LIBXSMM_TRACE=1 ${TRAVIS_BUILD_DIR}/tests/blas 2> blas-trace-${COVID}.txt;
env LIBXSMM_TRACE=1 ${TRAVIS_BUILD_DIR}/tests/malloc 2> malloc-trace-${COVID}.txt;
fi
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}; eval ${UPLOAD}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e PREFIX=${UPLOAD_DIR} ${PEDANTIC_HIGH} TRACE=1 MNK="19 27, 23" EFLAGS="-DLIBXSMM_MALLOC_MMAP" install-artifacts test-cp2k
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}; eval ${UPLOAD}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e PREFIX=${UPLOAD_DIR} ${PEDANTIC_HIGH} SYM=1 MNK="4 8" STATIC=0 PREFETCH=0 CACHE=0 EFLAGS="-DLIBXSMM_NO_CTOR" install-artifacts test-nek
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}; eval ${UPLOAD}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e PREFIX=${UPLOAD_DIR} ${PEDANTIC_HIGH} SYM=1 PYMOD=1 EFLAGS="-DLIBXSMM_CAPACITY_REGISTRY=32" install-artifacts tests
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}; eval ${UPLOAD}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
env TOOL_ENABLED=0 make ${MAKEJ} -e PREFIX=${UPLOAD_DIR} ${PEDANTIC_HIGH} SYM=1 MNK="9 3, 23" STATIC=0 EFLAGS="-DLIBXSMM_NO_CTOR" install-artifacts test-smm
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}; eval ${UPLOAD}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e PREFIX=${UPLOAD_DIR} ${PEDANTIC_HIGH} SYM=1 EFLAGS="-DELEM_TYPE=char" install-artifacts tests
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}; eval ${UPLOAD}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e PREFIX=${UPLOAD_DIR} ${PEDANTIC_HIGH} SYM=1 SSE=0 AVX=0 JIT=0 EFLAGS="-DELEM_TYPE=short" install-artifacts tests
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}; eval ${UPLOAD}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e ${PEDANTIC_TEST} VLA=0 WRAP=1 test-wrap
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e ${PEDANTIC_TEST} VLA=0 WRAP=1 STATIC=1 test-wrap
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make ${MAKEJ} -e ${PEDANTIC_TEST} VLA=0 WRAP=1 STATIC=0 test-wrap
) 2>&1 | tee .test.log && eval ${POSTPROC} && eval ${RUNXCOV}
- source ${TRAVIS_BUILD_DIR}/.env/codecov.env $(if [ "${CC}" != "clang" ]; then echo 1; else echo 0; fi) && make -e clean && (
make -e ${PEDANTIC_HIGH} AVX=3 MIC=0 OMP=1 test-cpp && make -e ${PEDANTIC_HIGH} AVX=2 THREADS=0 test-cpp && make -e ${PEDANTIC_HIGH} AVX=1 VLA=0 test-cpp
) 2>&1 | tee .test.log && eval ${POSTPROC}