diff --git a/libs/utils/platforms/__init__.py b/libs/utils/platforms/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b6558e37e64d18bdcdb532003351c667ebc7fb16 100644 --- a/libs/utils/platforms/__init__.py +++ b/libs/utils/platforms/__init__.py @@ -0,0 +1,12 @@ +import json +import os +from conf import JsonConf + +# Add identifiers for each of the platforms we have JSON descriptors for +this_dir = os.path.dirname(__file__) +for file_name in os.listdir(this_dir): + name, ext = os.path.splitext(file_name) + if ext == '.json': + platform = JsonConf(os.path.join(this_dir, file_name)).load() + identifier = name.replace('-', '_') + globals()[identifier] = platform diff --git a/libs/utils/platforms/juno.json b/libs/utils/platforms/juno.json index d8a4270001bfec05bbd60dfe5d66946ce98cb73d..053831990ed2a09589872dbdc074467af38c8e1d 100644 --- a/libs/utils/platforms/juno.json +++ b/libs/utils/platforms/juno.json @@ -1,5 +1,16 @@ { - // JUNO Energy Model + "abi": "arm64", + "clusters": { + "big": [1, 2], + "little": [0, 3, 4, 5]}, + "cpus_count": 6, + "freqs": { + "big": [450000, 625000, 800000, 950000, 1100000], + "little": [450000, 575000, 700000, 775000, 850000] + }, + "topology": [ + [0, 3, 4, 5], [1, 2] + ], "nrg_model" : { "little" : { "cpu" : {