File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,18 @@ for whl_file in "$@"; do
61
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
62
62
63
63
sed -i -e " s/-with-pypi-cudnn//g" " ${whl_dir} /torch/version.py"
64
- patchelf --set-rpath ' $ORIGIN/../../nvidia/cublas/lib:$ORIGIN/../../nvidia/cudnn/lib:$ORIGIN/../../nvidia/cuda_nvrtc/lib:$ORIGIN' \
65
- $( find " ${whl_dir} /torch/lib" -name " *.so" )
64
+ find " ${whl_dir} /torch/" -maxdepth 1 -type f -name " *.so*" | while read sofile; do
65
+ patchelf --set-rpath ' $ORIGIN/../../nvidia/cublas/lib:$ORIGIN/../../nvidia/cudnn/lib:$ORIGIN/../../nvidia/cuda_nvrtc/lib:$ORIGIN:$ORIGIN/lib' \
66
+ --force-rpath $sofile
67
+ patchelf --print-rpath $sofile
68
+ done
69
+
70
+ find " ${whl_dir} /torch/lib" -maxdepth 1 -type f -name " *.so*" | while read sofile; do
71
+ patchelf --set-rpath ' $ORIGIN/../../nvidia/cublas/lib:$ORIGIN/../../nvidia/cudnn/lib:$ORIGIN/../../nvidia/cuda_nvrtc/lib:$ORIGIN' \
72
+ --force-rpath $sofile
73
+ patchelf --print-rpath $sofile
74
+ done
75
+ patchelf --replace-needed libnvrtc-d833c4f3.so.11.2 libnvrtc.so.11.2 " ${whl_dir} /torch/lib/libcaffe2_nvrtc.so"
66
76
fi
67
77
68
78
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