cpubench: init, add template rendering
This commit is contained in:
112
assets/CPUBenchTemplate.ini
Normal file
112
assets/CPUBenchTemplate.ini
Normal file
@@ -0,0 +1,112 @@
|
||||
#=====================================================================
|
||||
# CPUBench config file template
|
||||
#=====================================================================
|
||||
# Usage: Copy this to a new name. eg:
|
||||
# cd $cpubench/config
|
||||
# cp config-template.ini test_xxx.ini
|
||||
#
|
||||
# For more details, refer to docs/config.md.
|
||||
#=====================================================================
|
||||
|
||||
#=========================Common Settings=============================
|
||||
# 'common' means that all benchmarks are affected.
|
||||
#=====================================================================
|
||||
[common]
|
||||
action = standard # options: standard, build, run, clean
|
||||
benchmarks = IntSingle,FloatSingle
|
||||
#IntSingle
|
||||
#benchmarks = x264,gcc,gzip,tpcc,tpch,velvet,openssl,rapidjson,python,xz
|
||||
|
||||
#FloatSingle
|
||||
#benchmarks = cube,gromacs,lammps,openfoam,phenglei,povray,lightgbm,phyml,wrf
|
||||
|
||||
arch = auto # arch: auto, aarch64, x86_64, mips64el
|
||||
tag = test
|
||||
tune = typical # options: typical, extreme, both
|
||||
jobs = 1 # 1: single-core performance. 1+: Multi-Core Performance.
|
||||
iterations = 1
|
||||
verbose = 0 # options: 0(close), 1(open)
|
||||
work_dir = work_dir # Any directory with the write permission.
|
||||
rebuild = 0 # options: 0(close), 1(open)
|
||||
# taskset = 0-8,10,12-15 # Set the number of the bound CPU core.
|
||||
|
||||
#=======================Tester Descriptions===========================
|
||||
test_sponsor = # Example: CPUBench
|
||||
test_date = # Example: 2021.01.01
|
||||
manufacturer = # Example: CPUBench
|
||||
|
||||
#=====================System Availability Dates=======================
|
||||
software_available_time = # Example: 2020.12.31
|
||||
hardware_available_time = # Example: 2020.12.31
|
||||
|
||||
#======================Compile Environment============================
|
||||
ptrsize = # Example: 64-bits
|
||||
compiler = # Example: gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
|
||||
|
||||
#=======================System information============================
|
||||
machine_name = # Example: Huawei 2288H V5
|
||||
cpu_name = # Example: KunPeng 920
|
||||
cpu_nominal_mhz = # Example: 9999
|
||||
cpu_max_mhz = # Example: 9999
|
||||
l1_cache = # Example: 64K
|
||||
l2_cache = # Example: 512K
|
||||
l3_cache = # Example: 49152K
|
||||
os = # Example: Linux Malluma 4.14.0-115.el7a.0.1.aarch64
|
||||
memory = # Example: 254G
|
||||
hardware_others = # Example: BIOS CPU Prefetching: Enable
|
||||
software_others = # Example: swapoff -a
|
||||
license_id = # Example: 0fada854365cacggbopspckl
|
||||
|
||||
#==========================Debug Options==============================
|
||||
perf = 0 # 0(close), 1(open). You are advised to set iterations to 1 when you enable it.
|
||||
# You can customize the collection command and assign it a target name to distinguish it from other commands.
|
||||
# eg. perf_strace = strace -o {output} -p {pid}
|
||||
# For details, see config.md.
|
||||
perf_timeout = 60 # Set the collection timeout.
|
||||
|
||||
#=========================Namespace Settings==========================
|
||||
# The items here take effect only for specified namespace.
|
||||
#
|
||||
# There are priorities between namespaces, for example:
|
||||
# [default] according to common sense, it has the lowest priority.
|
||||
# [IntConcurrent] priority is higher than [default] and takes effect for the benchmarks of this suite.
|
||||
# [int_x264] has the highest priority, but takes effect only for a specific benchmark.
|
||||
#=====================================================================
|
||||
[default]
|
||||
clang_dir = @@LLVM_INSTALL@@
|
||||
SYSROOT = /usr/sw/standard-830-6b-test/
|
||||
LD_LIBRARY_PATH = ${clang_dir}/lib
|
||||
|
||||
#==========================Compiler for C=============================
|
||||
CC = ${clang_dir}/bin/clang
|
||||
CC_VERSION = -v
|
||||
OPTIMIZE = @@OPTIMIZE@@
|
||||
CFLAGS = ${OPTIMIZE} --sysroot=${SYSROOT} # Example: -g
|
||||
|
||||
#==========================Compiler for C++===========================
|
||||
CXX = ${clang_dir}/bin/clang++
|
||||
CXX_VERSION = -v
|
||||
CXXFLAGS = ${OPTIMIZE} --sysroot=${SYSROOT} # Example: -fno-strict-aliasing -fgnu89-inline
|
||||
|
||||
#=============================LD Flags================================
|
||||
CLD = # Example: ${CC}
|
||||
CXXLD = # Example: ${CXX}
|
||||
FLD = # Example: ${FC}
|
||||
LD_FLAGS = --sysroot=${SYSROOT} -L ${clang_dir}/lib -Wl,-rpath,${clang_dir}/lib -Wl,-rpath,${SYSROOT}/lib -Wl,-rpath-link,${clang_dir}/lib -Wl,-rpath-link,${SYSROOT}/lib -Wl,-dynamic-linker,${SYSROOT}/lib/ld-linux.so.2
|
||||
|
||||
#=============================LIBS Flags==============================
|
||||
LIBS = # Example: -lpthread
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
|
||||
#=========================Compiler for fortran========================
|
||||
FC = ${clang_dir}/bin/flang
|
||||
FC_VERSION = -v
|
||||
FFLAGS = ${OPTIMIZE} --sysroot=${SYSROOT}
|
||||
|
||||
#=============================JAVA Option=============================
|
||||
java_options = # Example: -XX:ParallelGCThreads=1
|
||||
|
||||
FloatSingle_work_dir_build_information = build_information_20240523151102.json
|
||||
|
||||
IntSingle_work_dir_build_information = build_information_20240522191713.json
|
||||
Reference in New Issue
Block a user