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
2ddf2084
Commit
2ddf2084
authored
1 year ago
by
Christoph Alt
Browse files
Options
Downloads
Patches
Plain Diff
added a dashboard for gpu profiles
parent
1755b13c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dashboards/dashboard_walberla.py
+94
-0
94 additions, 0 deletions
dashboards/dashboard_walberla.py
dashboards/deploy.py
+2
-1
2 additions, 1 deletion
dashboards/deploy.py
with
96 additions
and
1 deletion
dashboards/dashboard_walberla.py
+
94
−
0
View file @
2ddf2084
...
...
@@ -11,6 +11,19 @@ from dashboards.variables import get_dashboard_variable, Filter
from
dashboards.influx_queries
import
join_variable_and
from
dashboards.legends
import
Units
from
cbutil.ncu_keys
import
(
memory_write_data_key
,
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
,
)
def
dashboard_uniformgridcpu
():
data_source
=
'
InfluxDB-1
'
...
...
@@ -153,3 +166,84 @@ def dashboard_uniformgridgpu():
rows
=
[
row
],
templating
=
[
*
filter_vars
],
annotations
=
annotations
)
def
dashboard_uniformgridgpu_profile
():
data_source
=
'
InfluxDB-1
'
arch
=
'
GPU
'
measurment_name
=
f
'
UniformGrid
{
arch
}
_profile
'
row_repeat
=
"
host
"
options
=
DashboardOptions
(
title
=
f
'
Uniform Grid
{
arch
}
GPU Profiling
'
,
description
=
f
"
Benchmark dashboard for the Uniform Grid
{
arch
}
Benchmark from walberla
"
,
tags
=
[
arch
,
'
benchmark
'
,
'
walberla
'
,
'
Uniform Grid
'
,
'
profiling
'
],
timezone
=
"
browser
"
,
)
filters
=
[
Filter
(
"
project_id
"
,
multi
=
True
,
default_value
=
'
walberla/walberla
'
),
Filter
(
"
branch
"
,
multi
=
True
,
default_value
=
'
master
'
),
Filter
(
"
host
"
,
multi
=
False
,
default_value
=
'
medusa
'
),
Filter
(
"
GPU
"
),
Filter
(
"
collisionSetup
"
),
Filter
(
"
mpi_num_processes
"
),
Filter
(
"
streamingPattern
"
),
Filter
(
"
timeStepStrategy
"
),
Filter
(
"
stencil
"
),
Filter
(
"
blocks_0
"
),
Filter
(
"
blocks_1
"
),
Filter
(
"
blocks_2
"
),
Filter
(
"
cellsPerBlock_0
"
),
Filter
(
"
cellsPerBlock_1
"
),
Filter
(
"
cellsPerBlock_2
"
),
Filter
(
"
gpuBlockSize_0
"
),
Filter
(
"
gpuBlockSize_1
"
),
Filter
(
"
gpuBlockSize_2
"
),
Filter
(
"
periodic_0
"
),
Filter
(
"
periodic_1
"
),
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
),
]
filter_vars
=
[
get_dashboard_variable
(
filter
,
measurment_name
,
data_source
)
for
filter
in
filters
]
row_repeat_var
=
[
fv
for
fv
in
filter_vars
if
fv
.
name
==
row_repeat
][
0
]
where
=
join_variable_and
([
f
.
name
for
f
in
filters
])
annotations
=
get_commit_annotation
(
data_source
,
"
red
"
,
"
commits
"
,
measurment_name
)
panels
=
[
get_time_series_panel
(
field
,
data_source
,
measurment_name
,
where
=
where
,
group_by
=
[
f
.
name
for
f
in
filters
],
)
for
field
in
fields
]
row
=
pack_in_row
(
title
=
f
"
{
row_repeat
}
: $
{
row_repeat_var
.
name
}
"
,
panels
=
[
*
panels
],
repeat
=
Repeat
(
'
v
'
,
row_repeat_var
.
name
),
)
return
build_dashboard
(
options
,
rows
=
[
row
],
templating
=
[
*
filter_vars
],
annotations
=
annotations
)
This diff is collapsed.
Click to expand it.
dashboards/deploy.py
+
2
−
1
View file @
2ddf2084
...
...
@@ -5,7 +5,7 @@ import dashboards.dashboard_list as boards
from
dashboards.upload
import
upload_dashboard
from
dashboards.dashboard_fe2ti
import
dashboard_fe2ti
from
dashboard_pystencils
import
dashboard_pystencils_cpu
,
dashboard_pystencils_gpu
from
dashboard_walberla
import
dashboard_uniformgridcpu
,
dashboard_uniformgridgpu
from
dashboard_walberla
import
dashboard_uniformgridcpu
,
dashboard_uniformgridgpu
,
dashboard_uniformgridgpu_profile
logger
=
logging
.
getLogger
(
__file__
)
logger
.
setLevel
(
logging
.
INFO
)
...
...
@@ -44,6 +44,7 @@ def main():
elif
"
walberla
"
in
board_name
:
upload_dashboard
(
dashboard_uniformgridcpu
(),
folder
=
walberla_folder
)
upload_dashboard
(
dashboard_uniformgridgpu
(),
folder
=
walberla_folder
)
upload_dashboard
(
dashboard_uniformgridgpu_profile
(),
folder
=
walberla_folder
)
else
:
board
=
getattr
(
boards
,
board_name
)
upload_dashboard
(
board
(),
folder
=
walberla_folder
)
...
...
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