File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2436,11 +2436,16 @@ static void calculate_reward_and_process_outcome(
2436
2436
2437
2437
static void copy_locs_to_global_state (const PlaceLocVars& place_loc_vars) {
2438
2438
auto & place_ctx = g_vpr_ctx.mutable_placement ();
2439
- auto & global_place_loc_vars = place_ctx.mutable_place_loc_vars ();
2440
2439
2440
+ // the placement location variables should be unlocked before being accessed
2441
2441
place_ctx.unlock_loc_vars ();
2442
2442
2443
+ // copy the local location variables into the global state
2444
+ auto & global_place_loc_vars = place_ctx.mutable_place_loc_vars ();
2443
2445
global_place_loc_vars = place_loc_vars;
2444
2446
2447
+ #ifndef NO_GRAPHICS
2448
+ // update the graphics' reference to placement location variables
2445
2449
set_graphics_place_loc_vars_ref (global_place_loc_vars);
2450
+ #endif
2446
2451
}
You can’t perform that action at this time.
0 commit comments