Commit efc3066c authored by yb9976's avatar yb9976
Browse files

Quick hack to support valgrind.

parent f2387f75
......@@ -431,15 +431,11 @@ def generate_spec_config(options, progs):
submit = ""
time_limit = int(options.time_limit)
if time_limit != 0:
submit = "ulimit -t %d ; " % (time_limit,)
if options.submit != []:
submit += " ".join(options.submit) + " "
if submit != "":
submit += "$command"
contents.append("use_submit_for_speed = 1")
contents.append("submit = %s" % submit)
contents.append("")
contents.append("use_submit_for_speed = 1")
contents.append("submit = mkdir -p $top/$resultdir/$lognum ; valgrind --tool=callgrind --log-file=`mktemp -p $top/$resultdir/$lognum $benchmark-callgrind-XXXXXXXX.log` $command")
contents.append("CUSTOMOPTS=")
contents.append("users = 10")
contents.append("")
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