@@ -16,9 +16,6 @@ if [[ ! -f "$O2_DPL_WORKFLOW" ]]; then
1616 exit 1
1717fi
1818
19- # ----------------------------------------------------------------------------------------------------------------------
20- # Benchmark defaults. All can be overridden by exporting variables before calling this script.
21-
2219case " ${GPUTYPE:- } " in
2320 CUDA|HIP|CPU|OPENCL)
2421 export GPUTYPE
@@ -33,6 +30,14 @@ case "${GPUTYPE:-}" in
3330 ;;
3431esac
3532
33+ if [[ -z " ${FILEWORKDIR:- } " ]]; then
34+ echo " ERROR: FILEWORKDIR must be set to a directory containing raw TF input files" >&2
35+ exit 1
36+ fi
37+
38+ # ----------------------------------------------------------------------------------------------------------------------
39+ # Benchmark defaults. All can be overridden by exporting variables before calling this script.
40+
3641export DPL_REPORT_PROCESSING=" ${DPL_REPORT_PROCESSING:- 1} "
3742export WORKFLOW_PARAMETERS=" ${WORKFLOW_PARAMETERS:- GPU,CTF} "
3843export NGPUS=" ${NGPUS:- 1} "
@@ -73,6 +78,7 @@ cleanup_rundir() {
7378 echo " # Cleaning run dir: $RUNDIR "
7479 rm -rf -- " $RUNDIR "
7580 fi
81+ rm -rf /dev/shm/fmq*
7682}
7783
7884trap cleanup_rundir EXIT
@@ -97,10 +103,11 @@ echo "# single-GPU RTC benchmark"
97103echo " # source script: $O2_DPL_WORKFLOW "
98104echo " # output dir: $OUTDIR "
99105echo " # run dir: $RUNDIR "
106+ echo " # run benchmark: $RUN_BENCHMARK (0: prints workflow, 1: runs workflow)"
100107echo " # NGPUS=$NGPUS GPUTYPE=$GPUTYPE "
101108echo " # O2_GPU_DOUBLE_PIPELINE=$O2_GPU_DOUBLE_PIPELINE O2_GPU_RTC=$O2_GPU_RTC "
102109echo " # NTIMEFRAMES=$NTIMEFRAMES TFLOOP=$TFLOOP "
103- echo " # FILEWORKDIR=${FILEWORKDIR:- } INPUT_FILE_LIST= ${INPUT_FILE_LIST :- } "
110+ echo " # FILEWORKDIR=${FILEWORKDIR:- }
104111echo " # LD_LIBRARY_PATH is not modified by this script"
105112echo
106113
0 commit comments