{"id":1867,"date":"2023-12-13T19:54:33","date_gmt":"2023-12-13T11:54:33","guid":{"rendered":"https:\/\/blog.xiunian.wang\/?p=1867"},"modified":"2024-04-29T08:54:04","modified_gmt":"2024-04-29T00:54:04","slug":"undefined-symbol-_zn15tracebackloggerc1epkc-version-libcudnn_ops_infer-so-8-%e9%94%99%e8%af%af-%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.xiunian.wang\/?p=1867","title":{"rendered":"undefined symbol: _ZN15TracebackLoggerC1EPKc, version libcudnn_ops_infer.so.8 \u9519\u8bef \u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"\n<p><code>python: symbol lookup error: \/data\/home\/xxxxxproject\/venv\/lib\/python3.9\/site-packages\/torch\/lib\/..\/..\/nvidia\/cudnn\/lib\/libcudnn_cnn_infer.so.8: undefined symbol: _ZN15TracebackLoggerC1EPKc, version libcudnn_ops_infer.so.8<\/code><\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u9047\u5230\u4e0a\u9762\u9519\u8bef\uff0c\u53ef\u4ee5ldd\u770b\u4e00\u4e0blibcudnn_ops_infer.so.8 \u6307\u5411\u7684\u4e0d\u662f\u6211\u4eec\u7684venv\u4e0b\u7684\u76ee\u6807so<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ldd \/data\/home\/projxxx\/venv\/lib\/python3.9\/site-packages\/torch\/lib\/..\/..\/nvidia\/cudnn\/lib\/libcudnn_cnn_infer.so.8\nldd: warning: you do not have execution permission for `\/data\/home\/xxxxxxxproject\/venv\/lib\/python3.9\/site-packages\/torch\/lib\/..\/..\/nvidia\/cudnn\/lib\/libcudnn_cnn_infer.so.8'\n        linux-vdso.so.1 (0x00007ffcee0e1000)\n        \/$LIB\/libonion_block.so => \/lib64\/libonion_block.so (0x00007f81c7053000)\n        \/$LIB\/libonion.so => \/lib64\/libonion.so (0x00007f81ee291000)\n        libcudnn_ops_infer.so.8 => \/usr\/local\/cuda-11.0\/lib64\/libcudnn_ops_infer.so.8 (0x00007f81b5507000)\n        libz.so.1 => \/lib64\/libz.so.1 (0x00007f81b52f0000)\n        librt.so.1 => \/lib64\/librt.so.1 (0x00007f81b50e7000)\n        libpthread.so.0 => \/lib64\/libpthread.so.0 (0x00007f81b4ec7000)\n        libdl.so.2 => \/lib64\/libdl.so.2 (0x00007f81b4cc3000)\n        libstdc++.so.6 => \/lib64\/libstdc++.so.6 (0x00007f81b4b2b000)\n        libm.so.6 => \/lib64\/libm.so.6 (0x00007f81b47a9000)\n        libgcc_s.so.1 => \/lib64\/libgcc_s.so.1 (0x00007f81ee261000)\n        libc.so.6 => \/lib64\/libc.so.6 (0x00007f81b43e7000)\n        \/lib64\/ld-linux-x86-64.so.2 (0x00007f81ee172000)<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\uff0clibcudnn_ops_infer \u5e76\u975e\u6307\u50cf\u6211\u4eec\u865a\u62df\u73af\u5883\u4e0b\u7684\u8def\u5f84\uff0c\u53ef\u4ee5\u91cd\u65b0\u6307\u5b9a\u641c\u7d22\u8def\u5f84<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export LD_LIBRARY_PATH=~\/projectxxxxxx\/venv\/lib\/python3.9\/site-packages\/nvidia\/cudnnib:$LD_LIBRARY_PATH<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762xxxxxx \u5c31\u662f\u4f60\u7684\u9879\u76ee\u5730\u5740\uff0c venv\u662f\u865a\u62df\u73af\u5883\u76ee\u5f55<\/p>\n","protected":false},"excerpt":{"rendered":"<p>python: symbol lookup error: \/data\/home\/xxxxxproject\/venv\/lib\/python3.9\/site-packages\/torch\/lib\/..\/..\/nvidia\/cudnn\/lib\/libcudnn_cnn_infer.so.8: undefined symbol: _ZN15TracebackLoggerC1EPKc, version libcudnn_ops_infer.so.8 \u5982\u679c\u4f60\u9047\u5230\u4e0a\u9762\u9519\u8bef\uff0c\u53ef\u4ee5ldd\u770b\u4e00\u4e0blibcudnn_ops_infer.so.8 \u6307\u5411\u7684\u4e0d\u662f\u6211\u4eec\u7684venv\u4e0b\u7684\u76ee\u6807so \u53ef\u4ee5\u770b\u5230\uff0clibcudnn_ops_infer \u5e76\u975e\u6307\u50cf\u6211\u4eec\u865a\u62df\u73af\u5883\u4e0b\u7684\u8def\u5f84\uff0c\u53ef\u4ee5\u91cd\u65b0\u6307\u5b9a\u641c\u7d22\u8def\u5f84 \u4e0a\u9762xxxxxx \u5c31\u662f\u4f60\u7684\u9879\u76ee\u5730\u5740\uff0c venv\u662f\u865a\u62df\u73af\u5883\u76ee\u5f55<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[26],"_links":{"self":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/posts\/1867"}],"collection":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1867"}],"version-history":[{"count":3,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions"}],"predecessor-version":[{"id":1933,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/posts\/1867\/revisions\/1933"}],"wp:attachment":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}