Commit 21528db2 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Added parameter for iterations

parent 95819f4d
......@@ -34,22 +34,24 @@ SPEC_SUITE = identify_suite()
parser = optparse.OptionParser(version=SCRIPT_VERSION)
parser.add_option("--config-only", action="store_true", default=False,
help="Just generate config file, but do not build or run")
parser.add_option("--c-compiler", metavar="<CC>", default="cparser",
help="Use <CC> to build benchmark programs")
parser.add_option("--fortran-compiler", metavar="<FC>", default="gfortran",
help="Use <FC> to build benchmark programs")
parser.add_option("--cpp-compiler", metavar="<CXX>", default="g++",
help="Use <CXX> to build benchmark programs")
parser.add_option("--compiler-args", metavar="<FLAGS>", default="-O3",
help="Append <FLAGS> to build benchmark programs for all compilers")
parser.add_option("--c-compiler-args", metavar="<CFLAGS>", default="",
help="Append <CFLAGS> to build benchmark programs for C compiler")
parser.add_option("--fortran-compiler-args", metavar="<FFLAGS>", default="",
help="Append <FFLAGS> to build benchmark programs for Fortran compiler")
parser.add_option("--cpp-compiler-args", metavar="<CFLAGS>", default="",
help="Append <CFLAGS> to build benchmark programs for C++ compiler")
parser.add_option("-i", "--iterations", metavar="ITR", default=3,
help="Evaluate ITR iterations per program, default=3")
parser.add_option("--c-compiler", metavar="CC", default="cparser",
help="Use CC to build benchmark programs, default=cparser")
parser.add_option("--fortran-compiler", metavar="FC", default="gfortran",
help="Use FC to build benchmark programs, default=gfortran")
parser.add_option("--cpp-compiler", metavar="CXX", default="g++",
help="Use CXX to build benchmark programs, default=g++")
parser.add_option("--compiler-args", metavar="FLAGS", default="-O3",
help="Append FLAGS to build benchmark programs for all compilers, default=-O3")
parser.add_option("--c-compiler-args", metavar="CFLAGS", default="",
help="Append CFLAGS to build benchmark programs for C compiler, default empty")
parser.add_option("--fortran-compiler-args", metavar="FFLAGS", default="",
help="Append FFLAGS to build benchmark programs for Fortran compiler, default empty")
parser.add_option("--cpp-compiler-args", metavar="CFLAGS", default="",
help="Append CFLAGS to build benchmark programs for C++ compiler, default empty")
# http://www.spec.org/cpu2006/Docs/config.html
......@@ -179,6 +181,8 @@ def generate_spec_config(options):
contents = [_CONFIG_HEAD]
cpuinfo = get_cpu_info()
meminfo = get_mem_info()
contents.append("iterations = %d" % options.iterations)
contents.append("")
contents.append("sw_os = %s %s %s" % (LINUX_NAME, LINUX_VERSION, LINUX_CODENAME))
contents.append("sw_compiler = %s" % get_sw_compiler(options))
contents.append("sw_file = %s" % path_to_filesystem("."))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment