Separate log by hostname and allow to set prefetchers to be used

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti 2023-04-04 21:56:03 +02:00
parent 5341938b60
commit 2971ddcc63

View File

@ -15,7 +15,7 @@ ISA="${BIN_INFO##*-}"
CORE="${CORE:-0}" CORE="${CORE:-0}"
FREQ="${FREQ:-2.4}" FREQ="${FREQ:-2.4}"
NRUNS="${NRUNS:-3}" NRUNS="${NRUNS:-3}"
LOG="${LOG:-latencies_and_cfds.log}" LOG="${LOG:-latencies_and_cfds.$(hostname).log}"
STUB_ONLY="${STUB_ONLY:-false}" STUB_ONLY="${STUB_ONLY:-false}"
SKIP_SET_FREQ="${SKIP_SET_FREQ:-false}" SKIP_SET_FREQ="${SKIP_SET_FREQ:-false}"
@ -37,10 +37,14 @@ CPU_VENDOR=$(lscpu | grep "Vendor ID" | tr -s ' ' | cut -d ' ' -f3)
if [ "$CPU_VENDOR" == "GenuineIntel" ]; then if [ "$CPU_VENDOR" == "GenuineIntel" ]; then
ALL_PREFETCHERS="HW_PREFETCHER,CL_PREFETCHER,DCU_PREFETCHER,IP_PREFETCHER" ALL_PREFETCHERS="HW_PREFETCHER,CL_PREFETCHER,DCU_PREFETCHER,IP_PREFETCHER"
PREFETCHERS=("ALL HW_PREFETCHER CL_PREFETCHER DCU_PREFETCHER IP_PREFETCHER NONE") DEFAULT_PREFETCHERS=("ALL HW_PREFETCHER CL_PREFETCHER DCU_PREFETCHER IP_PREFETCHER NONE")
else else
ALL_PREFETCHERS="" ALL_PREFETCHERS=""
PREFETCHERS=("IGNORE") DEFAULT_PREFETCHERS=("IGNORE")
fi
if [ -z ${PREFETCHERS+x} ]; then
PREFETCHERS=${DEFAULT_PREFETCHERS}
fi fi
if [ "$OPT_SCHEME" == "gromacs" ]; then if [ "$OPT_SCHEME" == "gromacs" ]; then