Skip to content

Commit

Permalink
shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihao committed Oct 19, 2024
1 parent d8355ca commit bf6be8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/flexflow-environment/install_pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ install_pytorch() {
echo "Attempting to install PyTorch with CUDA ${major}.${minor} support..."

# Run dry-run first
if pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu${major}${minor} --dry-run; then
if pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu"${major}${minor}" --dry-run; then
echo "Dry-run succeeded, proceeding with actual installation..."
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu${major}${minor}
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu"${major}${minor}"
return 0
else
echo "Dry-run failed for CUDA ${major}.${minor}."
Expand Down

0 comments on commit bf6be8c

Please sign in to comment.