Commit 9953874 1 parent 4e8c53b commit 9953874 Copy full SHA for 9953874
File tree 2 files changed +3
-8
lines changed
tools/AutoTuner/src/autotuner
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -319,4 +319,4 @@ configuration file.
319
319
- [ SYNTH_ARGS] ( #SYNTH_ARGS )
320
320
- [ TAP_CELL_NAME] ( #TAP_CELL_NAME )
321
321
- [ TECH_LEF] ( #TECH_LEF )
322
- - [ USE_FILL] ( #USE_FILL )
322
+ - [ USE_FILL] ( #USE_FILL )
Original file line number Diff line number Diff line change @@ -366,21 +366,16 @@ def parse_tunable_variables():
366
366
TODO: Tests.
367
367
"""
368
368
cur_path = os .path .dirname (os .path .realpath (__file__ ))
369
- vars_path = os .path .join (cur_path , "../../../../flow/scripts" )
370
- initial_path = os .path .abspath (os .getcwd ())
369
+ vars_path = os .path .join (cur_path , "../../../../flow/scripts/variables.yaml" )
371
370
372
371
# Read from variables.yaml and get variables with tunable = 1
373
- os .chdir (vars_path )
374
- with open ("variables.yaml" ) as file :
372
+ with open (vars_path ) as file :
375
373
try :
376
374
result = yaml .safe_load (file )
377
375
except yaml .YAMLError as exc :
378
376
print ("[ERROR TUN-0018] Error parsing variables.yaml." )
379
377
sys .exit (1 )
380
378
variables = {key : 1 for key , value in result .items () if value .get ("tunable" ) == 1 }
381
-
382
- # Return to initial path
383
- os .chdir (initial_path )
384
379
return variables
385
380
386
381
You can’t perform that action at this time.
0 commit comments