Skip to content

Commit 11ba4c5

Browse files
committed
cleanup: remove unused files and functions
Signed-off-by: Jack Luar <[email protected]>
1 parent 5946a73 commit 11ba4c5

File tree

6 files changed

+0
-1391
lines changed

6 files changed

+0
-1391
lines changed

tools/AutoTuner/distributed/NOTES.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

tools/AutoTuner/distributed/at_distributed.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

tools/AutoTuner/distributed/at_worker.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

tools/AutoTuner/distributed/example.yaml

Lines changed: 0 additions & 190 deletions
This file was deleted.

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
from ray.tune.search.basic_variant import BasicVariantGenerator
4848
from ray.tune.search.hyperopt import HyperOptSearch
4949
from ray.tune.search.optuna import OptunaSearch
50-
from ray.tune.utils.file_transfer import sync_dir_between_nodes
5150
from ray.util.queue import Queue
5251

5352
from ax.service.ax_client import AxClient
@@ -73,7 +72,6 @@
7372
)
7473
# URL to ORFS GitHub repository
7574
ORFS_URL = "https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts"
76-
MAX_SIZE_BYTES = 5_368_709_120 # 5 GiB, or 5*1024*1024*1024 B
7775

7876

7977
class AutoTunerBase(tune.Trainable):
@@ -624,31 +622,6 @@ def sweep():
624622
print("[INFO TUN-0010] Sweep complete.")
625623

626624

627-
def transfer_to_head(file_path):
628-
"""
629-
Transfer files from worker to the head node.
630-
"""
631-
workers = ray.nodes()
632-
# TODO: Can this for loop be done async?
633-
for worker_id, worker in enumerate(workers):
634-
# Path: <repo>/<experiment>/<worker_id>
635-
target_path = f"{LOCAL_DIR}/{args.experiment}/{worker_id}"
636-
os.makedirs(target_path, exist_ok=True)
637-
worker_ip = worker["NodeManagerAddress"]
638-
try:
639-
sync_dir_between_nodes(
640-
source_ip=worker_ip,
641-
source_path=file_path,
642-
target_ip=args.server,
643-
target_path=target_path,
644-
max_size_bytes=MAX_SIZE_BYTES,
645-
)
646-
except Exception as e:
647-
# TODO: maybe a retry mechanism if fails?
648-
print(f"[INFO TUN-0012] Error syncing worker {worker_id}: {e}")
649-
continue
650-
651-
652625
def main():
653626
global args, SDC_ORIGINAL, FR_ORIGINAL, LOCAL_DIR, INSTALL_PATH, ORFS_FLOW_DIR, config_dict, reference, best_params
654627
args = parse_arguments()
@@ -704,11 +677,6 @@ def main():
704677

705678
task_id = save_best.remote(analysis)
706679
_ = ray.get(task_id)
707-
708-
# if not args.server:
709-
# print("[INFO TUN-0011] No Ray server specified. Skipping transfer.")
710-
# sys.exit(0)
711-
# transfer_to_head(LOCAL_DIR)
712680
print(f"[INFO TUN-0002] Best parameters found: {analysis.best_config}")
713681

714682
# if all runs have failed

0 commit comments

Comments
 (0)