From 0f753ec1e172046a2f1942720c4894e786a38065 Mon Sep 17 00:00:00 2001 From: Tanguy Pierre Date: Tue, 2 Jul 2024 10:00:02 +0200 Subject: [PATCH] Values extraction #53 render.py recursivity --- .../pages/output_20231201-1430.adoc | 6 +- .../gaya/pages/output_20240702-case2.adoc | 68 +++++++++++++++++++ .../gaya/pages/output_20240702-case3.adoc | 68 +++++++++++++++++++ .../gaya/pages/output_20240702-case4.adoc | 68 +++++++++++++++++++ .../karolina/pages/output_20231207-1600.adoc | 6 +- .../meluxina/pages/output_20231209-0040.adoc | 6 +- .../meluxina/pages/output_20231211-0600.adoc | 6 +- .../meluxina/pages/output_20231211-1248.adoc | 6 +- .../meluxina/pages/output_kub_scenario0.adoc | 3 +- docs/modules/render.py | 4 +- 10 files changed, 222 insertions(+), 19 deletions(-) create mode 100644 docs/modules/gaya/pages/output_20240702-case2.adoc create mode 100644 docs/modules/gaya/pages/output_20240702-case3.adoc create mode 100644 docs/modules/gaya/pages/output_20240702-case4.adoc diff --git a/docs/modules/discoverer/pages/output_20231201-1430.adoc b/docs/modules/discoverer/pages/output_20231201-1430.adoc index 94d11e17..2e83307b 100644 --- a/docs/modules/discoverer/pages/output_20231201-1430.adoc +++ b/docs/modules/discoverer/pages/output_20231201-1430.adoc @@ -27,7 +27,7 @@ from feelpp.benchmarking.reframe.report import Report report=Report(file_path="docs/modules/discoverer/pages/kub/scenario0/20231201-1430.json") ---- -=== Performance by Simulation Steps +=== Performance by Simulation Steps [%dynamic%raw%open,python] ---- @@ -48,7 +48,7 @@ fig.show() .Speedup [%dynamic%raw%open,python] ---- -print(report.speedup()) fig=report.plotSpeedup() fig.show() ----- \ No newline at end of file +---- + diff --git a/docs/modules/gaya/pages/output_20240702-case2.adoc b/docs/modules/gaya/pages/output_20240702-case2.adoc new file mode 100644 index 00000000..39aaca13 --- /dev/null +++ b/docs/modules/gaya/pages/output_20240702-case2.adoc @@ -0,0 +1,68 @@ + += Reframe Report for gaya +:page-plotly: true +:page-jupyter: true +:page-tags: case +:description: Performance report for gaya on 2024-07-02T09:37:29+0200 +:page-illustration: gaya.jpg +:author: Your Name +:revdate: 2024-07-02T09:37:29+0200 + +== Test Summary + +* Total Tests: 8 +* Failures: 0 +* Testcases +** HeatToolboxTest %nbTask=128 +** HeatToolboxTest %nbTask=64 +** HeatToolboxTest %nbTask=32 +** HeatToolboxTest %nbTask=16 +** HeatToolboxTest %nbTask=8 +** HeatToolboxTest %nbTask=4 +** HeatToolboxTest %nbTask=2 +** HeatToolboxTest %nbTask=1 + + +[%dynamic%close,python] +---- +from feelpp.benchmarking.reframe.report import Report +report=Report(file_path="docs/modules/gaya/pages/reports/heat/Building/ThermalBridgesENISO10211/20240702-case2.json") +---- + +=== Performance by Simulation Steps + +[%dynamic%raw%open,python] +---- +fig=report.plotPerformanceByStep() +fig.show() +---- + +=== Performance by Number of Tasks + +[%dynamic%raw%open,python] +---- +fig=report.plotPerformanceByTask() +fig.show() +---- + +=== Speedup of the simulation Steps + +.Speedup +[%dynamic%raw%open,python] +---- +fig=report.plotSpeedup() +fig.show() +---- + +=== Speedup for partial performances +[%dynamic%raw%open,python] +---- +fig=report.plotPartialSpeedup('init') +fig.show() +---- + +[%dynamic%raw%open,python] +---- +fig=report.plotPartialSpeedup('solve') +fig.show() +---- diff --git a/docs/modules/gaya/pages/output_20240702-case3.adoc b/docs/modules/gaya/pages/output_20240702-case3.adoc new file mode 100644 index 00000000..36474707 --- /dev/null +++ b/docs/modules/gaya/pages/output_20240702-case3.adoc @@ -0,0 +1,68 @@ + += Reframe Report for gaya +:page-plotly: true +:page-jupyter: true +:page-tags: case +:description: Performance report for gaya on 2024-07-02T09:44:07+0200 +:page-illustration: gaya.jpg +:author: Your Name +:revdate: 2024-07-02T09:44:07+0200 + +== Test Summary + +* Total Tests: 8 +* Failures: 0 +* Testcases +** HeatToolboxTest %nbTask=128 +** HeatToolboxTest %nbTask=64 +** HeatToolboxTest %nbTask=32 +** HeatToolboxTest %nbTask=16 +** HeatToolboxTest %nbTask=8 +** HeatToolboxTest %nbTask=4 +** HeatToolboxTest %nbTask=2 +** HeatToolboxTest %nbTask=1 + + +[%dynamic%close,python] +---- +from feelpp.benchmarking.reframe.report import Report +report=Report(file_path="docs/modules/gaya/pages/reports/heat/Building/ThermalBridgesENISO10211/20240702-case3.json") +---- + +=== Performance by Simulation Steps + +[%dynamic%raw%open,python] +---- +fig=report.plotPerformanceByStep() +fig.show() +---- + +=== Performance by Number of Tasks + +[%dynamic%raw%open,python] +---- +fig=report.plotPerformanceByTask() +fig.show() +---- + +=== Speedup of the simulation Steps + +.Speedup +[%dynamic%raw%open,python] +---- +fig=report.plotSpeedup() +fig.show() +---- + +=== Speedup for partial performances +[%dynamic%raw%open,python] +---- +fig=report.plotPartialSpeedup('init') +fig.show() +---- + +[%dynamic%raw%open,python] +---- +fig=report.plotPartialSpeedup('solve') +fig.show() +---- diff --git a/docs/modules/gaya/pages/output_20240702-case4.adoc b/docs/modules/gaya/pages/output_20240702-case4.adoc new file mode 100644 index 00000000..d097df49 --- /dev/null +++ b/docs/modules/gaya/pages/output_20240702-case4.adoc @@ -0,0 +1,68 @@ + += Reframe Report for gaya +:page-plotly: true +:page-jupyter: true +:page-tags: case +:description: Performance report for gaya on 2024-07-02T09:36:04+0200 +:page-illustration: gaya.jpg +:author: Your Name +:revdate: 2024-07-02T09:36:04+0200 + +== Test Summary + +* Total Tests: 8 +* Failures: 0 +* Testcases +** HeatToolboxTest %nbTask=128 +** HeatToolboxTest %nbTask=64 +** HeatToolboxTest %nbTask=32 +** HeatToolboxTest %nbTask=16 +** HeatToolboxTest %nbTask=8 +** HeatToolboxTest %nbTask=4 +** HeatToolboxTest %nbTask=2 +** HeatToolboxTest %nbTask=1 + + +[%dynamic%close,python] +---- +from feelpp.benchmarking.reframe.report import Report +report=Report(file_path="docs/modules/gaya/pages/reports/heat/Building/ThermalBridgesENISO10211/20240702-case4.json") +---- + +=== Performance by Simulation Steps + +[%dynamic%raw%open,python] +---- +fig=report.plotPerformanceByStep() +fig.show() +---- + +=== Performance by Number of Tasks + +[%dynamic%raw%open,python] +---- +fig=report.plotPerformanceByTask() +fig.show() +---- + +=== Speedup of the simulation Steps + +.Speedup +[%dynamic%raw%open,python] +---- +fig=report.plotSpeedup() +fig.show() +---- + +=== Speedup for partial performances +[%dynamic%raw%open,python] +---- +fig=report.plotPartialSpeedup('init') +fig.show() +---- + +[%dynamic%raw%open,python] +---- +fig=report.plotPartialSpeedup('solve') +fig.show() +---- diff --git a/docs/modules/karolina/pages/output_20231207-1600.adoc b/docs/modules/karolina/pages/output_20231207-1600.adoc index ffea4c0c..69968ef9 100644 --- a/docs/modules/karolina/pages/output_20231207-1600.adoc +++ b/docs/modules/karolina/pages/output_20231207-1600.adoc @@ -27,7 +27,7 @@ from feelpp.benchmarking.reframe.report import Report report=Report(file_path="docs/modules/karolina/pages/kub/scenario0/20231207-1600.json") ---- -=== Performance by Simulation Steps +=== Performance by Simulation Steps [%dynamic%raw%open,python] ---- @@ -48,7 +48,7 @@ fig.show() .Speedup [%dynamic%raw%open,python] ---- -print(report.speedup()) fig=report.plotSpeedup() fig.show() ----- \ No newline at end of file +---- + diff --git a/docs/modules/meluxina/pages/output_20231209-0040.adoc b/docs/modules/meluxina/pages/output_20231209-0040.adoc index 2c4c3ac4..3293a2bf 100644 --- a/docs/modules/meluxina/pages/output_20231209-0040.adoc +++ b/docs/modules/meluxina/pages/output_20231209-0040.adoc @@ -51,7 +51,7 @@ from feelpp.benchmarking.reframe.report import Report report=Report(file_path="docs/modules/meluxina/pages/kub/scenario0/20231209-0040.json") ---- -=== Performance by Simulation Steps +=== Performance by Simulation Steps [%dynamic%raw%open,python] ---- @@ -72,7 +72,7 @@ fig.show() .Speedup [%dynamic%raw%open,python] ---- -print(report.speedup()) fig=report.plotSpeedup() fig.show() ----- \ No newline at end of file +---- + diff --git a/docs/modules/meluxina/pages/output_20231211-0600.adoc b/docs/modules/meluxina/pages/output_20231211-0600.adoc index eb20137f..a876b44d 100644 --- a/docs/modules/meluxina/pages/output_20231211-0600.adoc +++ b/docs/modules/meluxina/pages/output_20231211-0600.adoc @@ -27,7 +27,7 @@ from feelpp.benchmarking.reframe.report import Report report=Report(file_path="docs/modules/meluxina/pages/kub/scenario0/20231211-0600.json") ---- -=== Performance by Simulation Steps +=== Performance by Simulation Steps [%dynamic%raw%open,python] ---- @@ -48,7 +48,7 @@ fig.show() .Speedup [%dynamic%raw%open,python] ---- -print(report.speedup()) fig=report.plotSpeedup() fig.show() ----- \ No newline at end of file +---- + diff --git a/docs/modules/meluxina/pages/output_20231211-1248.adoc b/docs/modules/meluxina/pages/output_20231211-1248.adoc index 9a1aa507..cecd2ed6 100644 --- a/docs/modules/meluxina/pages/output_20231211-1248.adoc +++ b/docs/modules/meluxina/pages/output_20231211-1248.adoc @@ -51,7 +51,7 @@ from feelpp.benchmarking.reframe.report import Report report=Report(file_path="docs/modules/meluxina/pages/kub/scenario0/20231211-1248.json") ---- -=== Performance by Simulation Steps +=== Performance by Simulation Steps [%dynamic%raw%open,python] ---- @@ -72,7 +72,7 @@ fig.show() .Speedup [%dynamic%raw%open,python] ---- -print(report.speedup()) fig=report.plotSpeedup() fig.show() ----- \ No newline at end of file +---- + diff --git a/docs/modules/meluxina/pages/output_kub_scenario0.adoc b/docs/modules/meluxina/pages/output_kub_scenario0.adoc index 8160fc6a..a8bad38f 100644 --- a/docs/modules/meluxina/pages/output_kub_scenario0.adoc +++ b/docs/modules/meluxina/pages/output_kub_scenario0.adoc @@ -61,7 +61,7 @@ from feelpp.benchmarking.reframe.report import Report report=Report(file_path="docs/modules/meluxina/pages/20231209/kub_scenario0.json") ---- -=== Performance by Simulation Steps +=== Performance by Simulation Steps [%dynamic%raw%open,python] ---- @@ -82,7 +82,6 @@ fig.show() .Speedup [%dynamic%raw%open,python] ---- -print(report.speedup()) fig=report.plotSpeedup() fig.show() ---- diff --git a/docs/modules/render.py b/docs/modules/render.py index d20ca825..b1a820fe 100644 --- a/docs/modules/render.py +++ b/docs/modules/render.py @@ -8,7 +8,7 @@ def convert_hostname(hostname): if hostname.startswith("mel"): return "meluxina" - if "karolina" in hostname: + if "karolina" in hostname: return "karolina" if "discoverer" in hostname: return "discoverer" @@ -22,7 +22,7 @@ def convert_hostname(hostname): json_files_path = f'{module}/pages/**/*.json' # Iterate over each JSON file in the directory - for json_file in glob.glob(json_files_path): + for json_file in glob.glob(json_files_path, recursive=True): # Load JSON data with open(json_file, 'r') as file: data = json.load(file)