Skip to content
Snippets Groups Projects
prepare.sh 1.16 KiB
####################################
# REMOVE PREVIOUS LOGS
####################################
rm -rf $GYSELA_PATH/wk/*BIG*TKE*
rm -rf $GYSELA_PATH/wk/big*

####################################
# Source the right environment
####################################
if [ -z "$1" ]
  then
    echo "Please provide the targeted machine from:"
    ls machines/
    echo ""
    echo "Example: ./prepare.sh occigen-bdw"
    exit 1
fi
env_file="../machines/$1/env_bench"

if [ ! -f $env_file ]
        then
    echo "ERROR: $env_file not found!"
                exit 1
        else
                source $env_file
fi

####################################
# COMPILE THE TEST CASE
####################################
if [ ${ARCH} = 'occigen2' ]; then
    cp ../machines/occigen-bdw/bigtest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
    cp ../machines/occigen-bdw/env_bench ./
elif [ ${ARCH} = 'jeanzay' ]; then
    cp ../machines/jean-zay-cpu/bigtest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
    cp ../machines/jean-zay-cpu/env_bench ./
elif [ ${ARCH} = 'irene_amd' ]; then
    cp ../machines/irene-amd/bigtest_TKE_A139_n14_dlogTi0.0 $GYSELA_PATH/wk/
    cp ../machines/irene-amd/env_bench ./
fi