Skip to content
Snippets Groups Projects
Commit 9bb98052 authored by Christoph Alt's avatar Christoph Alt
Browse files

updated the percolation script

parent dd101147
No related branches found
No related tags found
1 merge request!7Add a new benchmark case
Pipeline #680153 passed
Pipeline: cx-test

#680154

    ......@@ -7,6 +7,8 @@ MPIRUN=""
    export CUDA_VISIBLE_DEVICES=${VISABLE_DEVICE}
    EXECUTABLE=Percolation
    FULL_EXECUTABLE="${BUILD_DIR}/${DIR}/${EXECUTABLE}"
    FULL_ARGUMENT="${BUILD_DIR}/${DIR}/${ARGUMENT}"
    dev_name=$(nvidia-smi --id=${VISABLE_DEVICE} --query-gpu=gpu_name --format=csv,noheader 2> /dev/null | tr -d '[:blank:]' || echo "GPU_${VISABLE_DEVICE}")
    ......@@ -16,13 +18,13 @@ basename_exe=$(basename ${EXECUTABLE})
    profile_file="ncuprofile_channelflow_${basename_exe}_${dev_name}"
    # with profling
    cmdChannelFlow="${PROFILING} -o $profile_file $MPIRUN $EXECUTABLE ${BUILD_DIR}/${DIR}/$ARGUMENT -NumericalSetup.timeSteps=2 -NumericalSetup.useParticles=false"
    cmdChannelFlow="${PROFILING} -o $profile_file $MPIRUN $FULL_EXECUTABLE $FULL_ARGUMENT -NumericalSetup.timeSteps=2 -NumericalSetup.useParticles=false"
    export DB_FILE="gpu_profile_channel_flow_${dev_name}.sqlite3"
    echo "Runing $cmdChannelFlow"
    $cmdChannelFlow && ncu -i "${profile_file}.ncu-rep" --csv --page=raw > "$(basename -s ".ncu-rep" ${profile_file})".csv || echo "${cmdChannelFlow} failed"
    # without profling
    cmdChannelFlow="$MPIRUN $executable ${BUILD_DIR}/${DIR}/$ARGUMENT -NumericalSetup.useParticles=false"
    cmdChannelFlow="$MPIRUN $FULL_EXECUTABLE $FULL_ARGUMENT -NumericalSetup.useParticles=false"
    echo "Runing $cmdChannelFlow"
    export DB_FILE="gpu_benchmark_channel_flow_${dev_name}.sqlite3"
    $cmdChannelFlow || echo "$cmdChannelFlow failed"
    ......@@ -31,13 +33,13 @@ $cmdChannelFlow || echo "$cmdChannelFlow failed"
    profile_file="ncuprofile_percolation_${basename_exe}_${dev_name}"
    # with profling
    cmdPercolation="${PROFILING} -o $profile_file $MPIRUN $EXECUTABLE ${BUILD_DIR}/${DIR}/$ARGUMENT -NumericalSetup.timeSteps=2"
    cmdPercolation="${PROFILING} -o $profile_file $MPIRUN $FULL_EXECUTABLE $FULL_ARGUMENT -NumericalSetup.timeSteps=2"
    export DB_FILE="gpu_profile_percolation_${dev_name}.sqlite3"
    echo "Runing $cmdPercolation"
    $cmdPercolation && ncu -i "${profile_file}.ncu-rep" --csv --page=raw > "$(basename -s ".ncu-rep" ${profile_file})".csv || echo "${cmdPercolation} failed"
    # without profling
    cmdPercolation="$MPIRUN $executable ${BUILD_DIR}/${DIR}/$ARGUMENT"
    echo "Runing cmdPercolation"
    cmdPercolation="$MPIRUN $FULL_EXECUTABLE $FULL_ARGUMENT"
    echo "Runing $cmdPercolation"
    export DB_FILE="gpu_benchmark_percolation_${dev_name}.sqlite3"
    $cmdPercolation || echo "$cmdPercolation failed"
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment