Download chips/openroad_flow_scripts/flow/test/test_autotuner.sh from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 1.86 kB
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/openroad_flow_scripts/flow/test/test_autotuner.sh
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/openroad_flow_scripts/flow/test/test_autotuner.sh
-
curl -L -o test_autotuner.sh https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/openroad_flow_scripts/flow/test/test_autotuner.sh
1.86 kB
| set -eoux pipefail | |
| DESIGN_NAME=${1:-gcd} | |
| PLATFORM=${2:-nangate45} | |
| # unittest does not allow dashes on test names | |
| PLATFORM_WITHOUT_DASHES="${PLATFORM//-/}" | |
| # run the commands in ORFS root dir | |
| echo "[INFO FLW-0029] Installing dependencies in virtual environment." | |
| cd ../ | |
| ./tools/AutoTuner/installer.sh | |
| . ./tools/AutoTuner/setup.sh | |
| echo "Running Autotuner smoke tune test" | |
| python3 -m unittest tools.AutoTuner.test.smoke_test_tune.${PLATFORM_WITHOUT_DASHES}TuneSmokeTest.test_tune | |
| echo "Running Autotuner smoke sweep test" | |
| python3 -m unittest tools.AutoTuner.test.smoke_test_sweep.${PLATFORM_WITHOUT_DASHES}SweepSmokeTest.test_sweep | |
| echo "Running Autotuner smoke tests for --sample and --iteration." | |
| python3 -m unittest tools.AutoTuner.test.smoke_test_sample_iteration.${PLATFORM_WITHOUT_DASHES}SampleIterationSmokeTest.test_sample_iteration | |
| echo "Running Autotuner smoke algorithm eval test" | |
| python3 -m unittest tools.AutoTuner.test.smoke_test_algo_eval.${PLATFORM_WITHOUT_DASHES}AlgoEvalSmokeTest.test_algo_eval | |
| if [ "$PLATFORM_WITHOUT_DASHES" == "asap7" ] && [ "$DESIGN_NAME" == "gcd" ]; then | |
| echo "Running Autotuner ref file test (only once)" | |
| python3 -m unittest tools.AutoTuner.test.ref_file_check.RefFileCheck | |
| echo "Running AutoTuner resume test (only once)" | |
| # Temporarily disable resume check test due to flakiness | |
| #python3 -m unittest tools.AutoTuner.test.resume_check.ResumeCheck.test_tune_resume | |
| echo "Running AutoTuner binary check (only once)" | |
| openroad_autotuner -h | |
| fi | |
| echo "Running Autotuner plotting smoke test" | |
| all_experiments=$(ls -d ./flow/logs/${PLATFORM}/${DESIGN_NAME}/smoke-test-tune*) | |
| all_experiments=$(basename -a $all_experiments) | |
| for expt in $all_experiments; do | |
| python3 tools/AutoTuner/scripts/plot.py \ | |
| --platform ${PLATFORM} \ | |
| --design ${DESIGN_NAME} \ | |
| --experiment $expt | |
| done | |