File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -49,20 +49,14 @@ jobs:
4949 - name : Match rpath(linux only)
5050 if : matrix.runs-on == 'ubuntu-22.04'
5151 run : |
52- cd ./tests/Sdcb.PaddleOCR.Tests/bin/Release/net8.0/runtimes/linux-x64/native
53- patchelf --add-needed libmklml_intel.so libdnnl.so.3
54-
55- # for so in $(find . -type f -name '*.so*'); do
56- # echo "================ $so ================"
57- # patchelf --set-rpath '$ORIGIN' "$so" || true
58- # echo
59- # done
52+ cd ./tests/Sdcb.PaddleOCR.Tests/bin/Release/net8.0/runtimes/linux-x64
6053
61- # for so in $(find . -type f -name '*.so*'); do
62- # echo "================ $so ================"
63- # patchelf --print-rpath "$so" || true
64- # echo
65- # done
54+ if find . -type f -name 'libmklml_intel.so' -print -quit | grep -q .; then
55+ echo "libmklml_intel.so found, patching libdnnl.so.3..."
56+ patchelf --add-needed libmklml_intel.so libdnnl.so.3
57+ else
58+ echo "libmklml_intel.so not found, skip patchelf."
59+ fi
6660
6761 - name : Test
6862 shell : bash
You can’t perform that action at this time.
0 commit comments