forked from issp-center-dev/HPhi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (80 loc) · 2.05 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
matrix:
include:
- language: cpp
sudo: enabled
before_install:
- sudo apt-get update
- sudo apt-get install -y gfortran liblapack-dev cmake
- pip install numpy --user
install:
- mkdir build
- cd build
script:
- cmake ../ -DCMAKE_CXX_FLAGS="-std=c++11"
- make
- export OMP_NUM_THREADS=1
- make test
- rm -r test
- make
- export OMP_NUM_THREADS=3
- make test
- rm -r *
- sudo apt-get install -y libopenmpi-dev openmpi-bin
- cmake ../ -DCMAKE_CXX_FLAGS="-std=c++11"
- make
- export OMP_NUM_THREADS=1
- make test MPIRUN="mpiexec -np 4"
- rm -r test
- make
- export OMP_NUM_THREADS=3
- make test MPIRUN="mpiexec -np 4"
- rm -r test
- make
- export OMP_NUM_THREADS=1
- make test MPIRUN="mpiexec -np 16"
- rm -r test
- make
- export OMP_NUM_THREADS=3
- make test MPIRUN="mpiexec -np 16"
- os: osx
osx_image: xcode10.3
language: cpp
sudo: enabled
before_install:
- brew update
- brew install gcc || true
- brew link --overwrite gcc
- brew install lapack
- export FC=gfortran;
- pip install numpy --user
install:
- mkdir build
- cd build
#- export CC=/usr/local/bin/gcc-8
script:
- cmake ../ -DCMAKE_CXX_FLAGS="-std=c++11" -DCMAKE_BUILD_TYPE="Debug"
- make
- export OMP_NUM_THREADS=1
- make test
#- rm -r test
#- make
#- export OMP_NUM_THREADS=3
#- make test
#- rm -r *
#- brew install open-mpi
#- cmake ../ -DCMAKE_CXX_FLAGS="-std=c++11"
#- make
#- export OMP_NUM_THREADS=1
#- MPIRUN="mpiexec -np 4" ctest -V
#- rm -r test
#- make
#- export OMP_NUM_THREADS=3
#- MPIRUN="mpirun -np 4" ctest -V
#- rm -r test
#- make
#- export OMP_NUM_THREADS=1
#- make test MPIRUN="mpiexec -np 16"
#- rm -r test
#- make
#- export OMP_NUM_THREADS=3
#- make test MPIRUN="mpiexec -np 16"