Commit 9029decf authored by Sebastian Graf's avatar Sebastian Graf

fakecc, fixing flags for perlbench_s and parallelbuilds by default

parent 186e4b9d
#!/usr/bin/env bash
# The actual binary we substitute is the first argument
BINARY=${1}
shift
# All other options are supplied by the calling context
while test $# -gt 0
do
case ${1} in
-c) # Compile artifacts - e.g. do nothing
exit 0
;;
-o) # Remember the outfile in case we link
shift
OUTFILE=${1}
;;
*) # Just ignore other options
;;
esac
shift
done
#echo ${BINARY}
#echo ${OUTFILE}
cp ${BINARY} ${OUTFILE}
......@@ -78,6 +78,9 @@ parser.add_argument("--cpp-compiler-version-option", metavar="FLAG", default=["-
parser.add_argument("--fortran-compiler-version-option", metavar="FLAG", default=["--version"], action="append",
help="Flag that causes the FC to print its version, default=--version")
parser.add_argument("-j", "--jobs", metavar="N", action="append", default="",
help="The number of parallel build jobs, default: '' (unbounded degree of parallelism)")
parser.add_argument("--compiler-args", metavar="FLAGS", default=["-O3"], action="append",
help="Append FLAGS to build benchmark programs for all compilers, default=-O3")
parser.add_argument("--c-compiler-args", metavar="CFLAGS", default=[], action="append",
......@@ -188,6 +191,8 @@ x86_64_flags["600.perlbench"] = "-DSPEC_LINUX_IA64"
for bench in ["400.perlbench", "403.gcc", "436.cactusADM", "453.povray",
"481.wrf"]:
x86_64_flags[bench] += " -DSPEC_CPU_LP64"
for bench in ["600.perlbench", "603.gcc"]:
x86_64_flags[bench] += " -DSPEC_LP64"
TARGET_ARCH_FLAGS["x86_64"] = x86_64_flags
sparc_flags = dict()
......@@ -492,6 +497,8 @@ def generate_spec_config(options, progs):
contents.append("use_submit_for_speed = 1")
contents.append("submit = %s" % submit)
contents.append("")
contents.append("makeflags = -j%s" % options.jobs)
contents.append("CC = %s" % options.c_compiler)
contents.append("CXX = %s" % options.cpp_compiler)
contents.append("FC = %s" % options.fortran_compiler)
......
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