Add batch 5 (Luthiraa_TALOS-V2, dawsonjon_fpu, The-OpenROAD-Project_OpenROAD-flow-scripts, antonblanchard_microwatt, alexforencich_verilog-i2c)
784ee2c verified Download The-OpenROAD-Project_OpenROAD-flow-scripts/tools/AutoTuner/installer.sh from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 824 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/AutoTuner/installer.sh
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/AutoTuner/installer.sh
-
curl -L -o installer.sh https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/AutoTuner/installer.sh
824 Bytes
| # Get the directory where the script is located | |
| script_dir="$(dirname "${BASH_SOURCE[0]}")" | |
| # Define the virtual environment name | |
| venv_name="autotuner_env" | |
| python3 -m venv "$script_dir/$venv_name" | |
| source "$script_dir/$venv_name/bin/activate" | |
| retry_count=0 | |
| max_retries=5 | |
| success=false | |
| while [[ $retry_count -lt $max_retries ]]; do | |
| if pip3 cache purge && pip3 install --no-cache-dir -U -r "$script_dir/requirements.txt"; then | |
| success=true | |
| break | |
| else | |
| retry_count=$((retry_count + 1)) | |
| echo "Attempt $retry_count failed. Retrying in 1 minute..." | |
| sleep 60 | |
| fi | |
| done | |
| if [ "$success" = false ]; then | |
| echo "Failed to install requirements after $max_retries attempts." | |
| deactivate | |
| exit 1 | |
| fi | |
| pip3 install --no-cache-dir -e "$script_dir" | |
| deactivate | |