forked from mrirecon/bart
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
197 lines (185 loc) · 5.24 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
language: c
addons:
apt:
packages: &default_packages
- libfftw3-dev
- libblas-dev
- libpng-dev
matrix:
include:
- env: PARALLEL=1
os: linux
compiler: gcc
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq liblapacke-dev
- env:
os: linux
compiler: gcc
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
script:
- make test
- make utest
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq liblapacke-dev
- env: SLINK=1
os: linux
compiler: gcc
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
- gfortran
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq liblapacke-dev liblapack-dev
- env: OMP=0
os: linux
compiler: clang
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
script:
- make test
- make utest
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq liblapacke-dev
- env: OMP=1
os: linux
compiler: gcc
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
script:
- make test
- make utest
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq liblapacke-dev
- env: CUDA=1 CUDA_BASE=/usr/local/cuda-7.5/
os: linux
compiler: clang-3.5
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
before_install:
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
- sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
- sudo apt-get update -qq
- sudo apt-get install -qq clang-3.5
- sudo apt-get install -qq --no-install-recommends cuda-drivers cuda-core-7.5 cuda-cudart-dev-7.5 cuda-cufft-dev-7.5 cuda-cublas-dev-7.5
- sudo apt-get install -qq liblapacke-dev
- env: BUILD_NAME="CMake"
os: linux
compiler: gcc
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
- gfortran
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq liblapack-dev liblapacke-dev
script:
- wget http://www.netlib.org/blas/blast-forum/cblas.tgz
- tar zxvf cblas.tgz && rm cblas.tgz
- pushd CBLAS
- |
cat << EOF > Makefile.in
SHELL = /bin/sh
PLAT = LINUX
CBLIB = ../lib/libcblas.so
CFLAGS = -O3 -DADD_ -fPIC
FFLAGS = -O3 -fPIC
CC = gcc
FC = gfortran
LOADER = $(FC)
ARCH = cc
ARCHFLAGS = -shared -o
RANLIB = echo
EOF
- cd src && make all && sudo cp -v ../lib/libcblas.so /usr/lib/
- popd
- mkdir build && cd build
- export FC=$(which gfortran)
- CC=gcc CXX=g++ cmake -DLINALG_VENDOR=LAPACKE -DLAPACKE_DIR=/usr/lib -DUSE_MATLAB=OFF ..
- make
- env: BUILD_NAME="CMake + CUDA" CUDA_BASE=/usr/local/cuda-7.5/
os: linux
compiler: clang-3.5
sudo: required
dist: trusty
addons:
apt:
packages:
- *default_packages
- gfortran
before_install:
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
- sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
- sudo apt-get update -qq
- sudo apt-get install -qq clang-3.5
- sudo apt-get install -qq --no-install-recommends cuda-drivers cuda-core-7.5 cuda-cudart-dev-7.5 cuda-cufft-dev-7.5 cuda-cublas-dev-7.5
- sudo apt-get install -qq liblapack-dev liblapacke-dev
script:
- wget http://www.netlib.org/blas/blast-forum/cblas.tgz
- tar zxvf cblas.tgz && rm cblas.tgz
- pushd CBLAS
- |
cat << EOF > Makefile.in
SHELL = /bin/sh
PLAT = LINUX
CBLIB = ../lib/libcblas.so
CFLAGS = -O3 -DADD_ -fPIC
FFLAGS = -O3 -fPIC
CC = gcc
FC = gfortran
LOADER = $(FC)
ARCH = cc
ARCHFLAGS = -shared -o
RANLIB = echo
EOF
- cd src && make all && sudo cp -v ../lib/libcblas.so /usr/lib/
- popd
- mkdir build && cd build
- export FC=$(which gfortran)
- CC=gcc CXX=g++ cmake -DLINALG_VENDOR=LAPACKE -DLAPACKE_DIR=/usr/lib -DUSE_MATLAB=OFF -DUSE_CUDA=ON -DCUDA_TOOLKIT_ROOT_DIR=${CUDA_BASE} ..
- make
- env: MACPORTS=0
os: osx
compiler: gcc-4.8
script:
- make test
# make utest
before_install:
- brew update
- brew install fftw gcc48 homebrew/science/openblas
script:
- make bart
- make all