John Doe
Guest
|
Posted:
Sun Oct 30, 2005 11:55 pm Post subject:
Profiling hooks in Spec CPU2000 benchmarks (was invoking Spe |
|
|
Hello,
I have a question for any Spec CPU gurus here.
I am trying to run a spec benchmark over many iterations and keep track of
the clock cycles in each iteration using the processor timestamp counter.
The spec documentation stated that there are a number of config file hooks
that can be used for profiling and feedback-directed optimizations. I tried
to use the fdo_preN and fdo_postN options to insert the appropriate shell
commands before and after each iteration of the benchmark.
However, there are two problems. First, these options cause the commands to
be executed either during the compilation of the benchmarks (using specmake)
or during
the training runs for feedback directed optimization, but NOT during the
subsequent runs of the benchmarks. I am not interested in feedback directed
optimization. All I want are some hooks that will allow me to execute my
commands before and after each *run* of the benchmark, after everything has
been compiled. Second, these hooks force me to explicitly specify the number
of the iteration. (fdo_pre1 =..., fdo_pre2 = ... etc.) I can't simply say,
"For every iteration, insert the following commands before and after the
iteration."
Any suggestions?
Vasanth |
|