forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (39 loc) · 855 Bytes
/
.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
sudo: false
language: cpp
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- clang
compiler:
- gcc
- clang
env:
- THREADING="serial"
- THREADING="openmp"
- THREADING="pthread"
# Apple GCC does not support OpenMP. GCC with OpenMP requires Homebrew.
# Apple Clang does not support OpenMP. Clang with OpenMP requires Homebrew.
# Clang OpenMP support is not always available.
matrix:
exclude:
- compiler: clang
env: THREADING="openmp"
- os: osx
env: THREADING="openmp"
- os: osx
compiler: gcc
script:
- export OMP_NUM_THREADS=2
- export OMP_PLACES=threads
- export OMP_PROC_BIND=spread
- mkdir build
- cd build
- ../generate_makefile.bash --compiler=$CXX --with-$THREADING --with-options=compiler_warnings
- make
- make test