Skip to content
Snippets Groups Projects
Verified Commit 304d343a authored by Jayesh Badwaik's avatar Jayesh Badwaik
Browse files

+ plotting scripts

parent f7316c78
Branches
Tags
No related merge requests found
powercap-measurement:
variables:
CUSTOM_CI_BUILDS_DIR: $[[inputs.build_dir]]
id_tokens:
SITE_ID_TOKEN:
aud: "https://gitlab.jsc.fz-juelich.de"
tags:
- jedi
- jacamar
- login
- shell
script:
- module load JUBE
- export JUBE_INCLUDE_PATH=$PWD/jube
- |
jutil env activate \
--project cjsc \
--budget zam \
--reservation test-alvarez-jpbot-001-22
- jube-autorun -r "-e --outpath ../outpath" benchmark.yml
- jube result --style csv ../outpath > benchmark.csv
powercap-plotting:
image: registry.jsc.fz-juelich.de/exacb/docker/report:latest
tags:
- docker
needs:
- job: powercap-measurement
artifacts: true
artifacts:
paths:
- benchmark.pdf
script:
- python -m venv venv
- source venv/bin/activate
- pip install matplotlib
- python post/plotting.py --input benchmark.csv --output benchmark.pdf
...@@ -12,7 +12,7 @@ parameterset: ...@@ -12,7 +12,7 @@ parameterset:
- name: benchParam - name: benchParam
parameter: parameter:
- name: inputpowercap - name: inputpowercap
_: "100, 200, 300" _: "100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300"
- name: systemParam - name: systemParam
init_with: "platform.xml:systemParameter" init_with: "platform.xml:systemParameter"
parameter: parameter:
...@@ -31,7 +31,7 @@ parameterset: ...@@ -31,7 +31,7 @@ parameterset:
parameter: parameter:
- name: args_starter - name: args_starter
_: "--cpu-bind=none" _: "--cpu-bind=none"
step: step:
- name: build - name: build
use: use:
...@@ -69,7 +69,7 @@ patternset: ...@@ -69,7 +69,7 @@ patternset:
- name: performance - name: performance
_: ${jube_pat_int} _: ${jube_pat_int}
analyser: analyser:
- name: bench_info - name: bench_info
analyse: analyse:
......
#!/usr/bin/env python3
import matplotlib.pyplot
import csv
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--input", help="input file")
parser.add_argument("--output", help="output file")
args = parser.parse_args()
filename = args.input
x = []
y = []
with open(filename) as f:
plots = csv.reader(f, delimiter=",")
for row in plots:
x.append(int(row[0]))
y.append(int(row[1]))
fig, ax = matplotlib.pyplot.subplots()
ax.plot(x, y)
ax.set(xlabel="power", ylabel="performance", title="Graph")
matplotlib.pyplot.savefig(args.output)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment