Commit d0165820 authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

[ADD] mesa_pd grafana benchmark

parent 30eed4eb
...@@ -1856,7 +1856,9 @@ conda-py36-linux: ...@@ -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 --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 --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 - 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: only:
variables: variables:
- $ENABLE_BENCHMARKS - $ENABLE_BENCHMARKS
...@@ -1865,7 +1867,7 @@ conda-py36-linux: ...@@ -1865,7 +1867,7 @@ conda-py36-linux:
artifacts: artifacts:
paths: paths:
- $CI_PROJECT_DIR/build/apps/benchmarks/GranularGas/*.txt - $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_intel19:
<<: *benchmark_definition <<: *benchmark_definition
......
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;
}
...@@ -10,8 +10,8 @@ GranularGas ...@@ -10,8 +10,8 @@ GranularGas
spacing 1.0; spacing 1.0;
vMax 0.0; vMax 0.0;
dt 0.1; dt 0.1;
simulationSteps 1000; simulationSteps 100;
numOuterIterations 1; numOuterIterations 1;
visSpacing 100; visSpacing 100;
......
#! /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")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment