@@ -23,66 +23,64 @@ jobs:
2323 fail-fast : false
2424 matrix :
2525 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%2Bcu121-cp312-cp312-linux_x86_64.whl
27+ python : " 3.12"
3128 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%2Bcu121-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%2Bcu121-cp310-cp310-linux_x86_64.whl
33+ python : " 3.10"
3434 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%2Bcu121 -cp39-cp39-linux_x86_64.whl
3636 python : " 3.9"
3737 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%2Bcu121-cp38-cp38 -linux_x86_64.whl
39+ python : " 3.8 "
40+ artifact : false
4141
4242 uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
4343 with :
44- runner : linux.4xlarge.nvidia.gpu
44+ runner : linux.g5. 4xlarge.nvidia.gpu
4545 job-name : " Validate binary size"
4646 upload-artifact : ${{ matrix.whl.upload_artifact == 'true' && 'repackaged-binary' || '' }}
4747 script : |
4848 set -ex
4949 export ENV_NAME="conda-env-${{ github.run_id }}"
50- export GPU_ARCH_VER="11.7 "
51- export GPU_ARCH_TYPE ="cuda"
52- export CUDA_VER="11.7 "
50+ export MATRIX_GPU_ARCH_VERSION="12.1 "
51+ export MATRIX_GPU_ARCH_TYPE ="cuda"
52+ export MATRIX_CUDA_VER="12.1 "
5353 export DESIRED_PYTHON="${{ matrix.whl.python }}"
54- export DESIRED_CUDA="cu117"
55- export PACKAGE_TYPE="wheel"
54+ export MATRIX_PACKAGE_TYPE="wheel"
5655 export TARGET_OS="linux"
57- export INSTALLATION=""
58-
56+
5957 # install zip
6058 sudo yum install zip -y
61-
59+
6260 # install patchelf
6361 chmod a+x common/install_patchelf.sh
6462 sudo common/install_patchelf.sh
65-
63+
6664 # download torch whl
6765 wget ${{ matrix.whl.url }}
6866 FILENAME=$(ls -1 *.whl | head -n 1)
6967 SIZE_BEFORE=$(du -h $FILENAME | cut -f1)
70-
68+
7169 # repackage into manywheel
7270 release/pypi/prep_binary_for_pypi.sh $FILENAME
73-
71+
7472 NEW_FILENAME=$(ls -1 *.whl | head -n 1)
7573 echo "::notice:: $FILENAME before: $SIZE_BEFORE after: $(du -h $NEW_FILENAME | cut -f1)"
76-
74+
7775 # cp to ${RUNNER_ARTIFACT_DIR}
7876 cp $NEW_FILENAME ${RUNNER_ARTIFACT_DIR}/
79-
77+
8078 # create conda env
8179 conda create -y -n $ENV_NAME python=$DESIRED_PYTHON
8280 conda activate $ENV_NAME
83-
81+
8482 # install torch
8583 pip install numpy pillow $NEW_FILENAME
86-
84+
8785 # run smoke test
88- python ./test/smoke_test/smoke_test.py --package=torchonly
86+ python ./test/smoke_test/smoke_test.py --package=torchonly
0 commit comments