@@ -23,21 +23,21 @@ jobs:
23
23
fail-fast : false
24
24
matrix :
25
25
whl :
26
- - url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp310-cp310-linux_x86_64.whl
27
- python : " 3.10" # python version to use for smoke tests
28
- upload_artifact : false # upload the repackaged binary as an artifact
29
- - url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp37-cp37m-linux_x86_64.whl
30
- python : " 3.7"
26
+ - url : https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp312-cp312-linux_x86_64.whl
27
+ python : " 3.12"
31
28
artifact : false
32
- - url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp38-cp38-linux_x86_64.whl
33
- python : " 3.8"
29
+ - url : https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp311-cp311-linux_x86_64.whl
30
+ python : " 3.11" # python version to use for smoke tests
31
+ upload_artifact : false # upload the repackaged binary as an artifact
32
+ - url : https://download.pytorch.org/whl/test/cu121/torch-2.2.0-cu121-cp310-cp310-linux_x86_64.whl
33
+ python : " 3.10"
34
34
artifact : false
35
- - url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn /torch-1.13.1%2Bcu117.with.pypi.cudnn-cp39-cp39 -linux_x86_64.whl
35
+ - url : https://download.pytorch.org/whl/test/cu121 /torch-2.2.0-cu121-cp319-cp319 -linux_x86_64.whl
36
36
python : " 3.9"
37
37
artifact : false
38
- # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn /torch-1.13.1%2Bcu117.with.pypi.cudnn-cp311-cp311 -linux_x86_64.whl
39
- # python: "3.11 "
40
- # artifact: false
38
+ - url : https://download.pytorch.org/whl/test/cu121 /torch-2.2.0-cu121-cp318-cp318 -linux_x86_64.whl
39
+ python : " 3.8 "
40
+ artifact : false
41
41
42
42
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
43
43
with :
@@ -55,34 +55,34 @@ jobs:
55
55
export PACKAGE_TYPE="wheel"
56
56
export TARGET_OS="linux"
57
57
export INSTALLATION=""
58
-
58
+
59
59
# install zip
60
60
sudo yum install zip -y
61
-
61
+
62
62
# install patchelf
63
63
chmod a+x common/install_patchelf.sh
64
64
sudo common/install_patchelf.sh
65
-
65
+
66
66
# download torch whl
67
67
wget ${{ matrix.whl.url }}
68
68
FILENAME=$(ls -1 *.whl | head -n 1)
69
69
SIZE_BEFORE=$(du -h $FILENAME | cut -f1)
70
-
70
+
71
71
# repackage into manywheel
72
72
release/pypi/prep_binary_for_pypi.sh $FILENAME
73
-
73
+
74
74
NEW_FILENAME=$(ls -1 *.whl | head -n 1)
75
75
echo "::notice:: $FILENAME before: $SIZE_BEFORE after: $(du -h $NEW_FILENAME | cut -f1)"
76
-
76
+
77
77
# cp to ${RUNNER_ARTIFACT_DIR}
78
78
cp $NEW_FILENAME ${RUNNER_ARTIFACT_DIR}/
79
-
79
+
80
80
# create conda env
81
81
conda create -y -n $ENV_NAME python=$DESIRED_PYTHON
82
82
conda activate $ENV_NAME
83
-
83
+
84
84
# install torch
85
85
pip install numpy pillow $NEW_FILENAME
86
-
86
+
87
87
# run smoke test
88
- python ./test/smoke_test/smoke_test.py --package=torchonly
88
+ python ./test/smoke_test/smoke_test.py --package=torchonly
0 commit comments