From 467e0bebda98aff4eb8d37b396cee6c3c2997cab Mon Sep 17 00:00:00 2001
From: Christoph Alt <christoph.alt@fau.de>
Date: Thu, 12 Oct 2023 17:15:46 +0200
Subject: [PATCH] actually using gpu panels in profile dashboard

---
 dashboards/dashboard_walberla.py | 27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)

diff --git a/dashboards/dashboard_walberla.py b/dashboards/dashboard_walberla.py
index fe2f3ae..6b53252 100644
--- a/dashboards/dashboard_walberla.py
+++ b/dashboards/dashboard_walberla.py
@@ -205,21 +205,18 @@ def dashboard_uniformgridgpu_profile():
         Filter("periodic_2"),
     ]
 
-    fields = [
-        PanelInfos("mlupsPerProcess", Units.number),
-        PanelInfos("Runtime (RDTSC) [s]", Units.seconds),
-        PanelInfos("DP [MFLOP/s]", Units.mflop_sec),
-        PanelInfos("Operational intensity", Units.flop_per_byte),
-        PanelInfos('AVX DP [MFLOP/s]" / "DP [MFLOP/s]', Units.percent),
-        PanelInfos('Memory bandwidth [MBytes/s]', Units.mbytes_per_second),
-        PanelInfos('Memory write bandwidth [MBytes/s]', Units.mbytes_per_second),
-        PanelInfos('Memory read bandwidth [MBytes/s]', Units.mbytes_per_second),
-        PanelInfos('Memory data volume [GBytes]', Units.gigabyte),
-        PanelInfos('Memory read data volume [GBytes]', Units.gigabyte),
-        PanelInfos('Memory write data volume [GBytes]', Units.gigabyte),
-        PanelInfos('Energy [J]', Units.joule),
-        PanelInfos('Power [W]', Units.watt),
-        PanelInfos('Clock [MHz] STAT Avg', Units.megahertz), ]
+    fields = [PanelInfos(runtime_key, Units.seconds),
+              PanelInfos(dp_key, Units.mflop_sec),
+              PanelInfos(p_max_key, Units.mflop_sec),
+              PanelInfos(f'{dp_key}"/"{p_max_key}', Units.percent),
+              PanelInfos(operational_intensity_key, Units.flop_per_byte),
+              PanelInfos(memory_bandwidth_key, Units.mbytes_per_second),
+              PanelInfos(memory_write_bandwidth_key, Units.mbytes_per_second),
+              PanelInfos(memory_read_bandwidth_key, Units.mbytes_per_second),
+              PanelInfos(memory_data_key, Units.gigabyte),
+              PanelInfos(memory_write_data_key, Units.gigabyte),
+              PanelInfos(memory_read_data_key, Units.gigabyte),
+              ]
 
     filter_vars = [get_dashboard_variable(filter, measurment_name, data_source) for filter in filters]
 
-- 
GitLab