Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cb-util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christoph Alt
cb-util
Commits
8a6396ab
Commit
8a6396ab
authored
1 year ago
by
Christoph Alt
Browse files
Options
Downloads
Patches
Plain Diff
added likwid keys
parent
467e0beb
No related branches found
No related tags found
No related merge requests found
Pipeline
#56392
passed
1 year ago
Stage: test
Stage: deploy
Stage: trigger
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cbutil/likwid_keys.py
+64
-0
64 additions, 0 deletions
cbutil/likwid_keys.py
dashboards/dashboard_pystencils.py
+27
-36
27 additions, 36 deletions
dashboards/dashboard_pystencils.py
with
91 additions
and
36 deletions
cbutil/likwid_keys.py
0 → 100644
+
64
−
0
View file @
8a6396ab
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
))
This diff is collapsed.
Click to expand it.
dashboards/dashboard_pystencils.py
+
27
−
36
View file @
8a6396ab
...
@@ -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
(
'
M
emory
bandwidth
[MBytes/s]
'
,
Units
.
mbytes_per_second
),
PanelInfos
(
likwid_keys
.
m
emory
_
bandwidth
_key
,
Units
.
mbytes_per_second
),
PanelInfos
(
'
M
emory
write
bandwidth
[MBytes/s]
'
,
Units
.
mbytes_per_second
),
PanelInfos
(
likwid_keys
.
m
emory
_
write
_
bandwidth
_key
,
Units
.
mbytes_per_second
),
PanelInfos
(
'
M
emory
read
bandwidth
[MBytes/s]
'
,
Units
.
mbytes_per_second
),
PanelInfos
(
likwid_keys
.
m
emory
_
read
_
bandwidth
_key
,
Units
.
mbytes_per_second
),
PanelInfos
(
'
M
emory
data
volume [GBytes]
'
,
Units
.
gigabyte
),
PanelInfos
(
likwid_keys
.
m
emory
_
data
_key
,
Units
.
gigabyte
),
PanelInfos
(
'
M
emory
read
data volume [GBytes]
'
,
Units
.
gigabyte
),
PanelInfos
(
likwid_keys
.
m
emory
_
read
_key
,
Units
.
gigabyte
),
PanelInfos
(
'
M
emory
write
data volume [GBytes]
'
,
Units
.
gigabyte
),
PanelInfos
(
likwid_keys
.
m
emory
_
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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment