diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-17 15:36:30 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-17 15:46:22 -0400 |
| commit | 5aad2261f7c012aa16a93c7c5bf6bda0081658fb (patch) | |
| tree | d9ff8f87b4613639c214032eb3fcf14967d76b5f /dis/postproc.sh | |
| parent | 97c1685def13be3724a6d025f4e12f236777a911 (diff) | |
Add updated DIS post-processing scripts from (rejected) RTSS'20 paper
These are compatible with the outputs of all the DIS stressmarks
as instumented with `extra.h`.
Diffstat (limited to 'dis/postproc.sh')
| -rwxr-xr-x | dis/postproc.sh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/dis/postproc.sh b/dis/postproc.sh index c5dd1c9..efe6774 100755 --- a/dis/postproc.sh +++ b/dis/postproc.sh | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | ./summarize.py $1.txt > $1-pp.txt | 2 | # This takes the saved output from the timing code in `extra.h`, summarizes |
| 3 | # it, and converts LLC masks to decimals. | ||
| 4 | # This is compatible with the output of all the current DIS runner scripts. | ||
| 5 | if echo $1 | grep -q ".txt"; then | ||
| 6 | echo "Don't include .txt! Exiting..." | ||
| 7 | exit | ||
| 8 | fi | ||
| 9 | if echo $1 | grep -q "\-pp"; then | ||
| 10 | echo "Don't include -pp! Exiting..." | ||
| 11 | exit | ||
| 12 | fi | ||
| 13 | if [[ ! -f $1.txt ]]; then | ||
| 14 | echo "Input does not exist. Exiting..." | ||
| 15 | exit | ||
| 16 | fi | ||
| 17 | ./summarize.py $1.txt --inf-precision > $1-pp.txt | ||
| 3 | ./clean.sh $1-pp.txt | 18 | ./clean.sh $1-pp.txt |
