version 0.1
[LbmBenchmarkKernelsPublic.git] / src / test.sh
CommitLineData
10988083
MW
1#!/bin/bash -l
2# --------------------------------------------------------------------------
3#
4# Copyright
5# Markus Wittmann, 2016-2017
6# RRZE, University of Erlangen-Nuremberg, Germany
7# markus.wittmann -at- fau.de or hpc -at- rrze.fau.de
8#
9# Viktor Haag, 2016
10# LSS, University of Erlangen-Nuremberg, Germany
11#
12# This file is part of the Lattice Boltzmann Benchmark Kernels (LbmBenchKernels).
13#
14# LbmBenchKernels is free software: you can redistribute it and/or modify
15# it under the terms of the GNU General Public License as published by
16# the Free Software Foundation, either version 3 of the License, or
17# (at your option) any later version.
18#
19# LbmBenchKernels is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details.
23#
24# You should have received a copy of the GNU General Public License
25# along with LbmBenchKernels. If not, see <http://www.gnu.org/licenses/>.
26#
27# --------------------------------------------------------------------------
28set -u
29set -e
30
31XTag="-test"
32
33Build=release
34
35
36
37Config=linux-intel
38
39module purge
40module add intel64
41
42make clean-all
43make -j CONFIG=$Config TAG=$XTag-debug
44make -j CONFIG=$Config BUILD=$Build TAG=$XTag-v
45make -j CONFIG=$Config BUILD=$Build TAG=$XTag-b BENCHMARK=on
46
47BinaryV="../bin/lbmbenchk-$Config-$Build$XTag-v"
48BinaryB="../bin/lbmbenchk-$Config-$Build$XTag-b"
49
50./test-verification.sh "$BinaryV"
51
52
53
54Config=linux-gcc
55
56module purge
57module add gcc
58
59make clean-all
60
61make -j CONFIG=$Config TAG=$XTag-debug
62make -j CONFIG=$Config BUILD=$Build TAG=$XTag-v
63make -j CONFIG=$Config BUILD=$Build TAG=$XTag-b BENCHMARK=on
64
65BinaryV="../bin/lbmbenchk-$Config-$Build$XTag-v"
66BinaryB="../bin/lbmbenchk-$Config-$Build$XTag-b"
67
68./test-verification.sh "$BinaryV"
69
This page took 0.057788 seconds and 5 git commands to generate.