From c327ca9f18f948fdd6d377dcd23cd0db1c8ffd77 Mon Sep 17 00:00:00 2001
From: Jayesh Badwaik <j.badwaik@fz-juelich.de>
Date: Tue, 18 Feb 2025 10:36:13 +0100
Subject: [PATCH] - go a little further to see the plateu

---
 .gitlab-ci.yml   | 4 ++--
 benchmark.yml    | 2 +-
 post/plotting.py | 3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b96e508..59073da 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@ variables:
 
 powercap-measurement:
   variables:
-    CUSTOM_CI_BUILDS_DIR: /p/scratch/cjsc/badwaik1.exacb/
+    CUSTOM_CI_BUILDS_DIR: /p/scratch/cjsc/badwaik1.exacb/job/$CI_JOB_ID
   id_tokens:
     SITE_ID_TOKEN:
       aud: "https://gitlab.jsc.fz-juelich.de"
@@ -42,5 +42,5 @@ powercap-plotting:
     - python -m venv venv
     - source venv/bin/activate
     - pip install matplotlib
-    - python post/plotting.py --input benchmark.csv --output benchmark.pdf
+    - python post/plotting.py --input benchmark.csv --output benchmark.pdf --powercap 300
 
diff --git a/benchmark.yml b/benchmark.yml
index c6a8f4c..7eb70ee 100644
--- a/benchmark.yml
+++ b/benchmark.yml
@@ -12,7 +12,7 @@ parameterset:
   - name: benchParam
     parameter:
       - name: inputpowercap
-        _: "100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300"
+        _: "100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 340, 360, 380, 400"
   - name: systemParam
     init_with: "platform.xml:systemParameter"
     parameter:
diff --git a/post/plotting.py b/post/plotting.py
index cc7d02d..a6057b7 100755
--- a/post/plotting.py
+++ b/post/plotting.py
@@ -10,6 +10,7 @@ if __name__ == "__main__":
     parser = argparse.ArgumentParser()
     parser.add_argument("--input", help="input file")
     parser.add_argument("--output", help="output file")
+    parser.add_argument("--powercap", help="powercap")
     args = parser.parse_args()
     filename = args.input
 
@@ -25,7 +26,7 @@ if __name__ == "__main__":
 
     fig, ax = matplotlib.pyplot.subplots()
     ax.plot(x, y)
-    ax.set(xlabel="power", ylabel="performance", title="Graph")
+    ax.set(xlabel="power", ylabel="performance", title="BMC Powercap=" + str(args.powercap))
     matplotlib.pyplot.savefig(args.output)
 
 
-- 
GitLab