-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
559 lines (509 loc) · 32.9 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
#
# Copyright 2015 Benjamin Worpitz
#
# This file is part of matmul.
#
# matmul is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# matmul is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with matmul.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
#
################################################################################
language:
- cpp
################################################################################
#
################################################################################
os:
- linux
sudo: required
dist: trusty
################################################################################
#
################################################################################
compiler:
- gcc
- clang
################################################################################
# \TODO: Test full matrix:
# MATMUL_INTEGRATION_TEST : {ON}
# CXX : {g++, clang++}
# [clang++] MATMUL_CLANG_LIBSTDCPP_VERSION : {4.9}
# [clang++] MATMUL_CLANG_VER : {3.5, 3.6, 3.7, 3.8}
# [g++] MATMUL_GCC_VER : {4.9, 5}
# MATMUL_BOOST_BRANCH : {boost-1.56.0, boost-1.57.0, boost-1.58.0, boost-1.59.0, develop}
# MATMUL_CMAKE_VER : {3.3.0, 3.3.1, 3.3.2, 3.4.0}
# CMAKE_BUILD_TYPE : {Debug, Release}
# MATMUL_DEBUG : {0, 1, 2}
# MATMUL_BENCHMARK_COMPUTATION_TIME : {ON, OFF}
# MATMUL_BENCHMARK_MPI : {ON, OFF}
# MATMUL_BENCHMARK_ALPAKA_THREADS_ENABLE : {ON, OFF}
# MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE : {ON, OFF}
# MATMUL_BENCHMARK_OMP2_ENABLE : {ON, OFF}
# [ON] OMP_NUM_THREADS : {1, 2, 3, 4}
# MATMUL_BENCHMARK_OMP3_ENABLE : {ON, OFF}
# [ON] OMP_NUM_THREADS : {1, 2, 3, 4}
# MATMUL_BENCHMARK_OMP4_ENABLE : {ON, OFF}
# [ON] OMP_NUM_THREADS : {1, 2, 3, 4}
# MATMUL_BENCHMARK_CUDA : {ON, OFF}
# [ON] MATMUL_CUDA_VERSION : {7.0, 7.5}
# And one analysis build
# MATMUL_ANALYSIS : {ON, OFF}
################################################################################
env:
global:
- MATMUL_BENCHMARK_OMP2_ENABLE=ON
- MATMUL_BENCHMARK_OMP3_ENABLE=ON
- MATMUL_BENCHMARK_OMP4_ENABLE=ON
- MATMUL_BENCHMARK_ALPAKA_THREADS_ENABLE=ON
- MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE=ON
- MATMUL_CLANG_LIBSTDCPP_VERSION=4.9
matrix:
# Analysis builds
- MATMUL_CUDA_VERSION=7.5 MATMUL_ANALYSIS=ON MATMUL_DEBUG=2 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=4.9 MATMUL_CLANG_VER=3.7 MATMUL_BOOST_BRANCH=boost-1.59.0 MATMUL_BENCHMARK_CUDA=ON MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- MATMUL_CUDA_VERSION=7.5 MATMUL_ANALYSIS=ON MATMUL_DEBUG=2 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.7 MATMUL_BOOST_BRANCH=boost-1.59.0 MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- MATMUL_CUDA_VERSION=7.5 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=2 MATMUL_CMAKE_VER=3.3.2 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=4.9 MATMUL_CLANG_VER=3.7 MATMUL_BOOST_BRANCH=boost-1.56.0 MATMUL_BENCHMARK_CUDA=ON MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=0 MATMUL_CMAKE_VER=3.3.1 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=3 MATMUL_GCC_VER=4.9 MATMUL_CLANG_VER=3.5 MATMUL_BOOST_BRANCH=boost-1.57.0 MATMUL_BENCHMARK_CUDA=ON MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=ON
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=2 MATMUL_CMAKE_VER=3.3.0 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=2 MATMUL_GCC_VER=4.9 MATMUL_CLANG_VER=3.6 MATMUL_BOOST_BRANCH=boost-1.58.0 MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=1 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.5 MATMUL_BOOST_BRANCH=boost-1.59.0 MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=1 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.8 MATMUL_BOOST_BRANCH=develop MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=ON
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=2 MATMUL_CMAKE_VER=3.3.2 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=4.9 MATMUL_CLANG_VER=3.7 MATMUL_BOOST_BRANCH=boost-1.58.0 MATMUL_BENCHMARK_CUDA=ON MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=ON
- MATMUL_CUDA_VERSION=7.5 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=0 MATMUL_CMAKE_VER=3.3.1 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=3 MATMUL_GCC_VER=4.9 MATMUL_CLANG_VER=3.5 MATMUL_BOOST_BRANCH=boost-1.59.0 MATMUL_BENCHMARK_CUDA=ON MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=2 MATMUL_CMAKE_VER=3.3.0 CMAKE_BUILD_TYPE=Release OMP_NUM_THREADS=2 MATMUL_GCC_VER=4.9 MATMUL_CLANG_VER=3.6 MATMUL_BOOST_BRANCH=boost-1.56.0 MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=0 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Release OMP_NUM_THREADS=1 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.5 MATMUL_BOOST_BRANCH=boost-1.57.0 MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=ON
- MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=1 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Release OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.8 MATMUL_BOOST_BRANCH=develop MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
matrix:
allow_failures:
- compiler: gcc
env: MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=1 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.8 MATMUL_BOOST_BRANCH=develop MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=ON
- compiler: gcc
env: MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=1 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Release OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.8 MATMUL_BOOST_BRANCH=develop MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- compiler: clang
env: MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=1 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Debug OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.8 MATMUL_BOOST_BRANCH=develop MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=ON
- compiler: clang
env: MATMUL_CUDA_VERSION=7.0 MATMUL_ANALYSIS=OFF MATMUL_DEBUG=1 MATMUL_CMAKE_VER=3.4.0 CMAKE_BUILD_TYPE=Release OMP_NUM_THREADS=4 MATMUL_GCC_VER=5 MATMUL_CLANG_VER=3.8 MATMUL_BOOST_BRANCH=develop MATMUL_BENCHMARK_CUDA=OFF MATMUL_BENCHMARK_MPI=OFF MATMUL_BENCHMARK_COMPUTATION_TIME=OFF
- os: osx
branches:
except:
- doc
################################################################################
# Use this to prepare the system to install prerequisites or dependencies.
################################################################################
before_install:
# Print the travis environment variables: http://docs.travis-ci.com/user/ci-environment/
- echo "${TRAVIS_BRANCH}"
- echo "${TRAVIS_BUILD_DIR}"
- echo "${TRAVIS_BUILD_ID}"
- echo "${TRAVIS_BUILD_NUMBER}"
- echo "${TRAVIS_COMMIT}"
- echo "${TRAVIS_COMMIT_RANGE}"
- echo "${TRAVIS_JOB_ID}"
- echo "${TRAVIS_JOB_NUMBER}"
- echo "${TRAVIS_PULL_REQUEST}"
- echo "${TRAVIS_SECURE_ENV_VARS}"
- echo "${TRAVIS_REPO_SLUG}"
- echo "${TRAVIS_OS_NAME}"
- echo "${TRAVIS_TAG}"
# g++ / clang dependencies
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
# clang
- if [ "${CXX}" == "clang++" ] ;then travis_retry sudo add-apt-repository -y 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.5 main' ;fi
- if [ "${CXX}" == "clang++" ] ;then travis_retry sudo add-apt-repository -y 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main' ;fi
- if [ "${CXX}" == "clang++" ] ;then travis_retry sudo add-apt-repository -y 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.7 main' ;fi
- if [ "${CXX}" == "clang++" ] ;then travis_retry sudo add-apt-repository -y 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main' ;fi
- if [ "${CXX}" == "clang++" ] ;then travis_retry wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - ;fi
# git
- travis_retry sudo add-apt-repository -y ppa:git-core/ppa
- travis_retry sudo apt-get update
################################################################################
# Use this to install any prerequisites or dependencies necessary to run your build.
################################################################################
install:
# Step out of the matmul directory.
- cd ../../
#-------------------------------------------------------------------------------
# Install sloc
- if [ "${MATMUL_ANALYSIS}" == "ON" ] ;then travis_retry sudo apt-get install sloccount ;fi
#-------------------------------------------------------------------------------
# Get the current gcc version.
- git --version
- travis_retry sudo apt-get -y install git
- git --version
#-------------------------------------------------------------------------------
# gcc 4.6 is too old...
- if [ "${CXX}" == "g++" ]
;then
travis_retry sudo apt-get -y install g++-${MATMUL_GCC_VER}
&& sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${MATMUL_GCC_VER} 50
&& sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${MATMUL_GCC_VER} 50
;fi
# Extract the version numbers.
- if [ "${CXX}" == "g++" ]
;then
MATMUL_GCC_VER_MAJOR=${MATMUL_GCC_VER:0:1}
&& MATMUL_GCC_VER_MINOR=${MATMUL_GCC_VER:2:1}
&& echo ${MATMUL_GCC_VER_MAJOR}
&& echo ${MATMUL_GCC_VER_MINOR}
;fi
#-------------------------------------------------------------------------------
# Install clang.
# We have to prepend /usr/bin to the path because else the preinstalled clang from usr/bin/local/ is used.
- if [ "${CXX}" == "clang++" ]
;then
travis_retry sudo apt-get -y install libstdc++-${MATMUL_CLANG_LIBSTDCPP_VERSION}-dev
&& travis_retry sudo apt-get -y install clang-${MATMUL_CLANG_VER}
&& sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${MATMUL_CLANG_VER} 50
&& sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${MATMUL_CLANG_VER} 50
&& sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 50
&& sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 50
&& export PATH=/usr/bin:$PATH
;fi
# Extract the version numbers.
- if [ "${CXX}" == "clang++" ]
;then
MATMUL_CLANG_VER_MAJOR=${MATMUL_CLANG_VER:0:1}
&& MATMUL_CLANG_VER_MINOR=${MATMUL_CLANG_VER:2:1}
&& echo ${MATMUL_CLANG_VER_MAJOR}
&& echo ${MATMUL_CLANG_VER_MINOR}
;fi
# clang versions lower than 3.7 do not support OpenMP 2.0, OpenMP 4.0 is not currently supported by any version.
# However, clang 3.7 requires special compiler flags that are not automatically provided by CMake.
- if [ "${CXX}" == "clang++" ]
;then
if (( (( ${MATMUL_CLANG_VER_MAJOR} < 3 )) || ( (( ${MATMUL_CLANG_VER_MAJOR} == 3 )) && (( ${MATMUL_CLANG_VER_MINOR} < 8 )) ) ))
;then
if [ "${MATMUL_BENCHMARK_OMP2_ENABLE}" == "ON" ]
;then
export MATMUL_BENCHMARK_OMP2_ENABLE=OFF
&& echo MATMUL_BENCHMARK_OMP2_ENABLE=${MATMUL_BENCHMARK_OMP2_ENABLE} because the clang version does not support it!
;fi
;fi
&& if (( (( ${MATMUL_CLANG_VER_MAJOR} < 3 )) || ( (( ${MATMUL_CLANG_VER_MAJOR} == 3 )) && (( ${MATMUL_CLANG_VER_MINOR} < 8 )) ) ))
;then
if [ "${MATMUL_BENCHMARK_OMP4_ENABLE}" == "ON" ]
;then
export MATMUL_BENCHMARK_OMP4_ENABLE=OFF
&& echo MATMUL_BENCHMARK_OMP4_ENABLE=${MATMUL_BENCHMARK_OMP4_ENABLE} because the clang version does not support it!
&& export MATMUL_BENCHMARK_OMP3_ENABLE=OFF
&& echo MATMUL_BENCHMARK_OMP3_ENABLE=${MATMUL_BENCHMARK_OMP3_ENABLE} because the clang version does not support it!
;fi
;fi
;fi
#-------------------------------------------------------------------------------
# Install CUDA. It is required irrespective of the fact whether CUDA code is build because cuBLAS is required.
# Extract the CUDA version numbers.
#- if [ "${MATMUL_BENCHMARK_CUDA}" == "ON" ]
# ;then
- MATMUL_CUDA_VER_MAJOR=${MATMUL_CUDA_VERSION:0:1}
&& MATMUL_CUDA_VER_MINOR=${MATMUL_CUDA_VERSION:2:1}
&& echo ${MATMUL_CUDA_VER_MAJOR}
&& echo ${MATMUL_CUDA_VER_MINOR}
# ;fi
# CUDA 7.x does not support gcc > 4.9.2
- if [ "${MATMUL_BENCHMARK_CUDA}" == "ON" ]
;then
if [ "${CXX}" == "g++" ]
;then
if (( (( ${MATMUL_GCC_VER_MAJOR} > 4 )) || ( (( ${MATMUL_GCC_VER_MAJOR} == 4 )) && (( ${MATMUL_GCC_VER_MINOR} > 9 )) ) ))
;then
if (( ${MATMUL_CUDA_VER_MAJOR} > 6 ))
;then
export MATMUL_BENCHMARK_CUDA=OFF
&& echo MATMUL_BENCHMARK_CUDA=${MATMUL_BENCHMARK_CUDA} because CUDA 7.x does not support the gcc version!
;fi
;fi
;fi
;fi
# clang is not a supported compiler for CUDA on linux
- if [ "${MATMUL_BENCHMARK_CUDA}" == "ON" ]
;then
if [ "${CXX}" == "clang++" ]
;then
if [ ${TRAVIS_OS_NAME} == "linux" ]
;then
export MATMUL_BENCHMARK_CUDA=OFF
&& echo MATMUL_BENCHMARK_CUDA=${MATMUL_BENCHMARK_CUDA} because clang is not a supported compiler for CUDA on linux!
;fi
;fi
;fi
# nvcc < 7.5 does not support boost correctly so fibers / threads have to be disabled.
# boost/utility/detail/result_of_iterate.hpp:148:75: error: invalid use of qualified-name 'std::allocator_traits<_Alloc>::propagate_on_container_swap'
- if [ "${MATMUL_BENCHMARK_CUDA}" == "ON" ]
;then
if (( (( ${MATMUL_CUDA_VER_MAJOR} == 7 )) && (( ${MATMUL_CUDA_VER_MINOR} < 5 )) ))
;then
export MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE=OFF
&& echo MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE=${MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE} because nvcc does not support boost correctly!
&& export MATMUL_BENCHMARK_ALPAKA_THREADS_ENABLE=OFF
&& echo MATMUL_BENCHMARK_ALPAKA_THREADS_ENABLE=${MATMUL_BENCHMARK_ALPAKA_THREADS_ENABLE} because nvcc does not support boost correctly!
;fi
;fi
# Install nvcc
- if [ "${MATMUL_BENCHMARK_CUDA}" == "ON" ]
;then
if [ ${MATMUL_CUDA_VER_MAJOR} == 7 ]
;then
if [ ${MATMUL_CUDA_VER_MINOR} == 0 ]
;then
MATMUL_CUDA_PKG_FILE_NAME=cuda-repo-ubuntu1404-${MATMUL_CUDA_VER_MAJOR}-${MATMUL_CUDA_VER_MINOR}-local_${MATMUL_CUDA_VERSION}-28_amd64.deb
&& MATMUL_CUDA_PKG_FILE_PATH=http://developer.download.nvidia.com/compute/cuda/${MATMUL_CUDA_VER_MAJOR}_${MATMUL_CUDA_VER_MINOR}/Prod/local_installers/rpmdeb/${MATMUL_CUDA_PKG_FILE_NAME}
;elif [ ${MATMUL_CUDA_VER_MINOR} == 5 ]
;then
MATMUL_CUDA_PKG_FILE_NAME=cuda-repo-ubuntu1404-${MATMUL_CUDA_VER_MAJOR}-${MATMUL_CUDA_VER_MINOR}-local_${MATMUL_CUDA_VERSION}-18_amd64.deb
&& MATMUL_CUDA_PKG_FILE_PATH=http://developer.download.nvidia.com/compute/cuda/${MATMUL_CUDA_VERSION}/Prod/local_installers/${MATMUL_CUDA_PKG_FILE_NAME}
;else
echo CUDA versions other then 7.0 and 7.5 are not currently supported!
;fi
;else
echo CUDA versions other then 7.0 and 7.5 are not currently supported!
;fi
;fi
- if [ "${MATMUL_BENCHMARK_CUDA}" == "ON" ]
;then
travis_retry wget ${MATMUL_CUDA_PKG_FILE_PATH}
&& sudo dpkg -i ${MATMUL_CUDA_PKG_FILE_NAME}
&& sudo apt-get -y update
&& sudo apt-get -y install cuda-core-${MATMUL_CUDA_VERSION} cuda-cudart-${MATMUL_CUDA_VERSION} cuda-cudart-dev-${MATMUL_CUDA_VERSION} cuda-curand-${MATMUL_CUDA_VERSION} cuda-curand-dev-${MATMUL_CUDA_VERSION} cuda-cublas-${MATMUL_CUDA_VERSION} cuda-cublas-dev-${MATMUL_CUDA_VERSION}
&& sudo ln -s /usr/local/cuda-${MATMUL_CUDA_VERSION} /usr/local/cuda
&& export PATH=/usr/local/cuda-${MATMUL_CUDA_VERSION}/bin:$PATH
&& export LD_LIBRARY_PATH=/usr/local/cuda-${MATMUL_CUDA_VERSION}/lib64:$LD_LIBRARY_PATH
&& sudo rm -f ${MATMUL_CUDA_PKG_FILE_NAME}
;fi
# Currently we do not install CUDA fully: sudo apt-get -y install cuda
# We only install the minimal packages. Because of our manual partial installation we have to create a symlink at /usr/local/cuda
#-------------------------------------------------------------------------------
# Remove the old version.
- sudo apt-get -y remove cmake
# Extract the version numbers.
- MATMUL_CMAKE_VER_MAJOR=${MATMUL_CMAKE_VER:0:1}
- echo ${MATMUL_CMAKE_VER_MAJOR}
- MATMUL_CMAKE_VER_MINOR=${MATMUL_CMAKE_VER:2:1}
- echo ${MATMUL_CMAKE_VER_MINOR}
- MATMUL_CMAKE_PKG_FILE_NAME=cmake-${MATMUL_CMAKE_VER}-Linux-x86_64
- wget http://www.cmake.org/files/v${MATMUL_CMAKE_VER_MAJOR}.${MATMUL_CMAKE_VER_MINOR}/${MATMUL_CMAKE_PKG_FILE_NAME}.tar.gz
&& tar -xzf ${MATMUL_CMAKE_PKG_FILE_NAME}.tar.gz
&& sudo cp -fR cmake-${MATMUL_CMAKE_VER}-Linux-x86_64/* /usr
&& sudo rm -rf ${MATMUL_CMAKE_PKG_FILE_NAME}.tar.gz ${MATMUL_CMAKE_PKG_FILE_NAME}
#-------------------------------------------------------------------------------
# Clone boost.
# If fibers are enabled we need boost 1.59.0+.
- if [ "${MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE}" == "ON" ]
;then
if [ "${MATMUL_BOOST_BRANCH}" != "develop" ]
;then
export MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE=OFF
&& echo MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE=${MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE} set because boost fibers requires develop branch!
;fi
;fi
- git clone -b ${MATMUL_BOOST_BRANCH} --recursive --single-branch --depth 1 https://github.com/boostorg/boost.git boost
- cd boost/
- export MATMUL_BOOST_ROOT_DIR=`pwd`
- echo MATMUL_BOOST_ROOT_DIR="${MATMUL_BOOST_ROOT_DIR}"
- cd libs/
# Clone boost.fiber.
- if [ "${MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE}" == "ON" ]
;then
git clone -b develop --single-branch --depth 1 https://github.com/olk/boost-fiber.git fiber
;fi
- cd ../
# Prepare building of boost.
- sudo ./bootstrap.sh --with-toolset=${CC}
# Create file links.
- sudo ./b2 headers
# Prepare the library destination directory.
- cd ..
- mkdir boost_libs
- cd boost_libs/
- mkdir x64
- export MATMUL_BOOST_LIB_DIR=`pwd`/x64/lib
- echo MATMUL_BOOST_LIB_DIR="${MATMUL_BOOST_LIB_DIR}"
- cd ../
- cd boost/
# Create the boost build command.
# --layout=versioned
- MATMUL_BOOST_B2_CXXFLAGS=
# There is not enough RAM (3 GB) to use both available cores for compiling.
- MATMUL_BOOST_B2="sudo ./b2 -j1 --layout=tagged --toolset=${CC}"
- MATMUL_BOOST_B2+=" architecture=x86 address-model=64 variant=debug,release link=static threading=multi runtime-link=shared"
# Clang is not supported by the FindBoost script.
# boost (especially old versions) produces too much warnings when using clang (newer versions) so that the 4 MiB log is too short.
- if [ "${CXX}" == "clang++" ]
;then
export MATMUL_BOOST_COMPILER=-clang${MATMUL_CLANG_VER_MAJOR}${MATMUL_CLANG_VER_MINOR}
&& echo MATMUL_BOOST_COMPILER="${MATMUL_BOOST_COMPILER}"
&& MATMUL_BOOST_B2_CXXFLAGS+="-Wno-unused-local-typedef -Wno-c99-extensions -Wno-variadic-macros -Wunknown-warning-option"
;fi
# Select the libraries required.
- MATMUL_BOOST_B2+=" --with-program_options"
- if [ "${MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE}" == "ON" ]
;then
MATMUL_BOOST_B2_CXXFLAGS+=" -std=c++14"
&& MATMUL_BOOST_B2+=" --with-fiber --with-context --with-thread --with-system --with-atomic --with-chrono --with-date_time"
;fi
- if [ "${MATMUL_BOOST_B2_CXXFLAGS}" != "" ]
;then
MATMUL_BOOST_B2+=' cxxflags="'
MATMUL_BOOST_B2+="${MATMUL_BOOST_B2_CXXFLAGS}"
MATMUL_BOOST_B2+='"'
;fi
- MATMUL_BOOST_B2+=" --stagedir=../boost_libs/x64 stage"
# Build boost.
- echo MATMUL_BOOST_B2="${MATMUL_BOOST_B2}"
- eval "${MATMUL_BOOST_B2}"
# Clean the intermediate build files.
- sudo rm -rf bin.v2
- cd ../
#-------------------------------------------------------------------------------
# Install MPI
- travis_retry sudo apt-get -y install openmpi-bin libopenmpi-dev
#-------------------------------------------------------------------------------
# Clone alpaka.
- git clone -b develop --single-branch --depth 1 https://github.com/ComputationalRadiationPhysics/alpaka.git alpaka
- cd alpaka/
- export MATMUL_ALPAKA_ROOT_DIR=`pwd`
- echo MATMUL_ALPAKA_ROOT_DIR="${MATMUL_ALPAKA_ROOT_DIR}"
- cd ../
################################################################################
# Use this to prepare your build for testing.
################################################################################
before_script:
- cd ${TRAVIS_BUILD_DIR}/
- pwd
- which cmake
- cmake --version
- which ${CXX}
- ${CXX} -v
- if [ "${MATMUL_BENCHMARK_CUDA}" == "ON" ]
;then
which nvcc
&& nvcc -V
;fi
################################################################################
# All commands must exit with code 0 on success. Anything else is considered failure.
################################################################################
script:
#-------------------------------------------------------------------------------
# sloc
- if [ "${MATMUL_ANALYSIS}" == "ON" ] ;then sloccount . ;fi
#-------------------------------------------------------------------------------
# TODO/FIXME/HACK
- if [ "${MATMUL_ANALYSIS}" == "ON" ] ;then grep -r HACK * ;fi || true
- if [ "${MATMUL_ANALYSIS}" == "ON" ] ;then grep -r FIXME * ;fi || true
- if [ "${MATMUL_ANALYSIS}" == "ON" ] ;then grep -r TODO * ;fi || true
#-------------------------------------------------------------------------------
# Build and execute all tests.
# TODO: MATMUL_BENCHMARK_ALPAKA_TILING_KERNEL MATMUL_BENCHMARK_PAR_OPENACC MATMUL_BENCHMARK_PAR_BLAS_MKL MATMUL_BENCHMARK_PAR_PHI_OFF_OMP2_GUIDED MATMUL_BENCHMARK_PAR_PHI_OFF_OMP2_STATIC MATMUL_BENCHMARK_PAR_PHI_OFF_OMP3 MATMUL_BENCHMARK_PAR_PHI_OFF_OMP4 MATMUL_BENCHMARK_PAR_PHI_OFF_BLAS_MKL DBENCHMARK_PAR_PHI_OFF_OMP MATMUL_BENCHMARK_PAR_MPI_CANNON_MKL
- cd benchmark/
- mkdir build/
- cd build/
- mkdir make/
- cd make/
# double + int + sec
- mkdir double_int/
- cd double_int/
- if [ "${MATMUL_BENCHMARK_MPI}" == "OFF" ]
;then
cmake -G "Unix Makefiles"
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DBOOST_ROOT="${MATMUL_BOOST_ROOT_DIR}" -DBOOST_LIBRARYDIR="${MATMUL_BOOST_LIB_DIR}" -DBoost_COMPILER="${MATMUL_BOOST_COMPILER}" -DBoost_USE_STATIC_LIBS=ON -DBoost_USE_MULTITHREADED=ON -DBoost_USE_STATIC_RUNTIME=OFF
-DALPAKA_ROOT="${MATMUL_ALPAKA_ROOT_DIR}" -DALPAKA_DEBUG=${MATMUL_DEBUG} -DALPAKA_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_DEBUG=${MATMUL_DEBUG} -DMATMUL_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_ALIGNED_MALLOC=ON -DMATMUL_ELEMENT_TYPE_DOUBLE=ON -DMATMUL_INDEX_TYPE=int -DMATMUL_BENCHMARK_COMPUTATION_TIME=${MATMUL_BENCHMARK_COMPUTATION_TIME}
-DMATMUL_BENCHMARK_PRINT_GFLOPS=OFF -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF -DMATMUL_BENCHMARK_PRINT_ITERATIONS=OFF
-DMATMUL_BENCHMARK_SEQ_BASIC=ON -DMATMUL_BENCHMARK_SEQ_SINGLE_OPTS=ON -DMATMUL_BENCHMARK_SEQ_MULTIPLE_OPTS=ON
-DMATMUL_BENCHMARK_SEQ_STRASSEN=ON
-DMATMUL_BENCHMARK_PAR_OMP2_GUIDED=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_OMP2_STATIC=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_OMP3=${MATMUL_BENCHMARK_OMP3_ENABLE} -DMATMUL_BENCHMARK_PAR_OMP4=${MATMUL_BENCHMARK_OMP4_ENABLE} -DMATMUL_BENCHMARK_PAR_STRASSEN_OMP2=${MATMUL_BENCHMARK_OMP2_ENABLE}
-DMATMUL_BENCHMARK_PAR_CUDA_MEMCPY_FIXED_BLOCK_SIZE=${MATMUL_BENCHMARK_CUDA} -DMATMUL_BENCHMARK_PAR_CUDA_MEMCPY_DYN_BLOCK_SIZE=${MATMUL_BENCHMARK_CUDA}
-DMATMUL_BENCHMARK_PAR_BLAS_CUBLAS_MEMCPY=${MATMUL_BENCHMARK_CUDA}
-DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_SEQ=ON -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_OMP2_T_SEQ=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_OMP2=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_BT_OMP4=${MATMUL_BENCHMARK_OMP4_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_FIBERS=${MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_THREADS=${MATMUL_BENCHMARK_ALPAKA_THREADS_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_GPU_CUDA_MEMCPY=${MATMUL_BENCHMARK_CUDA}
-DMATMUL_BENCHMARK_ALPAKA_CUDASDK_KERNEL=ON -DMATMUL_BENCHMARK_ALPAKA_OMPNATIVE_KERNEL=ON -DMATMUL_BENCHMARK_ALPAKA_TILING_KERNEL=OFF
-DMATMUL_BENCHMARK_REPEAT_COUNT=2 -DMATMUL_BENCHMARK_REPEAT_TAKE_MINIMUM=ON -DMATMUL_BENCHMARK_VERIFY_RESULT=ON -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF
"../../../"
;else
cmake -G "Unix Makefiles"
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DBOOST_ROOT="${MATMUL_BOOST_ROOT_DIR}" -DBOOST_LIBRARYDIR="${MATMUL_BOOST_LIB_DIR}" -DBoost_COMPILER="${MATMUL_BOOST_COMPILER}" -DBoost_USE_STATIC_LIBS=ON -DBoost_USE_MULTITHREADED=ON -DBoost_USE_STATIC_RUNTIME=OFF
-DALPAKA_ROOT="${MATMUL_ALPAKA_ROOT_DIR}" -DALPAKA_DEBUG=${MATMUL_DEBUG} -DALPAKA_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_DEBUG=${MATMUL_DEBUG} -DMATMUL_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_ALIGNED_MALLOC=ON -DMATMUL_ELEMENT_TYPE_DOUBLE=ON -DMATMUL_INDEX_TYPE=int -DMATMUL_BENCHMARK_COMPUTATION_TIME=${MATMUL_BENCHMARK_COMPUTATION_TIME}
-DMATMUL_BENCHMARK_PRINT_GFLOPS=OFF -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF -DMATMUL_BENCHMARK_PRINT_ITERATIONS=OFF
-DMATMUL_BENCHMARK_PAR_MPI_CANNON_STD=ON -DMATMUL_BENCHMARK_PAR_MPI_CANNON_CUBLAS=${MATMUL_BENCHMARK_CUDA} -DMATMUL_BENCHMARK_PAR_MPI_DNS=ON
-DMATMUL_BENCHMARK_REPEAT_COUNT=2 -DMATMUL_BENCHMARK_REPEAT_TAKE_MINIMUM=ON -DMATMUL_BENCHMARK_VERIFY_RESULT=ON -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF
"../../../"
;fi
- make VERBOSE=1
# The number of processes set for mpiexec has to be a square for the Cannon algorithm and a cube for DNS.
# The smallest number not 1 satisfying this is 64. 4^3=64=8^2. This forces the minimum N to be 8.
- if [ "${MATMUL_BENCHMARK_CUDA}" == "OFF" ]
;then
if [ "${MATMUL_BENCHMARK_MPI}" == "OFF" ]
;then
./matmul_benchmark 4 128 16 3
;else
mpiexec -n 64 ./matmul_benchmark 8 128 16 3
;fi
;fi
- cd ../
# float + size_t + Gflop/s
- mkdir float_size_t/
- cd float_size_t/
- if [ "${MATMUL_BENCHMARK_MPI}" == "OFF" ]
;then
cmake -G "Unix Makefiles"
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DBOOST_ROOT="${MATMUL_BOOST_ROOT_DIR}" -DBOOST_LIBRARYDIR="${MATMUL_BOOST_LIB_DIR}" -DBoost_COMPILER="${MATMUL_BOOST_COMPILER}" -DBoost_USE_STATIC_LIBS=ON -DBoost_USE_MULTITHREADED=ON -DBoost_USE_STATIC_RUNTIME=OFF
-DALPAKA_ROOT="${MATMUL_ALPAKA_ROOT_DIR}" -DALPAKA_DEBUG=${MATMUL_DEBUG} -DALPAKA_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_DEBUG=${MATMUL_DEBUG} -DMATMUL_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_ALIGNED_MALLOC=ON -DMATMUL_ELEMENT_TYPE_DOUBLE=OFF -DMATMUL_INDEX_TYPE=size_t -DMATMUL_BENCHMARK_COMPUTATION_TIME=${MATMUL_BENCHMARK_COMPUTATION_TIME}
-DMATMUL_BENCHMARK_PRINT_GFLOPS=ON -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF -DMATMUL_BENCHMARK_PRINT_ITERATIONS=OFF
-DMATMUL_BENCHMARK_SEQ_BASIC=ON -DMATMUL_BENCHMARK_SEQ_SINGLE_OPTS=ON -DMATMUL_BENCHMARK_SEQ_MULTIPLE_OPTS=ON
-DMATMUL_BENCHMARK_SEQ_STRASSEN=ON
-DMATMUL_BENCHMARK_PAR_OMP2_GUIDED=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_OMP2_STATIC=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_OMP3=${MATMUL_BENCHMARK_OMP3_ENABLE} -DMATMUL_BENCHMARK_PAR_OMP4=${MATMUL_BENCHMARK_OMP4_ENABLE} -DMATMUL_BENCHMARK_PAR_STRASSEN_OMP2=${MATMUL_BENCHMARK_OMP2_ENABLE}
-DMATMUL_BENCHMARK_PAR_CUDA_MEMCPY_FIXED_BLOCK_SIZE=${MATMUL_BENCHMARK_CUDA} -DMATMUL_BENCHMARK_PAR_CUDA_MEMCPY_DYN_BLOCK_SIZE=${MATMUL_BENCHMARK_CUDA}
-DMATMUL_BENCHMARK_PAR_BLAS_CUBLAS_MEMCPY=${MATMUL_BENCHMARK_CUDA}
-DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_SEQ=ON -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_OMP2_T_SEQ=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_OMP2=${MATMUL_BENCHMARK_OMP2_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_BT_OMP4=${MATMUL_BENCHMARK_OMP4_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_FIBERS=${MATMUL_BENCHMARK_ALPAKA_FIBERS_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_CPU_B_SEQ_T_THREADS=${MATMUL_BENCHMARK_ALPAKA_THREADS_ENABLE} -DMATMUL_BENCHMARK_PAR_ALPAKA_ACC_GPU_CUDA_MEMCPY=${MATMUL_BENCHMARK_CUDA}
-DMATMUL_BENCHMARK_ALPAKA_CUDASDK_KERNEL=ON -DMATMUL_BENCHMARK_ALPAKA_OMPNATIVE_KERNEL=ON -DMATMUL_BENCHMARK_ALPAKA_TILING_KERNEL=OFF
-DMATMUL_BENCHMARK_REPEAT_COUNT=2 -DMATMUL_BENCHMARK_REPEAT_TAKE_MINIMUM=ON -DMATMUL_BENCHMARK_VERIFY_RESULT=ON -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF
"../../../"
;else
cmake -G "Unix Makefiles"
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DBOOST_ROOT="${MATMUL_BOOST_ROOT_DIR}" -DBOOST_LIBRARYDIR="${MATMUL_BOOST_LIB_DIR}" -DBoost_COMPILER="${MATMUL_BOOST_COMPILER}" -DBoost_USE_STATIC_LIBS=ON -DBoost_USE_MULTITHREADED=ON -DBoost_USE_STATIC_RUNTIME=OFF
-DALPAKA_ROOT="${MATMUL_ALPAKA_ROOT_DIR}" -DALPAKA_DEBUG=${MATMUL_DEBUG} -DALPAKA_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_DEBUG=${MATMUL_DEBUG} -DMATMUL_CUDA_VERSION=${MATMUL_CUDA_VERSION}
-DMATMUL_ALIGNED_MALLOC=ON -DMATMUL_ELEMENT_TYPE_DOUBLE=OFF -DMATMUL_INDEX_TYPE=size_t -DMATMUL_BENCHMARK_COMPUTATION_TIME=${MATMUL_BENCHMARK_COMPUTATION_TIME}
-DMATMUL_BENCHMARK_PRINT_GFLOPS=ON -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF -DMATMUL_BENCHMARK_PRINT_ITERATIONS=OFF
-DMATMUL_BENCHMARK_PAR_MPI_CANNON_STD=ON -DMATMUL_BENCHMARK_PAR_MPI_CANNON_CUBLAS=${MATMUL_BENCHMARK_CUDA} -DMATMUL_BENCHMARK_PAR_MPI_DNS=ON
-DMATMUL_BENCHMARK_REPEAT_COUNT=2 -DMATMUL_BENCHMARK_REPEAT_TAKE_MINIMUM=ON -DMATMUL_BENCHMARK_VERIFY_RESULT=ON -DMATMUL_BENCHMARK_PRINT_MATRICES=OFF
"../../../"
;fi
- make VERBOSE=1
# The number of processes set for mpiexec has to be a square for the Cannon algorithm and a cube for DNS.
# The smallest number not 1 satisfying this is 64. 4^3=64=8^2. This forces the minimum N to be 8.
- if [ "${MATMUL_BENCHMARK_CUDA}" == "OFF" ]
;then
if [ "${MATMUL_BENCHMARK_MPI}" == "OFF" ]
;then
./matmul_benchmark 4 128 16 3
;else
mpiexec -n 64 ./matmul_benchmark 8 128 16 3
;fi
;fi
- cd ../
- cd ../../../
################################################################################
#
################################################################################
notifications:
email: false