File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,14 @@ for whl_file in "$@"; do
54
54
55
55
# Special build with pypi cudnn remove it from version
56
56
if [[ $whl_file == * " with.pypi.cudnn" * ]]; then
57
+ rm -rf " ${whl_dir} /caffe2"
58
+ rm -rf " ${whl_dir} " /torch/lib/libnvrtc*
59
+ find " ${whl_dir} /torch/include/caffe2" -maxdepth 1 -type d| grep -v serialize| xargs rm -rf
60
+ 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
+
57
62
sed -i -e " s/-with-pypi-cudnn//g" " ${whl_dir} /torch/version.py"
63
+ patchelf --set-rpath ' $ORIGIN/../../nvidia/cublas/lib:$ORIGIN/../../nvidia/cudnn/lib:$ORIGIN/../../nvidia/cuda_nvrtc/lib:$ORIGIN' \
64
+ $( find " ${whl_dir} /torch/lib" -name " *.so" )
58
65
fi
59
66
60
67
find " ${dist_info_folder} " -type f -exec sed -i " s!${version_with_suffix} !${version_no_suffix} !" {} \;
You can’t perform that action at this time.
0 commit comments