Added results of conducted runs for the 2d advection convergence

settings.
parent acd17c80
Runs of the 2D convergence settings for the advection equation
==============================================================
Used commands:
.. code-block:: bash
CXX=mpiCC ./build.sh
OMP_NUM_THREADS=4 ./run_all.sh
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (alex.breuer AT uni-jena.de)
#
# @section LICENSE
# Copyright (c) 2021, Friedrich Schiller University Jena
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# @section DESCRIPTION
# Builds a set of configs varying by the element type, order, and number of fused runs.
##
current_dir=$(pwd)
tmp_dir=$(mktemp -d)
cd ${tmp_dir}
git clone https://github.com/3343/edge.git
cd edge
git checkout develop
git submodule init
git submodule update
./tools/build/deps/libxsmm.sh -i $(pwd)/submodules/libxsmm -o $(pwd)/deps -j 8
./tools/build/deps/zlib.sh -o $(pwd)/deps -j 8
./tools/build/deps/hdf5.sh -z $(pwd)/deps -o $(pwd)/deps -j 8
./tools/build/deps/gmsh.sh -p $(pwd)/tools/gmsh -o $(pwd)/deps -j 8
./tools/build/deps/metis.sh -p $(pwd)/tools/build/deps/metis.patch -o $(pwd)/deps -j 8
cd tools/edge_v
scons parallel=omp zlib=../../deps hdf5=../../deps gmsh=../../deps metis=../../deps install_dir=../../deps -j 8
cd ../..
for order in 1 2 3 4 5
do
for element_type in tria3 quad4r
do
for cfr in 1 4 8
do
scons cfr=${cfr} equations=advection order=${order} precision=32 element_type=${element_type} zlib=$(pwd)/deps hdf5=$(pwd)/deps gmsh=$(pwd)/deps edge_v=$(pwd)/deps xsmm=deps parallel=mpi+omp -j8
mv build/edge ${current_dir}/edge_${element_type}_o${order}_${cfr}
done
done
done
rm -rf ${tmp_dir}
../configs
\ No newline at end of file
../meshes
\ No newline at end of file
#!/bin/bash
##
# @file This file is part of EDGE.
#
# @author Alexander Breuer (alex.breuer AT uni-jena.de)
#
# @section LICENSE
# Copyright (c) 2021, Friedrich Schiller University Jena
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# @section DESCRIPTION
# Runs all 2D convergence settings for the advection equation.
##
help() {
cat << EOF
Usage: ${0##*/} [-h] [-t ELEMENT_TYPE -e EDGE_PATH]
Runs all 2D convergence settings for the advection equation.
-h This help message.
-t element type either tria3 order quad4r
-e EDGE_PATH path to the EDGE-executable.
EOF
}
while getopts "ht:e:" opt; do
case "$opt" in
h)
help
exit 0
;;
t)
ELEMENT_TYPE=$OPTARG
;;
e)
EDGE_PATH=$OPTARG
;;
'?')
help >&2
exit 1
;;
esac
done
shift "$((OPTIND-1))"
if [[ ${ELEMENT_TYPE} != "tria3" && ${ELEMENT_TYPE} != "quad4r" ]]
then
echo "Only quad4r and tria3 allowed as element type: ${ELEMENT_TYPE}"
help >&2
exit 1
fi
if [[ ${EDGE_PATH:0:1} != "/" ]]
then
echo "Error patch is required or not absolute: ${EDGE_PATH}"
help >&2
exit 1
fi
mkdir logs
mkdir errors
for l_cl in 2 1.25 1 0.625 0.5 0.4 0.3125 0.25 0.2 0.1
do
for l_ts in gts lts
do
if [[ ${ELEMENT_TYPE} == 'quad4r' && ${l_ts} == 'lts' ]]
then
continue
fi
for l_pa in 1 8
do
if [[ ${l_pa} == 1 ]]
then
echo "$(date) running EDGE for ${ELEMENT_TYPE}, ${l_ts}, char length ${l_cl} and for nParts ${l_pa}"
${EDGE_PATH} -x configs/gen/${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.xml 2>&1 > logs/edge_${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.log
else
echo "$(date) running EDGE for ${ELEMENT_TYPE}, ${l_ts}, char length ${l_cl} and for nParts ${l_pa}"
mpiexec --oversubscribe -n ${l_pa} ${EDGE_PATH} -x configs/gen/${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.xml 2>&1 > logs/edge_${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.log
if [[ ${l_ts} == 'gts' ]]
then
echo "$(date) running EDGE for ${ELEMENT_TYPE}, ${l_ts}, char length ${l_cl} and for nParts ${l_pa} (reorder only)"
${EDGE_PATH} -x configs/gen/${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}_reorder_only.xml 2>&1 > logs/edge_${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}_reorder_only.log
fi
fi
done
done
done
......@@ -19,81 +19,20 @@
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# @section DESCRIPTION
# Runs all 2D convergence settings for the advection equation.
# Runs convergence tests for configs varying the element type, order, and number of fused runs.
##
help() {
cat << EOF
Usage: ${0##*/} [-h] [-t ELEMENT_TYPE -e EDGE_PATH]
Runs all 2D convergence settings for the advection equation.
-h This help message.
-t element type either tria3 order quad4r
-e EDGE_PATH path to the EDGE-executable.
EOF
}
while getopts "ht:e:" opt; do
case "$opt" in
h)
help
exit 0
;;
t)
ELEMENT_TYPE=$OPTARG
;;
e)
EDGE_PATH=$OPTARG
;;
'?')
help >&2
exit 1
;;
esac
done
shift "$((OPTIND-1))"
if [[ ${ELEMENT_TYPE} != "tria3" && ${ELEMENT_TYPE} != "quad4r" ]]
then
echo "Only quad4r and tria3 allowed as element type: ${ELEMENT_TYPE}"
help >&2
exit 1
fi
if [[ ${EDGE_PATH:0:1} != "/" ]]
then
echo "Error patch is required or not absolute: ${EDGE_PATH}"
help >&2
exit 1
fi
mkdir logs
mkdir errors
for l_cl in 2 1.25 1 0.625 0.5 0.4 0.3125 0.25 0.2 0.1
for element_type in tria3 quad4r
do
for l_ts in gts lts
for order in 1 2 3 4 5
do
if [[ ${ELEMENT_TYPE} == 'quad4r' && ${l_ts} == 'lts' ]]
then
continue
fi
for l_pa in 1 8
for cfr in 1 4 8
do
if [[ ${l_pa} == 1 ]]
then
echo "$(date) running EDGE for ${ELEMENT_TYPE}, ${l_ts}, char length ${l_cl} and for nParts ${l_pa}"
${EDGE_PATH} -x configs/gen/${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.xml 2>&1 > logs/edge_${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.log
else
echo "$(date) running EDGE for ${ELEMENT_TYPE}, ${l_ts}, char length ${l_cl} and for nParts ${l_pa}"
mpiexec --oversubscribe -n ${l_pa} ${EDGE_PATH} -x configs/gen/${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.xml 2>&1 > logs/edge_${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}.log
if [[ ${l_ts} == 'gts' ]]
then
echo "$(date) running EDGE for ${ELEMENT_TYPE}, ${l_ts}, char length ${l_cl} and for nParts ${l_pa} (reorder only)"
${EDGE_PATH} -x configs/gen/${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}_reorder_only.xml 2>&1 > logs/edge_${ELEMENT_TYPE}_${l_ts}_cl_${l_cl}_pa_${l_pa}_reorder_only.log
fi
fi
mkdir -p ${element_type}_o${order}_${cfr}
cd ${element_type}_o${order}_${cfr}
ln -s ../../configs .
ln -s ../../meshes .
../run.sh -t ${element_type} -e $(pwd)/../edge_${element_type}_o${order}_${cfr}
cd ..
done
done
done
done
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment