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

added a new benchmark

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

#679698

    ......@@ -55,6 +55,17 @@
    "!reference [.export_variables, before_script]",
    "!reference [.upload, script]"
    ]
    },
    {
    "name":"percolationgpu",
    "type": "GPU",
    "buildpath": "apps/benchmarks/Percolation",
    "jobscript" : "jobscript/benchmarks/percolationgpu.sh",
    "datafile": "gpu_benchmark_*.sqlite3",
    "processingtype": "",
    "branch_regex": "",
    "project_id_regex": "kemmler/particle_coupling_GPU",
    "after_script": [ ]
    }
    ]
    }
    DIR='apps/benchmarks/Percolation'
    PROFILING="ncu --set=full"
    ARGUMENT="benchmark.prm"
    CORES=$(nproc --all)
    MPIRUN=""
    export CUDA_VISIBLE_DEVICES=${VISABLE_DEVICE}
    EXECUTABLE=Percolation
    dev_name=$(nvidia-smi --id=${VISABLE_DEVICE} --query-gpu=gpu_name --format=csv,noheader 2> /dev/null | tr -d '[:blank:]' || echo "GPU_${VISABLE_DEVICE}")
    # first test case channelflow
    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"
    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"
    echo "Runing $cmdChannelFlow"
    export DB_FILE="gpu_benchmark_channel_flow_${dev_name}.sqlite3"
    $cmdChannelFlow || echo "$cmdChannelFlow failed"
    # second test case percolation
    profile_file="ncuprofile_percolation_${basename_exe}_${dev_name}"
    # with profling
    cmdPercolation="${PROFILING} -o $profile_file $MPIRUN $EXECUTABLE ${BUILD_DIR}/${DIR}/$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"
    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