Skip to content
Snippets Groups Projects
Commit 8a6396ab authored by Christoph Alt's avatar Christoph Alt
Browse files

added likwid keys

parent 467e0beb
No related branches found
No related tags found
No related merge requests found
Pipeline #56392 passed
avx_dp_key = 'AVX DP [MFLOP/s]'
cpi_key = 'CPI'
dp_key = 'DP [MFLOP/s]'
energy_dram_key = 'Energy DRAM [J]'
energy_key = 'Energy [J]'
power_dram_key = 'Power DRAM [W]'
power_key = 'Power [W]'
memory_bandwidth_key = 'Memory bandwidth [MBytes/s]'
memory_read_bandwidth_key = 'Memory read bandwidth [MBytes/s]'
memory_write_bandwidth_key = 'Memory write bandwidth [MBytes/s]'
memory_data_key = 'Memory data volume [GBytes]'
memory_write_key = 'Memory write data volume [GBytes]'
memory_read_key = 'Memory read data volume [GBytes]'
oi_key = 'Operational intensity'
packe_ops_key = 'Packed [MUOPS/s]'
scalar_ops_key = 'Scalar [MUOPS/s]'
runtime_key = 'Runtime (RDTSC) [s]'
clock_key = 'Clock [MHz]'
STAT_SUFFIX = ' STAT'
def add_suffix(suffix: str, key: str) -> str:
return f'{key} {suffix}'
def add_stat(key):
return add_suffix(STAT_SUFFIX, key)
def add_avg(key):
return add_suffix('Avg', key)
def add_sum(key):
return add_suffix('Sum', key)
def add_min(key):
return add_suffix('Min', key)
def add_max(key):
return add_suffix('Max', key)
def add_stat_avg(key):
return add_avg(add_stat(key))
def add_stat_min(key):
return add_min(add_stat(key))
def add_stat_max(key):
return add_max(add_stat(key))
def add_stat_sum(key):
return add_sum(add_stat(key))
...@@ -11,18 +11,9 @@ from dashboards.variables import get_dashboard_variable, Filter, get_measurement ...@@ -11,18 +11,9 @@ from dashboards.variables import get_dashboard_variable, Filter, get_measurement
from dashboards.influx_queries import join_variable_and from dashboards.influx_queries import join_variable_and
from dashboards.legends import Units from dashboards.legends import Units
from cbutil.ncu_keys import ( import cbutil.ncu_keys as ncu_keys
memory_write_data_key, import cbutil.likwid_keys as likwid_keys
memory_read_data_key,
memory_data_key,
memory_write_bandwidth_key,
memory_read_bandwidth_key,
memory_bandwidth_key,
runtime_key,
operational_intensity_key,
p_max_key,
dp_key,
)
INTEL_LINESTYLE = "solid" INTEL_LINESTYLE = "solid"
GCC_LINESTYLE = "dashed" GCC_LINESTYLE = "dashed"
...@@ -45,19 +36,19 @@ def dashboard_pystencils_cpu(): ...@@ -45,19 +36,19 @@ def dashboard_pystencils_cpu():
Filter("compiler"), Filter("compiler"),
] ]
fields = [PanelInfos("Runtime (RDTSC) [s]", Units.seconds), fields = [PanelInfos(likwid_keys.runtime_key, Units.seconds),
PanelInfos("DP [MFLOP/s]", Units.mflop_sec), PanelInfos(likwid_keys.dp_key, Units.mflop_sec),
PanelInfos("Operational intensity", Units.flop_per_byte), PanelInfos(likwid_keys.oi_key, Units.flop_per_byte),
PanelInfos('AVX DP [MFLOP/s]" / "DP [MFLOP/s]', Units.percent), PanelInfos(f'{likwid_keys.avx_dp_key}"/"{likwid_keys.dp_key}', Units.percent),
PanelInfos('Memory bandwidth [MBytes/s]', Units.mbytes_per_second), PanelInfos(likwid_keys.memory_bandwidth_key, Units.mbytes_per_second),
PanelInfos('Memory write bandwidth [MBytes/s]', Units.mbytes_per_second), PanelInfos(likwid_keys.memory_write_bandwidth_key, Units.mbytes_per_second),
PanelInfos('Memory read bandwidth [MBytes/s]', Units.mbytes_per_second), PanelInfos(likwid_keys.memory_read_bandwidth_key, Units.mbytes_per_second),
PanelInfos('Memory data volume [GBytes]', Units.gigabyte), PanelInfos(likwid_keys.memory_data_key, Units.gigabyte),
PanelInfos('Memory read data volume [GBytes]', Units.gigabyte), PanelInfos(likwid_keys.memory_read_key, Units.gigabyte),
PanelInfos('Memory write data volume [GBytes]', Units.gigabyte), PanelInfos(likwid_keys.memory_write_key, Units.gigabyte),
PanelInfos('Energy [J]', Units.joule), PanelInfos(likwid_keys.energy_key, Units.joule),
PanelInfos('Power [W]', Units.watt), PanelInfos(likwid_keys.power_key, Units.watt),
PanelInfos('Clock [MHz] STAT Avg', Units.megahertz), ] PanelInfos(likwid_keys.clock_key, Units.megahertz), ]
filter_vars = [get_dashboard_variable(filter, "", data_source) for filter in filters] filter_vars = [get_dashboard_variable(filter, "", data_source) for filter in filters]
benchmark = get_measurement_filter("benchmark", data_source, filter_pattern="[^u]$") benchmark = get_measurement_filter("benchmark", data_source, filter_pattern="[^u]$")
...@@ -107,17 +98,17 @@ def dashboard_pystencils_gpu(): ...@@ -107,17 +98,17 @@ def dashboard_pystencils_gpu():
Filter("GPU"), Filter("GPU"),
] ]
fields = [PanelInfos(runtime_key, Units.seconds), fields = [PanelInfos(ncu_keys.runtime_key, Units.seconds),
PanelInfos(dp_key, Units.mflop_sec), PanelInfos(ncu_keys.dp_key, Units.mflop_sec),
PanelInfos(p_max_key, Units.mflop_sec), PanelInfos(ncu_keys.p_max_key, Units.mflop_sec),
PanelInfos(f'{dp_key}"/"{p_max_key}', Units.percent), PanelInfos(f'{ncu_keys.dp_key}"/"{ncu_keys.p_max_key}', Units.percent),
PanelInfos(operational_intensity_key, Units.flop_per_byte), PanelInfos(ncu_keys.operational_intensity_key, Units.flop_per_byte),
PanelInfos(memory_bandwidth_key, Units.mbytes_per_second), PanelInfos(ncu_keys.memory_bandwidth_key, Units.mbytes_per_second),
PanelInfos(memory_write_bandwidth_key, Units.mbytes_per_second), PanelInfos(ncu_keys.memory_write_bandwidth_key, Units.mbytes_per_second),
PanelInfos(memory_read_bandwidth_key, Units.mbytes_per_second), PanelInfos(ncu_keys.memory_read_bandwidth_key, Units.mbytes_per_second),
PanelInfos(memory_data_key, Units.gigabyte), PanelInfos(ncu_keys.memory_data_key, Units.gigabyte),
PanelInfos(memory_write_data_key, Units.gigabyte), PanelInfos(ncu_keys.memory_write_data_key, Units.gigabyte),
PanelInfos(memory_read_data_key, Units.gigabyte), PanelInfos(ncu_keys.memory_read_data_key, Units.gigabyte),
] ]
filter_vars = [get_dashboard_variable(filter, "", data_source) for filter in filters] filter_vars = [get_dashboard_variable(filter, "", data_source) for filter in filters]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment