Skip to content

Commit 0ed35c1

Browse files
committed
cleanup: remove unused files and functions
Signed-off-by: Jack Luar <[email protected]>
1 parent c6cf7d1 commit 0ed35c1

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
@@ -82,7 +82,6 @@
8282
from ray.tune.search.basic_variant import BasicVariantGenerator
8383
from ray.tune.search.hyperopt import HyperOptSearch
8484
from ray.tune.search.optuna import OptunaSearch
85-
from ray.tune.utils.file_transfer import sync_dir_between_nodes
8685
from ray.util.queue import Queue
8786

8887
from ax.service.ax_client import AxClient
@@ -108,7 +107,6 @@
108107
)
109108
# URL to ORFS GitHub repository
110109
ORFS_URL = "https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts"
111-
MAX_SIZE_BYTES = 5_368_709_120 # 5 GiB, or 5*1024*1024*1024 B
112110

113111

114112
class AutoTunerBase(tune.Trainable):
@@ -659,31 +657,6 @@ def sweep():
659657
print("[INFO TUN-0010] Sweep complete.")
660658

661659

662-
def transfer_to_head(file_path):
663-
"""
664-
Transfer files from worker to the head node.
665-
"""
666-
workers = ray.nodes()
667-
# TODO: Can this for loop be done async?
668-
for worker_id, worker in enumerate(workers):
669-
# Path: <repo>/<experiment>/<worker_id>
670-
target_path = f"{LOCAL_DIR}/{args.experiment}/{worker_id}"
671-
os.makedirs(target_path, exist_ok=True)
672-
worker_ip = worker["NodeManagerAddress"]
673-
try:
674-
sync_dir_between_nodes(
675-
source_ip=worker_ip,
676-
source_path=file_path,
677-
target_ip=args.server,
678-
target_path=target_path,
679-
max_size_bytes=MAX_SIZE_BYTES,
680-
)
681-
except Exception as e:
682-
# TODO: maybe a retry mechanism if fails?
683-
print(f"[INFO TUN-0012] Error syncing worker {worker_id}: {e}")
684-
continue
685-
686-
687660
def main():
688661
global args, SDC_ORIGINAL, FR_ORIGINAL, LOCAL_DIR, INSTALL_PATH, ORFS_FLOW_DIR, config_dict, reference, best_params
689662
args = parse_arguments()
@@ -739,11 +712,6 @@ def main():
739712

740713
task_id = save_best.remote(analysis)
741714
_ = ray.get(task_id)
742-
743-
# if not args.server:
744-
# print("[INFO TUN-0011] No Ray server specified. Skipping transfer.")
745-
# sys.exit(0)
746-
# transfer_to_head(LOCAL_DIR)
747715
print(f"[INFO TUN-0002] Best parameters found: {analysis.best_config}")
748716

749717
# if all runs have failed

0 commit comments

Comments
 (0)