Skip to content

Commit

Permalink
Values extraction #53 render.py recursivity
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguypierre committed Jul 2, 2024
1 parent 3bac1b3 commit 0f753ec
Show file tree
Hide file tree
Showing 10 changed files with 222 additions and 19 deletions.
6 changes: 3 additions & 3 deletions docs/modules/discoverer/pages/output_20231201-1430.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -48,7 +48,7 @@ fig.show()
.Speedup
[%dynamic%raw%open,python]
----
print(report.speedup())
fig=report.plotSpeedup()
fig.show()
----
----

68 changes: 68 additions & 0 deletions docs/modules/gaya/pages/output_20240702-case2.adoc
Original file line number Diff line number Diff line change
@@ -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()
----
68 changes: 68 additions & 0 deletions docs/modules/gaya/pages/output_20240702-case3.adoc
Original file line number Diff line number Diff line change
@@ -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()
----
68 changes: 68 additions & 0 deletions docs/modules/gaya/pages/output_20240702-case4.adoc
Original file line number Diff line number Diff line change
@@ -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()
----
6 changes: 3 additions & 3 deletions docs/modules/karolina/pages/output_20231207-1600.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -48,7 +48,7 @@ fig.show()
.Speedup
[%dynamic%raw%open,python]
----
print(report.speedup())
fig=report.plotSpeedup()
fig.show()
----
----

6 changes: 3 additions & 3 deletions docs/modules/meluxina/pages/output_20231209-0040.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -72,7 +72,7 @@ fig.show()
.Speedup
[%dynamic%raw%open,python]
----
print(report.speedup())
fig=report.plotSpeedup()
fig.show()
----
----

6 changes: 3 additions & 3 deletions docs/modules/meluxina/pages/output_20231211-0600.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -48,7 +48,7 @@ fig.show()
.Speedup
[%dynamic%raw%open,python]
----
print(report.speedup())
fig=report.plotSpeedup()
fig.show()
----
----

6 changes: 3 additions & 3 deletions docs/modules/meluxina/pages/output_20231211-1248.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -72,7 +72,7 @@ fig.show()
.Speedup
[%dynamic%raw%open,python]
----
print(report.speedup())
fig=report.plotSpeedup()
fig.show()
----
----

3 changes: 1 addition & 2 deletions docs/modules/meluxina/pages/output_kub_scenario0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
----
Expand All @@ -82,7 +82,6 @@ fig.show()
.Speedup
[%dynamic%raw%open,python]
----
print(report.speedup())
fig=report.plotSpeedup()
fig.show()
----
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 0f753ec

Please sign in to comment.