Skip to content

Commit 8d69b7c

Browse files
committed
restore distributed
Signed-off-by: Jack Luar <[email protected]>
1 parent a2bf54f commit 8d69b7c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@
106106
)
107107
# Global variable for args
108108
args = None
109-
design = None
110-
platform = None
111-
config = None
112109

113110

114111
class AutoTunerBase(tune.Trainable):
@@ -127,7 +124,7 @@ def setup(self, config):
127124
self.parameters = parse_config(
128125
config=config,
129126
base_dir=self.repo_dir,
130-
platform=platform,
127+
platform=args.platform,
131128
sdc_original=SDC_ORIGINAL,
132129
constraints_sdc=CONSTRAINTS_SDC,
133130
fr_original=FR_ORIGINAL,
@@ -582,13 +579,13 @@ def main():
582579
# Read config and original files before handling where to run in case we
583580
# need to upload the files.
584581
config_dict, SDC_ORIGINAL, FR_ORIGINAL = read_config(
585-
os.path.abspath(config), args.mode, getattr(args, "algorithm", None)
582+
os.path.abspath(args.config), args.mode, getattr(args, "algorithm", None)
586583
)
587584

588585
LOCAL_DIR, ORFS_FLOW_DIR, INSTALL_PATH = prepare_ray_server(args)
589586

590587
if args.mode == "tune":
591-
best_params = set_best_params(platform, design)
588+
best_params = set_best_params(args.platform, args.design)
592589
search_algo = set_algorithm(
593590
args.algorithm,
594591
args.experiment,

0 commit comments

Comments
 (0)