Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dominik Mehlich
waLBerla
Commits
d0165820
Commit
d0165820
authored
Sep 20, 2019
by
Sebastian Eibl
Browse files
[ADD] mesa_pd grafana benchmark
parent
30eed4eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d0165820
...
...
@@ -1856,7 +1856,9 @@ conda-py36-linux:
-
mpirun --allow-run-as-root -np 8 --map-by core --bind-to core --report-bindings ./PE_GranularGas PE_Benchmark.cfg --HCSITS --syncNextNeighbor --InelasticCoulombContactByDecoupling | tee GranularGas_HCSITS_NN_ICCBD.txt
-
mpirun --allow-run-as-root -np 8 --map-by core --bind-to core --report-bindings ./PE_GranularGas PE_Benchmark.cfg --HCSITS --syncNextNeighbor --InelasticGeneralizedMaximumDissipationContact | tee GranularGas_HCSITS_NN_IGMDC.txt
-
mpirun --allow-run-as-root -np 8 --map-by core --bind-to core --report-bindings ./PE_GranularGas PE_Benchmark.cfg --HCSITS --syncShadowOwners --InelasticFrictionlessContact | tee GranularGas_HCSITS_SO_IFC.txt
-
python3 upload.py
-
python3 pe_upload.py
-
mpirun --allow-run-as-root -np 8 --map-by core --bind-to core --report-bindings ./MESA_PD_KernelBenchmark MESA_PD_Benchmark.cfg | tee mesa_pd.txt
-
python3 mesa_pd_upload.py
only
:
variables
:
-
$ENABLE_BENCHMARKS
...
...
@@ -1865,7 +1867,7 @@ conda-py36-linux:
artifacts
:
paths
:
-
$CI_PROJECT_DIR/build/apps/benchmarks/GranularGas/*.txt
-
$CI_PROJECT_DIR/build/apps/benchmarks/GranularGas/
benchmark
.sqlite
-
$CI_PROJECT_DIR/build/apps/benchmarks/GranularGas/
*
.sqlite
benchmark_intel19
:
<<
:
*benchmark_definition
...
...
apps/benchmarks/GranularGas/MESA_PD_Benchmark.cfg
0 → 100644
View file @
d0165820
GranularGas
{
simulationCorner < 0, 0, 0 >;
simulationDomain < 160, 160, 160 >;
blocks < 1,1,1 >;
isPeriodic < 1, 1, 1 >;
initialRefinementLevel 1;
sorting linear;
LBAlgorithm Morton;
baseWeight 1;
recalculateBlockLevelsInRefresh 1;
reevaluateMinTargetLevelsAfterForcedRefinement 1;
allowRefreshChangingDepth 1;
regridMin 2000;
regridMax 100;
normal <1,1,1>;
radius 0.6;
spacing 1.0;
vMax 0.0;
dt 0.0001;
simulationSteps 100;
visSpacing 100;
numOuterIterations 1;
}
apps/benchmarks/GranularGas/PE_Benchmark.cfg
View file @
d0165820
...
...
@@ -10,8 +10,8 @@ GranularGas
spacing 1.0;
vMax 0.0;
dt 0.1;
simulationSteps 1
0
00;
dt
0.1;
simulationSteps
100;
numOuterIterations 1;
visSpacing 100;
...
...
apps/benchmarks/GranularGas/mesa_pd_upload.py
0 → 100755
View file @
d0165820
#! /usr/bin/env python3
import
os
import
time
import
math
import
random
import
re
from
influxdb
import
InfluxDBClient
from
git
import
Repo
class
Upload
:
def
__init__
(
self
):
try
:
self
.
write_user_pw
=
os
.
environ
[
"INFLUXDB_MESAPD_PW"
]
except
KeyError
:
import
sys
print
(
'Password for the InfluxDB write_user was not set.
\n
'
,
'See https://docs.gitlab.com/ee/ci/variables/#secret-variables'
,
file
=
sys
.
stderr
)
exc_info
=
sys
.
exc_info
()
raise
exc_info
[
0
].
with_traceback
(
exc_info
[
1
],
exc_info
[
2
])
self
.
client
=
InfluxDBClient
(
'i10grafana.informatik.uni-erlangen.de'
,
8086
,
'mesa_pd'
,
self
.
write_user_pw
,
'mesa_pd'
)
def
process
(
self
,
filename
):
tts
=
dict
()
with
open
(
filename
)
as
f
:
for
s
in
f
.
readlines
():
m
=
re
.
search
(
r
'\[0\]\s*(\w*)\s*\|[\s\d\.\%]*\|\s*([\d\.]*)'
,
s
)
if
(
m
!=
None
):
tts
[
m
.
group
(
1
)]
=
float
(
m
.
group
(
2
))
json_body
=
[
{
'measurement'
:
'mesa_pd_benchmark'
,
'tags'
:
{
'host'
:
os
.
uname
()[
1
],
'image'
:
os
.
environ
[
"DOCKER_IMAGE_NAME"
],
},
'time'
:
int
(
time
.
time
()),
'fields'
:
tts
}
]
print
(
tts
)
self
.
client
.
write_points
(
json_body
,
time_precision
=
's'
)
if
__name__
==
"__main__"
:
up
=
Upload
()
up
.
process
(
"mesa_pd.txt"
)
apps/benchmarks/GranularGas/upload.py
→
apps/benchmarks/GranularGas/
pe_
upload.py
View file @
d0165820
File moved
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment