Skip to content

Commit

Permalink
Test torch 1.13.0 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Nov 30, 2022
1 parent 5c7566f commit 8ee0c34
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/github_actions/generate_build_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,13 @@ def generate_build_matrix(enable_cuda, for_windows, test_only_latest_torch):
if not for_windows
else ["11.3.1", "11.6.2"],
},
"1.13.0": {
"python-version": ["3.7", "3.8", "3.9", "3.10", "3.11"],
"cuda": ["11.6", "11.7"], # default 11.7
},
}
if test_only_latest_torch:
latest = "1.12.1"
latest = "1.13.0"
matrix = {latest: matrix[latest]}

ans = []
Expand Down
3 changes: 3 additions & 0 deletions scripts/github_actions/install_cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ case "$cuda" in
11.6)
url=https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installers/cuda_11.6.2_510.47.03_linux.run
;;
11.7)
url=https://developer.download.nvidia.com/compute/cuda/11.7.1/local_installers/cuda_11.7.1_515.65.01_linux.run
;;
*)
echo "Unknown cuda version: $cuda"
exit 1
Expand Down
3 changes: 3 additions & 0 deletions scripts/github_actions/install_cudnn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ case $cuda in
11.6)
filename=cudnn-11.3-linux-x64-v8.2.0.53.tgz
;;
11.7)
filename=cudnn-11.3-linux-x64-v8.2.0.53.tgz
;;
*)
echo "Unsupported cuda version: $cuda"
exit 1
Expand Down
13 changes: 13 additions & 0 deletions scripts/github_actions/install_torch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,19 @@ case ${torch} in
;;
esac
;;
1.13.*)
case ${cuda} in
11.6)
package="torch==${torch}+cu116"
url=https://download.pytorch.org/whl/torch_stable.html
;;
11.7)
package="torch==${torch}"
# Leave it empty to use PyPI.
url=
;;
esac
;;
*)
echo "Unsupported PyTorch version: ${torch}"
exit 1
Expand Down

0 comments on commit 8ee0c34

Please sign in to comment.