better throughput scheduling with steady state cost model (WIP)

This commit is contained in:
NiccoloN
2026-10-23 11:27:06 +02:00
parent 48e9fb3795
commit fd493ae6e8
51 changed files with 3581 additions and 247 deletions
+19
View File
@@ -45,6 +45,25 @@ def main():
if not valid:
assert "Pim target config" in result.stdout, result.stdout
# Optional diagnostic routes must not change legacy compilation support.
network_path = Path(network["net_config_file_path"])
for route in (None, 1e100):
candidate = copy.deepcopy(config)
candidate["chip_config"]["core_config"]["global_memory_switch_id"] = 999
routes = json.loads(network_path.read_text())
if route is not None:
routes["latency"]["999"] = {}
for core in range(168):
routes["latency"][str(core)]["999"] = route
routes["latency"]["999"][str(core)] = route
route_path = root / "routes.json"
route_path.write_text(json.dumps(routes))
candidate["chip_config"]["network_config"]["net_config_file_path"] = str(route_path)
path.write_text(json.dumps(candidate))
result = subprocess.run(command, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, text=True)
assert result.returncode == 0, result.stdout
if __name__ == "__main__":
main()