@@ -3,18 +3,42 @@ dependencies:
33 build : [mpi, lapack, mumps, blopex, parmetis, scalapack]
44
55sources :
6- - url : https://github.com/certik/bddc.git
7- key : git:3d6cfa120682be5925861c022bd3a3f2c5d77940
6+ - key : git:acd093697417f49ec856b69e2d8b442e5adbbe85
7+ url : https://github.com/certik/bddc.git
8+
9+ defaults :
10+ # Build in Debug mode (debug symbols, bounds checks, ...)
11+ debug : false
812
913build_stages :
1014
15+ - when : debug
16+ name : debug-flags
17+ after : prologue
18+ before : make-configure
19+ handler : bash
20+ bash : |
21+ FFLAGS="-g -C -Wall -fbounds-check"
22+ CFLAGS="-g -Wall"
23+
24+ - when : not debug
25+ name : debug-flags
26+ after : prologue
27+ before : make-configure
28+ handler : bash
29+ bash : |
30+ FFLAGS="-C -Wall -O3 -march=native -ffast-math -funroll-loops"
31+ CFLAGS="-Wall -O3 -march=native -ffast-math -funroll-loops"
32+
1133 - name : make-configure
1234 after : prologue
1335 handler : bash
1436 bash : |
1537 cp make.inc.example make.inc
1638 make \
1739 BDDCML_ROOT=$ARTIFACT \
40+ BDDCML_MPFFLAGS="$FFLAGS" \
41+ BDDCML_MPCFLAGS="$CFLAGS" \
1842 BDDCML_INCPARMETIS=-I$PARMETIS_DIR/include \
1943 BDDCML_LIBPARMETIS="-L$PARMETIS_DIR/lib -Wl,-rpath=${PARMETIS_DIR}/lib -lparmetis" \
2044 BDDCML_INCMETIS= \
@@ -27,7 +51,9 @@ build_stages:
2751 BDDCML_LIBSCALAPACK="-L$SCALAPACK_DIR/lib -Wl,-rpath=${SCALAPACK_DIR}/lib -lscalapack" \
2852 BDDCML_LIBLAPACK="-L$LAPACK_DIR/lib -Wl,-rpath=${LAPACK_DIR}/lib -llapack" \
2953 BDDCML_LIBBLAS="-lblas" \
30- BDDCML_LIBBLACS=
31- mkdir -p $ARTIFACT/bin
54+ BDDCML_LIBBLACS= \
55+ -j 1 # The BDDC's makefile system doesn't work in parallel
56+ mkdir -p $ARTIFACT/bin $ARTIFACT/include
57+ cp src/bddcml_interface_fortran.mod $ARTIFACT/include/
3258 cd examples
3359 cp bddcml_global bddcml_local poisson_on_cube $ARTIFACT/bin/
0 commit comments