File tree Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -21,21 +21,20 @@ jobs:
21
21
whl :
22
22
- url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp310-cp310-linux_x86_64.whl
23
23
python : " 3.10"
24
- # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp311-cp311 -linux_x86_64.whl
25
- # python: "3.11 "
26
- - url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp37-cp37m -linux_x86_64.whl
27
- python : " 3.7 "
28
- - url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp38-cp38 -linux_x86_64.whl
29
- python : " 3.8 "
30
- - url : https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp39-cp39 -linux_x86_64.whl
31
- python : " 3.9 "
24
+ # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp37-cp37m -linux_x86_64.whl
25
+ # python: "3.7 "
26
+ # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp38-cp38 -linux_x86_64.whl
27
+ # python: "3.8 "
28
+ # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp39-cp39 -linux_x86_64.whl
29
+ # python: "3.9 "
30
+ # - url: https://download.pytorch.org/whl/test/cu117_pypi_cudnn/torch-1.13.1%2Bcu117.with.pypi.cudnn-cp311-cp311 -linux_x86_64.whl
31
+ # python: "3.11 "
32
32
33
33
uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
34
34
with :
35
35
runner : linux.4xlarge.nvidia.gpu
36
- repository : " pytorch/builder"
37
- ref : ${{ github.ref }}
38
36
job-name : " Validate binary size"
37
+ upload-artifact : pipy_wheel
39
38
script : |
40
39
set -ex
41
40
export ENV_NAME="conda-env-${{ github.run_id }}"
66
65
NEW_FILENAME=$(ls -1 *.whl | head -n 1)
67
66
echo "::notice:: $FILENAME before: $SIZE_BEFORE after: $(du -h $NEW_FILENAME | cut -f1)"
68
67
68
+ # cp to ${RUNNER_ARTIFACT_DIR}
69
+ cp $NEW_FILENAME ${RUNNER_ARTIFACT_DIR}/
70
+
69
71
# create conda env
70
72
conda create -y -n $ENV_NAME python=$DESIRED_PYTHON
71
73
conda activate $ENV_NAME
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ for whl_file in "$@"; do
58
58
rm -rf " ${whl_dir} " /torch/lib/libnvrtc*
59
59
(find " ${whl_dir} /torch/include/caffe2" -maxdepth 1 -mindepth 1 -type d| grep -v serialize| xargs rm -rf) || echo " caffe2 is empty already"
60
60
sed -i -e " s/Requires-Dist: nvidia-cuda-runtime-cu11/Requires-Dist: nvidia-cuda-runtime-cu11 (==11.7.99)/" " ${whl_dir} " /* /METADATA
61
- sed -i -e " /^Requires-Dist: nvidia-cublas-cu11 (==11.10.3.66).*/a Requires-Dist: nvidia-cuda-nvrtc-cu11 (==11.7.99)" " ${whl_dir} " /* /METADATA
61
+ sed -i -e " /^Requires-Dist: nvidia-cublas-cu11 (==11.10.3.66).*/a Requires-Dist: nvidia-cuda-nvrtc-cu11 (==11.7.99) ; platform_system == \" Linux \" " " ${whl_dir} " /* /METADATA
62
62
63
63
sed -i -e " s/-with-pypi-cudnn//g" " ${whl_dir} /torch/version.py"
64
64
find " ${whl_dir} /torch/" -maxdepth 1 -type f -name " *.so*" | while read sofile; do
@@ -78,7 +78,15 @@ for whl_file in "$@"; do
78
78
find " ${dist_info_folder} " -type f -exec sed -i " s!${version_with_suffix} !${version_no_suffix} !" {} \;
79
79
# Moves distinfo from one with a version suffix to one without
80
80
# Example: torch-1.8.0+cpu.dist-info => torch-1.8.0.dist-info
81
+
82
+ echo " Before moving dist_info_folder"
83
+ ls -l " ${whl_dir} "
84
+
81
85
mv " ${dist_info_folder} " " ${dirname_dist_info_folder} /${basename_dist_info_folder/ ${version_with_suffix} / ${version_no_suffix} } "
86
+
87
+ echo " After moving dist_info_folder"
88
+ ls -l " ${whl_dir} "
89
+
82
90
cd " ${whl_dir} "
83
91
84
92
(
You can’t perform that action at this time.
0 commit comments