Overview
-
Machine : gaya
from numpy import nan
from feelpp.benchmarking.report.base.controller import Controller
from feelpp.benchmarking.report.base.model import AggregationModel
from feelpp.benchmarking.report.base.view import View
model=AggregationModel.fromDataframe({'performance_variable': {0: '', 1: '', 2: '', 3: ''}, 'value': {0: None, 1: None, 2: None, 3: None}, 'unit': {0: '', 1: '', 2: '', 3: ''}, 'reference': {0: None, 1: None, 2: None, 3: None}, 'thres_lower': {0: None, 1: None, 2: None, 3: None}, 'thres_upper': {0: None, 1: None, 2: None, 3: None}, 'status': {0: None, 1: None, 2: None, 3: None}, 'absolute_error': {0: None, 1: None, 2: None, 3: None}, 'testcase_time_run': {0: 10.292098760604858, 1: 19.568920135498047, 2: 28.26854634284973, 3: 25.485793590545654}, 'environment': {0: 'hpcx', 1: 'hpcx', 2: 'hpcx', 3: 'hpcx'}, 'platform': {0: 'apptainer', 1: 'apptainer', 2: 'apptainer', 3: 'apptainer'}, 'nb_tasks': {0: {'tasks': 512, 'tasks_per_node': 128, 'exclusive_access': True}, 1: {'tasks': 384, 'tasks_per_node': 128, 'exclusive_access': True}, 2: {'tasks': 256, 'tasks_per_node': 128, 'exclusive_access': True}, 3: {'tasks': 128, 'tasks_per_node': 128, 'exclusive_access': True}}, 'meshes': {0: 'M1', 1: 'M1', 2: 'M1', 3: 'M1'}, 'discretization': {0: 'P1', 1: 'P1', 2: 'P1', 3: 'P1'}, 'solver': {0: 'gamg', 1: 'gamg', 2: 'gamg', 3: 'gamg'}, 'date': {0: '2024-12-13T13:29:34+0100', 1: '2024-12-13T13:29:34+0100', 2: '2024-12-13T13:29:34+0100', 3: '2024-12-13T13:29:34+0100'}, 'use_case': {0: 'ThermalBridgesENISO10211', 1: 'ThermalBridgesENISO10211', 2: 'ThermalBridgesENISO10211', 3: 'ThermalBridgesENISO10211'}, 'application': {0: 'feelpp_toolbox_heat', 1: 'feelpp_toolbox_heat', 2: 'feelpp_toolbox_heat', 3: 'feelpp_toolbox_heat'}})
view=View([{'title': 'Execution by application', 'plot_types': ['stacked_bar'], 'transformation': 'performance', 'names': [], 'xaxis': {'parameter': 'application', 'label': 'Application'}, 'yaxis': {'label': 'Execution time (s)'}, 'color_axis': {'parameter': 'use_case', 'label': 'Use Case'}, 'aggregations': [{'column': 'nb_tasks.tasks', 'agg': 'max'}, {'column': 'hsize', 'agg': 'max'}, {'column': 'performance_variable', 'agg': 'sum'}, {'column': 'date', 'agg': 'mean'}], 'variables': []}])
controller=Controller(model,view)
for fig in controller.generateAll():
fig.show()