Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
limbo018 committed Jun 13, 2024
2 parents a80dd2c + 5c795dd commit 61d5429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dreamplace/BasicPlace.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ def __init__(self, params, placedb, timer):
# rectilinear minimum steiner tree wirelength from flute
# can only be called once
#self.op_collections.rmst_wl_op = self.build_rmst_wl(params, placedb, self.op_collections.pin_pos_op, torch.device("cpu"))
self.op_collections.timing_op = self.build_timing_op(params, placedb, timer)
if params.timing_opt_flag:
self.op_collections.timing_op = self.build_timing_op(params, placedb, timer)
# legality check
self.op_collections.legality_check_op = self.build_legality_check(
params, placedb, self.data_collections, self.device)
Expand Down
2 changes: 1 addition & 1 deletion dreamplace/NonLinearPlace.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def __call__(self, params, placedb):
"""
iteration = 0
all_metrics = []
timing_op = self.op_collections.timing_op
if params.timing_opt_flag:
timing_op = self.op_collections.timing_op
time_unit = timing_op.timer.time_unit()

# global placement
Expand Down

0 comments on commit 61d5429

Please sign in to comment.