Test torch 1.13.0 (#61)

This commit is contained in:
Fangjun Kuang 2022-11-30 17:16:10 +08:00 committed by GitHub
parent 5c7566f2e2
commit 8ee0c34d3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 1 deletions

View File

@ -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 = []

View File

@ -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

View File

@ -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

View File

@ -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