Skip to content

Commit ffac2b8

Browse files
committed
Update pytorch support for newer CUDA
1 parent 5950c98 commit ffac2b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install_shapeworks.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ done
4646

4747
CONDAENV=shapeworks
4848
if [[ "${#POSITIONAL_ARGS[@]}" -eq 1 ]]; then
49-
CONDAENV=${POSITIONAL_ARGS[0]}
49+
CONDAENV=${POSITIONAL_ARGS[@]:0:1}
5050
fi
5151

5252
echo "Creating new conda environment for ShapeWorks called \"$CONDAENV\"..."
@@ -71,6 +71,8 @@ function install_pytorch() {
7171
pip install torch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 -f https://download.pytorch.org/whl/torch_stable.html
7272
elif [[ "$CUDA" == "11.0" || "$CUDA" == "11.1" || "$CUDA" == "11.2" ]]; then
7373
pip install torch==1.11.0+cu110 torchvision==0.12.0+cu110 torchaudio==0.11.0 -f https://download.pytorch.org/whl/torch_stable.html
74+
elif [[ "$CUDA" == "11.7" || "$CUDA" == "11.8" || "$CUDA" == "12.0" || "$CUDA" == "12.1" ]]; then
75+
pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 -f https://download.pytorch.org/whl/cu118
7476
else
7577
echo "CUDA version not compatible, using cpu-only"
7678
pip install torch==1.11.0+cpu torchvision==0.12.0+cpu torchaudio==0.11.0 -f https://download.pytorch.org/whl/torch_stable.html

0 commit comments

Comments
 (0)