Skip to content
Snippets Groups Projects
Commit 50f47822 authored by huongdm1896's avatar huongdm1896
Browse files

add nova and paradoxe in wattmeter

parent 1e20035c
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import json
import time
import expetator.experiment as experiment
from expetator.monitors import Mojitos, kwollect
import platform
from expetator.leverages import Dvfs, GpuClock
#import run_flwr as run_flwr
......@@ -40,6 +41,22 @@ if instance_key not in config_data["instances"]:
# Load config instance
config = config_data["instances"][instance_key]
# Override the function i kwollect module
def get_g5k_target_metric(cluster_name=None):
if cluster_name is None:
cluster_name = platform.node().split('-')[0]
if cluster_name in ['grisou', 'graoully', 'grimoire',
'gros', 'gruss', 'paravance']:
return 'pdu_outlet_power_watt'
if cluster_name in ['troll', 'yeti', 'gemini', 'neowise', 'servan', 'sirius', 'paradoxe',
'orion', 'pyxis', 'sagittaire', 'taurus', 'nova']:
return 'wattmetre_power_watt'
return 'bmc_node_power_watt'
kwollect.get_g5k_target_metric = get_g5k_target_metric
# extract DVFS infor (cpu and gpu)
if "dvfs_cpu" in config:
dvfs_config = config["dvfs_cpu"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment