Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-21 23:14:25

0001 #! /bin/bash
0002 
0003 ########################
0004 ## Command Line Input ##
0005 ########################
0006 
0007 remote_arch=${1} # SNB, KNL, SKL-SP
0008 suite=${2:-"forPR"} # which set of benchmarks to run: full, forPR, forConf
0009 useARCH=${3:-0}
0010 lnxuser=${4:-${USER}}
0011 
0012 ###################
0013 ## Configuration ##
0014 ###################
0015 
0016 source xeon_scripts/common-variables.sh ${suite} ${useARCH} ${lnxuser} 
0017 source xeon_scripts/init-env.sh
0018 
0019 # architecture dependent settings
0020 if [[ "${remote_arch}" == "SNB" ]]
0021 then
0022     HOST=${SNB_HOST}
0023     DIR=${SNB_WORKDIR}/${SNB_TEMPDIR}
0024 elif [[ "${remote_arch}" == "KNL" ]]
0025 then
0026     HOST=${KNL_HOST}
0027     DIR=${KNL_WORKDIR}/${KNL_TEMPDIR}
0028 elif [[ "${remote_arch}" == "LNX-G" ]]
0029 then 
0030     HOST=${LNXG_HOST}
0031     DIR=${LNXG_WORKDIR}/${LNXG_TEMPDIR}
0032 elif [[ "${remote_arch}" == "LNX-S" ]]
0033 then
0034     HOST=${LNXS_HOST}
0035     DIR=${LNXS_WORKDIR}/${LNXS_TEMPDIR}
0036 else 
0037     echo ${remote_arch} "is not a valid architecture! Exiting..."
0038     exit
0039 fi
0040 
0041 ###################
0042 ## Run The Tests ##
0043 ###################
0044 
0045 # execute tests remotely
0046 echo "Executing ${remote_arch} tests remotely..."
0047 SSHO ${HOST} bash -c "'
0048 cd ${DIR}
0049 ./xeon_scripts/benchmark-cmssw-ttbar-fulldet-build.sh ${remote_arch} ${suite} ${useARCH} ${lnxuser} 
0050 exit
0051 '"
0052 
0053 # copy logs back for plotting
0054 echo "Copying logs back from ${remote_arch} for plotting"
0055 scp ${HOST}:${DIR}/log_${remote_arch}_${sample}_*.txt .
0056 
0057 # destroy tmp files
0058 echo "Removing tmp dir on ${remote_arch} remotely"
0059 SSHO ${HOST} bash -c "'
0060 rm -rf ${DIR}
0061 exit
0062 '"