|
||||
File indexing completed on 2025-01-18 10:18:27
0001 #!/bin/bash 0002 source strict-mode.sh 0003 0004 ## ============================================================================= 0005 ## Local configuration variables for this particular benchmark 0006 ## It defines the following additional variables: 0007 ## 0008 ## - BENCHMARK_TAG: Tag to identify this particular benchmark 0009 ## - BEAM_TAG Tag to identify the beam configuration 0010 ## - INPUT_PATH: Path for generator-level input to the benchmarks 0011 ## - TMP_PATH: Path for temporary data (not exported as artifacts) 0012 ## - RESULTS_PATH: Path for benchmark output figures and files 0013 ## 0014 ## This script assumes that EBEAM and PBEAM are set as part of the 0015 ## calling script (usually as command line argument). 0016 ## 0017 ## ============================================================================= 0018 0019 ## Tag for the local benchmark. Should be the same as the directory name for 0020 ## this particular benchmark set (for clarity). 0021 ## This tag is used for the output artifacts directory (results/${JUGGLER_TAG}) 0022 ## and a tag in some of the output files. 0023 export BENCHMARK_TAG="dvmp" 0024 echo "Setting up the local environment for the ${BENCHMARK_TAG^^} benchmarks" 0025 0026 ## Extra beam tag to identify the desired beam configuration 0027 export BEAM_TAG="${EBEAM}on${PBEAM}" 0028 0029 if [[ ! -d "input" ]] ; then 0030 echo " making local link to input " 0031 mkdir_local_data_link input 0032 fi 0033 0034 ## Data path for input data (generator-level hepmc file) 0035 INPUT_PATH="input/${BENCHMARK_TAG}/${BEAM_TAG}" 0036 #export INPUT_PATH=`realpath ${INPUT_PATH}` 0037 mkdir -p ${INPUT_PATH} 0038 echo "INPUT_PATH: ${INPUT_PATH}" 0039 0040 0041 ## Data path for temporary data (not exported as artifacts) 0042 TMP_PATH=${LOCAL_DATA_PATH}/tmp/${BEAM_TAG} 0043 #export TMP_PATH=`realpath ${TMP_PATH}` 0044 mkdir -p ${TMP_PATH} 0045 echo "TMP_PATH: ${TMP_PATH}" 0046 0047 ## Data path for benchmark output (plots and reconstructed files 0048 ## if not too big). 0049 RESULTS_PATH="results/${BENCHMARK_TAG}/${BEAM_TAG}" 0050 mkdir -p ${RESULTS_PATH} 0051 export RESULTS_PATH=`realpath ${RESULTS_PATH}` 0052 echo "RESULTS_PATH: ${RESULTS_PATH}" 0053 0054 ## ============================================================================= 0055 ## That's all! 0056 echo "Local environment setup complete."
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |