Skip to content

Commit

Permalink
Completing the info text of the hotspot analysis script
Browse files Browse the repository at this point in the history
  • Loading branch information
JOOpdenhoevel committed Nov 23, 2020
1 parent 968ce0f commit d619f19
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions examples/hotspot/analyze_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,17 @@
First, run the benchmark.sh and verify_benchmark.sh scripts and pipe their output into `benchmark.py`
and `verify_benchmark.py` respectively. If you submit the scripts as slurm jobs, this is done
automatically.
The output is formatted like a Python dict, but you need to remove error and output messages. Then,
execute this script. It loads the outputs automatically.
automatically. The output is formatted like a Python dict, but you need to remove error and output
messages. Lastly, you need to copy the cycle frequency and the pipeline length from the reports into this script.
"""
from matplotlib import pyplot
import numpy as np

from benchmark import runtime
from verify_benchmark import value_derivation

cycle_frequency = {
225: 79.63 * 10**6,
}
pipeline_length = {
225: 225,
}
cycle_frequency = 79.63 * 10**6
pipeline_length = 225

height = width = 1024
radius = 1
Expand All @@ -42,8 +36,8 @@
overhead = runtime[i][0] - mean_delta
print("\tOverhead: {:.2f} seconds".format(overhead))

executed_flop = pipeline_length[i] * flo_per_cell * height * width
executed_cycles = mean_delta * cycle_frequency[i]
executed_flop = pipeline_length * flo_per_cell * height * width
executed_cycles = mean_delta * cycle_frequency

gflops = executed_flop / mean_delta * 10**-9
ii = executed_cycles / (width * height)
Expand Down

0 comments on commit d619f19

Please sign in to comment.