build_parallel_amdis.sh 1.34 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#! /bin/bash

ROOT=${PWD}
POSTFIX="par_rel"
CONFIURATION="Release"

if [ "$1" == "Debug" ]; then
  POSTFIX="par_dbg"
  CONFIURATION="Debug"
fi

# at first build AMDiS
cmake -E make_directory ${ROOT}/build_${POSTFIX}
cmake -E chdir ${ROOT}/build_${POSTFIX} cmake \
      -DCMAKE_INSTALL_PREFIX=${ROOT}/install_${POSTFIX} \
      -DCMAKE_BUILD_TYPE=${CONFIURATION} \
      -DENABLE_CXX11:BOOL=ON \
      -DENABLE_COMPRESSION:BOOL=OFF \
      -DENABLE_UMFPACK:BOOL=OFF \
20
      -DENABLE_EXTENSIONS:BOOL=ON \
21 22
      -DENABLE_PARALLEL_DOMAIN:BOOL=ON \
       ${ROOT}/AMDiS
23
cmake --build ${ROOT}/build_${POSTFIX} --target install -- -j4
24 25 26 27 28 29 30

# now build the demos
BASEDIR=${ROOT}/demo
cmake -E make_directory ${BASEDIR}/build_${POSTFIX}
cmake -E chdir ${BASEDIR}/build_${POSTFIX} cmake \
      -DAMDIS_DIR=${ROOT}/install_${POSTFIX}/share/amdis \
      -DCMAKE_BUILD_TYPE=${CONFIURATION} \
31
      -DCOMPONENT=PARALLEL \
32 33 34 35
       ${BASEDIR}
cmake --build ${BASEDIR}/build_${POSTFIX}

# now build and run the test_suite
36
BASEDIR=${ROOT}/test
37 38 39 40
cmake -E make_directory ${BASEDIR}/build_${POSTFIX}
cmake -E chdir ${BASEDIR}/build_${POSTFIX} cmake \
      -DAMDIS_DIR=${ROOT}/install_${POSTFIX}/share/amdis \
      -DCMAKE_BUILD_TYPE=${CONFIURATION} \
41
      -DCOMPONENT=PARALLEL \
42 43 44
       ${BASEDIR}
cmake --build ${BASEDIR}/build_${POSTFIX}
cmake --build ${BASEDIR}/build_${POSTFIX} --target test