forked from lanl/bml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci-gcc-10-Fortran-single-complex.sh
executable file
·42 lines (35 loc) · 1.32 KB
/
ci-gcc-10-Fortran-single-complex.sh
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
#!/bin/bash
set -e -u -x
for READLINK in readlink greadlink; do
if ${READLINK} --canonicalize ${HOME}; then
break
fi
done
basedir=$(${READLINK} --canonicalize $(dirname $0)/..)
export CC=${CC:-gcc-10}
export CXX=${CXX:-g++-10}
export FC=${FC:-gfortran-10}
export BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS:-no}
export BML_OPENMP=${BML_OPENMP:-yes}
export BML_INTERNAL_BLAS=${BML_INTERNAL_BLAS:-no}
export TESTING_EXTRA_ARGS=${TESTING_EXTRA_ARGS:-"-R fortran-.*-single_complex"}
export BML_VALGRIND=${BML_VALGRIND:-yes}
# [nicolasbock] Valgrind cannot handle a Debug build with valgrind and
# fails with:
#
# parse DIE(readdwarf3.c:3619): confused by:
# <2><60e>: Abbrev Number: 25 (DW_TAG_subrange_type)
# DW_AT_type : <42>
# DW_AT_upper_bound : 4 byte block: 91 c0 7b 6
# parse_type_DIE:
# --18653-- WARNING: Serious error when reading debug info
# --18653-- When reading debug info from /home/runner/work/bml/bml/build/tests/Fortran-tests/bml-testf:
# --18653-- confused by the above DIE
#
# Bionic ships with valgrind-3.13.0. This issue might be fixed with
# later versions.
#
# Re-review once we have a backport of valgrind for Bionic.
export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}
[[ -f ${basedir}/scripts/ci-defaults.sh ]] && . ${basedir}/scripts/ci-defaults.sh
${basedir}/build.sh --debug testing