Skip to content
Snippets Groups Projects
Commit 728d1faa authored by jourdain's avatar jourdain
Browse files

RAMSES: Add large test case

parent 8afd517b
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
#SBATCH --time=00:30:00
#SBATCH --output=ramses3dBig-jean-zay-cpu-%j.out
#SBATCH --hint=nomultithread
#SBATCH --qos=qos_cpu-dev
#SBATCH --qos=qos_cpu-t3
#SBATCH -A qbg@cpu
set -x
......
Test case presentation
======================
The small test case of the template application is doing nothing but watching videos on Youtube all day long.
It uses no DFT method, nor spectral method or anything else. The FFTW is widely not use for this case.
Case profile
------------
A profiling of a small specfem3D test case performed on Occigen on 1 haswell node (64GB) is available in this folder:
`profile_occigen-hsw.html"
It has been generated using Intel APS (infos: https://software.intel.com/sites/products/snapshots/application-snapshot/)
#!/bin/bash
echo "************************************************************"
echo "* Prepare Large case in $bench_dir"
echo "************************************************************"
mkdir -p $bench_dir/testcase_large/
if [[ $HOSTNAME = *"occigen"* ]]; then
source ../machines/occigen-bdw/env
tar xvf /store/CINES/dci/SHARED/abs/ramses/input.tar -C $bench_dir/testcase_large/.
tar xvf /store/CINES/dci/SHARED/abs/ramses/PROD.tar -C $bench_dir/testcase_large/.
elif [[ $HOSTNAME = *"jean-zay"* ]]; then
source ../machines/jean-zay-cpu/env
tar xvf $SCRATCH/abs/ramses/input_big.tar -C $bench_dir/testcase_large/.
tar xvf $SCRATCH/abs/ramses/PROD_BIG.tar -C $bench_dir/testcase_large/.
elif [[ $HOSTNAME = *"irene"* ]]; then
source ../machines/irene-amd/env
tar xvf $CCCSCRATCHDIR/abs/ramses/input_big.tar -C $bench_dir/testcase_large/.
tar xvf $CCCSCRATCHDIR/abs/ramses/PROD_BIG.tar -C $bench_dir/testcase_large/.
else
echo "Hostname not recognized: abort"
exit 1
fi
cp $bench_dir/testcase_large/PROD_BIG/cosmo.nml $bench_dir/testcase_large/.
echo "************************************************************"
echo "* End Prepare large case "
echo "************************************************************"
#!/bin/bash
if [[ $HOSTNAME = *"occigen"* ]]; then
cd ../machines/occigen-bdw/
elif [[ $HOSTNAME = *"jean-zay"* ]]; then
cd ../machines/jean-zay-cpu/
elif [[ $HOSTNAME = *"irene"* ]]; then
cd ../machines/irene-amd/
else
echo "Hostname not recognized: abort"
exit 1
fi
source ./env
if [ -z "$bench_dir" ]; then
echo "bench_dir missing"
exit 1
fi
sbatch batch_large.slurm
#!/bin/bash
if [[ $HOSTNAME = *"occigen"* ]]; then
source ../machines/occigen-bdw/env
elif [[ $HOSTNAME = *"jean-zay"* ]]; then
source ../machines/jean-zay-cpu/env
elif [[ $HOSTNAME = *"irene"* ]]; then
source ../machines/irene-amd/env
else
echo "Hostname not recognized: abort"
exit 1
fi
echo "*******************************************************************************************************************"
echo "* Validate Large case in $bench_dir/testcase_large/ *"
echo "*******************************************************************************************************************"
cd $bench_dir/testcase_large
echo "* ls -1 *.log" && ls -1 *.log
log_file=$1
if [ -z "$log_file" ]; then
log_file=`ls -thlx run_* | awk -F " " '{ print $1 }'`
echo "* No argument provided (ex: ./validate run_%m-%d-%y-%H-%M-%S.log) -> validation of the last run named $log_file"
else
echo "* Validation of the run named $log_file"
fi
start_t=`grep startup $log_file | awk '{ print $5 }'`
end_t=`grep "Total elapsed time:" $log_file | awk '{ print $4 }'`
perf=`bc -l <<< $end_t-$start_t`
if [ -z "$perf" ] || [ -z "$end_t" ]
then
echo "* Large bench is not validated"
else
echo "* Large bench is validated:"
echo "log file: $log_file"
echo "end = $end_t s (total simulation time)"
echo "perf = $perf s (total simulation time excluding initialization and i/o)"
fi
echo "*******************************************************************************************************************"
#TODO add a physical validation
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