{"id":7089,"date":"2024-02-21T11:02:19","date_gmt":"2024-02-21T03:02:19","guid":{"rendered":"https:\/\/white-night.club\/?p=7089"},"modified":"2024-02-22T19:16:48","modified_gmt":"2024-02-22T11:16:48","slug":"os1","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2024\/02\/21\/os1\/","title":{"rendered":"Ubuntu 23.10\uff1a\u5185\u7f51\u5b89\u88c5rapidocr_paddle\uff08GPU\uff09\u53ca\u5176\u524d\u7f6e\u51c6\u5907"},"content":{"rendered":"\n<p>rapidocr_paddle\u4e3b\u8981\u662f\u7528\u4e8eocr\u8bc6\u522b\u7684\u5f15\u64ce\u3002\u672c\u6587\u4e3b\u8981\u9488\u5bf9\u4e8e\u201c\u5982\u4f55\u5728\u5185\u7f51\u73af\u5883\u4e0b\u5b89\u88c5\u76f8\u5173\u9a71\u52a8\u4ee5\u53ca\u8f6f\u4ef6\u201d\u3002\u8fd9\u91cc\u5148\u653e\u4e0a\u8981\u7528\u5230\u7684\u7f51\u7ad9\uff1a<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/rapidai.github.io\/RapidOCRDocs\/docs\/install_usage\/rapidocr_paddle\/\">GPU\u7aef\u7684rapidocr_paddle<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/\">CUDA\u4e0b\u8f7d\u4ed3\u5e93<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/developer.nvidia.com\/rdp\/cudnn-archive\">CUDNN\u4e0b\u8f7d<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.nvidia.cn\/geforce\/drivers\/results\/217601\/\">NVIDIA\u9a71\u52a8\uff08Linux x86\uff09\u5b89\u88c5<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.paddlepaddle.org.cn\/install\/quick?docurl=\/documentation\/docs\/zh\/install\/pip\/linux-pip.html\">\u5b89\u88c5paddle<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u4ee5\u53ca\u76f8\u5173\u7684\u6587\u6863\uff0c\u78b0\u5230\u672c\u6587\u6ca1\u63d0\u5230\u7684\u95ee\u9898\u53ef\u4ee5\u53bb\u8fd9\u91cc\u9762\u627e\uff1a<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/docs.nvidia.com\/datacenter\/tesla\/drivers\/index.html#cuda-install\">NVIDIA\u5b98\u65b9\u6587\u6863\uff1a\u5b89\u88c5CUDN\u4e0eCUDNN\uff08\u663e\u5361\u4e3aTesla\u7cfb\uff09<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.nvidia.com\/cuda\/cuda-installation-guide-linux\/index.html#package-manager-metas\">NVIDIA\u5b98\u65b9\u6587\u6863\uff1a\u5b89\u88c5CUDN<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u91cc\u987a\u4fbf\u9644\u4e0a\u5199\u8005\u7684\u7535\u8111\u73af\u5883\uff0c\u4ee5\u4fbf\u5bf9\u7167\uff1a<\/p>\n\n\n\n<ul>\n<li>Ubuntu 23.10 \u670d\u52a1\u5668\u7248\u7684\u865a\u62df\u673a\uff0c\u6240\u4ee5\u65e0\u56fe\u5f62\u5316\u754c\u9762\u3002<\/li>\n\n\n\n<li>\u5185\u7f51\u73af\u5883\u3002\u5185\u7f51apt-get\u6e90\u65e0cuda\u4e0ecudnn\u3002<\/li>\n\n\n\n<li>Data center\/Tesla T4\u663e\u5361\u3002<\/li>\n\n\n\n<li>Python 3.10.13<\/li>\n\n\n\n<li>x86\u3002<\/li>\n<\/ul>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-4a10ac1a9b65135f6a1399d7d82e8bff\">\n<p>\u524d\u7f6e\u51c6\u5907<\/p>\n<cite><em>\u5b89\u88c5opencv<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5148\u88c5libGL\uff0c\u8fd9\u662f\u7b49\u4f1a\u5b89\u88c5opencv-python\u8981\u7528\u5230\u7684\u4f9d\u8d56\u5305\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"apt-get install libgl1\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">apt-get<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">install<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">libgl1<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"518\" height=\"274\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-24.png\" alt=\"\" class=\"wp-image-7110\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-24.png 518w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-24-300x159.png 300w\" sizes=\"(max-width: 518px) 100vw, 518px\" \/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u5b89\u88c5opencv-python\uff0c\u8fd9\u6837\u624d\u80fd\u5728python\u4e2d\u5bfc\u5165cv2\u5305\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"python -m pip install opencv-python\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">python<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-m<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">pip<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">install<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">opencv-python<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u8fdbpython\u770b\u770b\u80fd\u4e0d\u80fdimport cv2\uff0c\u80fd\u5c31\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-cb2f7210973f65a4f5baa0e400f1f7e5\">\n<p>\u786e\u8ba4GPU\u7c7b\u578b\u4e0e\u578b\u53f7<\/p>\n<cite><em>Tesla\u3001Titan\u3001Geforce&#8230;<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5b89\u9a71\u52a8\u524d\u5f97\u770b\u81ea\u5df1\u663e\u5361\u578b\u53f7\u662f\u4ec0\u4e48\u3002\u5982\u679c\u4f60\u7684\u673a\u5b50\u4e4b\u524d\u6709\u5b89\u88c5\u8fc7nvidia\u9a71\u52a8\uff0c\u53ef\u4ee5\u8f93\u4ee5\u4e0b\u4ee3\u7801\u67e5\u770b\u663e\u5361\u578b\u53f7\u3002\u6ca1\u6709\u7684\u8bdd\u5c31\u95ee\u95ee\u673a\u623f\u7684\u4eba\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"nvidia-smi\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">nvidia-smi<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u786e\u8ba4\u5b8c\u4e4b\u540e\u5c31\u8be5\u5b89\u88c5\u9a71\u52a8\u4e86\uff0cx86\/amd64\u7684\u76f4\u63a5\u5b89linux x86\u7684\u5c31\u884c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"595\" height=\"619\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-18.png\" alt=\"\" class=\"wp-image-7098\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-18.png 595w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-18-288x300.png 288w\" sizes=\"(max-width: 595px) 100vw, 595px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u5b8c\u540e\u4f20\u5230\u865a\u62df\u673a\u4e0a\uff0c\u7ed9\u6267\u884c\u6743\u9650\u540e\u518d\u6267\u884c\u5b89\u88c5<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"chmod +777 NVIDIA-Linux-x86_64-525.147.05.run\n.\/NVIDIA-Linux-x86_64-525.147.05.run\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">chmod<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">+777<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">NVIDIA-Linux-x86_64-525.147.05.run<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">.\/NVIDIA-Linux-x86_64-525.147.05.run<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u4e00\u8defenter\u8fc7\u53bb\u5c31\u884c\uff0c\u5b89\u88c5\u5230\u6700\u540e\u4e00\u6b65\u4f1a\u63d0\u793a\u201cxxx now complete\u201d\u3002\u6b64\u65f6\u8f93\u5165nvidia-smi\u5c31\u80fd\u770b\u5230\u663e\u5361\u4fe1\u606f\u4e86\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-1be46ea10d88e306a09f9a5bed5256e5\">\n<p>\u5b89\u88c5CUDA\u4e0eCUDNN<\/p>\n<cite><em>.run\u4e0e.tar.xz<\/em><\/cite><\/blockquote>\n\n\n\n<p>CUDA\u6ca1\u5565\uff0c\u4e0b\u8f7d\u81ea\u5df1\u9700\u8981\u7684\u7248\u672c\u7136\u540e\u5b89\u88c5\u5c31\u884c\u3002\u6211\u9700\u8981\u7684\u662f\u201c\u80fd\u8dd1\u5c31\u884c\u201d\uff0c\u6240\u4ee5\u4e0b\u7684\u6700\u65b0\u7248\u672c12.3.2\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"298\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-19-1024x298.png\" alt=\"\" class=\"wp-image-7100\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-19-1024x298.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-19-300x87.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-19-768x223.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-19.png 1138w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u5b8c\u540e\u548c\u663e\u5361\u9a71\u52a8\u4e00\u6837\uff0c\u5148\u7ed9\u6743\u9650\u518d\u5b89\u88c5<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"chmod +777 cuda_12.3.2_545.23.08_linux.run\n.\/cuda_12.3.2_545.23.08_linux.run\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">chmod<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">+777<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">cuda_12.3.2_545.23.08_linux.run<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">.\/cuda_12.3.2_545.23.08_linux.run<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5b89\u88c5\u7684\u65f6\u5019\u8fd8\u9700\u8981\u6ce8\u610f\uff0c\u9009\u5b89\u88c5\u7ec4\u4ef6\u7684\u65f6\u5019\u4e0d\u8981\u52fe\u9009\u7b2c\u4e00\u9879\u7684Driver\uff0c\u56e0\u4e3a\u4e0a\u9762\u5df2\u7ecf\u5b89\u88c5\u8fc7\u663e\u5361\u9a71\u52a8\u4e86\u3002\u8fd9\u91cc\u53ea\u9700\u8981\u5b89\u88c5\u548cCUDA\u6709\u5173\u7684\u4e1c\u897f\u5c31\u884c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"338\" height=\"172\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-23.png\" alt=\"\" class=\"wp-image-7105\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-23.png 338w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-23-300x153.png 300w\" sizes=\"(max-width: 338px) 100vw, 338px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u5b89\u88c5\u5931\u8d25\uff0c\u7f3a\u8fd9\u7f3a\u90a3\u7684\uff0c\u914d\u5185\u7f51\u7684apt-get\u6e90\u7136\u540e\u5b89\u88c5\u4ee5\u4e0b\u4f9d\u8d56\u3002\u6ca1\u5185\u7f51apt-get\u6e90\u6216\u8005\u5185\u7f51apt-get\u6e90\u6ca1\u6709\u7684\u8bdd\u5c31\u5916\u7f51\u4e0b\u597d\u518d\u4e22\u5185\u7f51\u5b89\u88c5\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">sudo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">apt-get<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">install<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">freeglut3-dev<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">build-essential<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">libx11-dev<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">libxmu-dev<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">libxi-dev<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">libgl1-mesa-glx<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">libglu1-mesa<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">libglu1-mesa-dev<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u770b\u770b\u6548\u679c\uff0c\u5148\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"vi ~\/.bashrc\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">vi<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">~\/.bashrc<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u518d\u628a\u4ee5\u4e0b\u5185\u5bb9\u76f4\u63a5\u590d\u5236\u5230\u6700\u540e\u9762\u3002\u5982\u679c\u4e0d\u653e\u5fc3\u53ef\u4ee5\u5148\u770b\u770b\u5bf9usr\/local\u8def\u5f84\u6709\u6ca1\u6709\u76f8\u5173\u7684\u6587\u4ef6\u5939\uff0c\u6216\u8005\u6587\u4ef6\u5939\u540d\u5b57\u5bf9\u4e0d\u5bf9\u7684\u4e0a\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\/usr\/local\/cuda\/lib64\nexport PATH=$PATH:\/usr\/local\/cuda\/bin\nexport CUDA_HOME=$CUDA_HOME:\/usr\/local\/cuda\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #569CD6\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">LD_LIBRARY_PATH<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #9CDCFE\">$LD_LIBRARY_PATH<\/span><span style=\"color: #CE9178\">:\/usr\/local\/cuda\/lib64<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">PATH<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #9CDCFE\">$PATH<\/span><span style=\"color: #CE9178\">:\/usr\/local\/cuda\/bin<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">CUDA_HOME<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #9CDCFE\">$CUDA_HOME<\/span><span style=\"color: #CE9178\">:\/usr\/local\/cuda<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6b64\u65f6\u8f93\u5165nvcc -V\u80fd\u5f97\u5230\u4ee5\u4e0b\u8f93\u51fa\u5c31\u662f\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"root@ubuntu:\/home\/test# nvcc -V\nnvcc: NVIDIA (R) Cuda compiler driver\nCopyright (c) 2005-2023 NVIDIA Corporation\nBuilt on Wed_Nov_22_10:17:15_PST_2023\nCuda compilation tools, release 12.3, V12.3.107\nBuild cuda_12.3.r12.3\/compiler.33567101_0\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">root@ubuntu:\/home\/test# nvcc -V<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">nvcc: NVIDIA (R) Cuda compiler driver<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Copyright (c) 2005-2023 NVIDIA Corporation<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Built on Wed_Nov_22_10:17:15_PST_2023<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Cuda compilation tools, release 12.3, V12.3.107<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Build cuda_12.3.r12.3\/compiler.33567101_0<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5b89\u88c5\u5b8cCUDA\u8fd8\u6ca1\u5b8c\uff0c\u8fd8\u5dee\u4e2acudnn\u3002\u8fd9\u4e2a\u5c31\u6bd4\u8f83\u9ebb\u70e6\u3002\u5f97\u53bb\u627e\u5bf9\u5e94\u7248\u672c\u7684cudnn\u3002\u5982\u679c\u4f60CUDA\u5b89\u88c5\u7684\u662f12.0\u6216\u8005\u4ee5\u4e0a\uff0812.x\uff09\u7684\u7248\u672c\uff0c\u90a3\u4e48cudnn\u81f3\u5c11\u4e5f\u5f97\u662f8.9.1\u53ca\u4ee5\u4e0a(8.9.x\uff09\u7684\u7248\u672c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"231\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-21.png\" alt=\"\" class=\"wp-image-7103\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-21.png 757w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-21-300x92.png 300w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<p>\u6211\u7528\u76848.9.5\uff0c\u8bb0\u5f97\u770b\u5bf9\u5e94\u7684CUDA\u7248\u672c\u662f11.x\u8fd8\u662f12.x\u7684\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-20-1024x562.png\" alt=\"\" class=\"wp-image-7102\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-20-1024x562.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-20-300x165.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-20-768x422.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-20.png 1377w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u4e5f\u6709\u8bb2\u7a76\u3002\u6211\u4e00\u5f00\u59cb\u4e0b\u7684deb\u5305\uff0cdpkg -i\u5b89\u88c5\u5b8c\uff0c\u8fdbpython\u9a8c\u8bc1\u7684\u65f6\u5019\u53d1\u73b0cuda\u8bc6\u522b\u4e0d\u5230cudnn\uff0c\u63d0\u793a\u7f3alibcudnn\u3002<\/p>\n\n\n\n<p>\u641e\u4e86\u534a\u5929\u4e5f\u6ca1\u641e\u5b9a\u3002\u6240\u4ee5\u5efa\u8bae\u76f4\u63a5\u4e0btar\u5305\u89e3\u538b\uff0c\u7701\u5fc3\u3002\u5916\u7f51\u7684\u8bdd\u53ef\u4ee5\u8bd5\u8bd5deb\u5305\u7136\u540e\u88c5\u76f8\u5173\u4f9d\u8d56\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"486\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-22-1024x486.png\" alt=\"\" class=\"wp-image-7104\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-22-1024x486.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-22-300x142.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-22-768x364.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-22.png 1142w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e0b\u8f7d\u5b8ctar\u5305\u540e\u89e3\u538b\uff0c\u5982\u679c\u4f60\u5728\u7528\u6237\u76ee\u5f55\u89e3\u538b\u7684\u8bdd\uff0c\u8def\u5f84\u5e94\u8be5\u662f\u8fd9\u4e2a\uff0c\u770b\u81ea\u5df1\u5728\u54ea\u91cc\u89e3\u538b\u7684\u5427\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"tar xvf cudnn-linux-x86_64-8.9.5.30_cuda12-archive.tar.xz\ncd \/home\/test\/cudnn-linux-x86_64-8.9.5.30_cuda12-archive\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">tar<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">xvf<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">cudnn-linux-x86_64-8.9.5.30_cuda12-archive.tar.xz<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">cd<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\/home\/test\/cudnn-linux-x86_64-8.9.5.30_cuda12-archive<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u63a5\u4e0b\u6765\u624b\u52a8\u628a\u76f8\u5173\u7684\u6587\u4ef6\u590d\u5236\u5230cuda\u7684\u76ee\u5f55\u4e0b\u3002\u76f8\u5173\u8def\u5f84\u53ef\u80fd\u9700\u8981\u6839\u636e\u81ea\u5df1\u865a\u62df\u673a\u7684\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u3002\u590d\u5236\u5b8c\u4e4b\u540e\u8bb0\u5f97\u52a0\u4e0a\u6743\u9650\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"cp include\/cudnn.h    \/usr\/local\/cuda\/include\ncp lib\/libcudnn*    \/usr\/local\/cuda\/lib64\nchmod +777 \/usr\/local\/cuda\/include\/cudnn.h \/usr\/local\/cuda\/lib64\/libcudnn*\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">cp<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">include\/cudnn.h<\/span><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #CE9178\">\/usr\/local\/cuda\/include<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">cp<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">lib\/libcudnn<\/span><span style=\"color: #569CD6\">*<\/span><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #CE9178\">\/usr\/local\/cuda\/lib64<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">chmod<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">+777<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\/usr\/local\/cuda\/include\/cudnn.h<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\/usr\/local\/cuda\/lib64\/libcudnn<\/span><span style=\"color: #569CD6\">*<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-c36a9726fbf5635c55dc90298b204fdd\">\n<p>\u5b89\u88c5paddle<\/p>\n<cite><em>pip\u5b89\u88c5<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5b98\u65b9\u8fd9\u90fd\u5199\u7684\u5f88\u6e05\u695a\u4e86\u3002CUDA 12.x\u7684\u88c5post120\u5c31\u884c\u3002\u5185\u7f51pip\u6e90\u6ca1\u6709\u7684\u8bdd\u4e5f\u662f\u5916\u7f51\u4e0b\u5b8c\u518d\u62d6\u8fdb\u5185\u7f51\u865a\u62df\u673a\u3002\u8fd8\u5f97\u770b\u81ea\u5df1\u7535\u8111\u652f\u4e0d\u652f\u6301avx\uff0c\u652f\u6301\u7684\u8bdd\u7528\u7b2c\u4e00\u4e2a\u94fe\u63a5\u3002<\/p>\n\n\n\n<figure data-wp-context=\"{ &quot;core&quot;:\n\t\t\t\t{ &quot;image&quot;:\n\t\t\t\t\t{   &quot;imageLoaded&quot;: false,\n\t\t\t\t\t\t&quot;initialized&quot;: false,\n\t\t\t\t\t\t&quot;lightboxEnabled&quot;: false,\n\t\t\t\t\t\t&quot;hideAnimationEnabled&quot;: false,\n\t\t\t\t\t\t&quot;preloadInitialized&quot;: false,\n\t\t\t\t\t\t&quot;lightboxAnimation&quot;: &quot;zoom&quot;,\n\t\t\t\t\t\t&quot;imageUploadedSrc&quot;: &quot;https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-25.png&quot;,\n\t\t\t\t\t\t&quot;imageCurrentSrc&quot;: &quot;&quot;,\n\t\t\t\t\t\t&quot;targetWidth&quot;: &quot;849&quot;,\n\t\t\t\t\t\t&quot;targetHeight&quot;: &quot;229&quot;,\n\t\t\t\t\t\t&quot;scaleAttr&quot;: &quot;&quot;,\n\t\t\t\t\t\t&quot;dialogLabel&quot;: &quot;Enlarged image&quot;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\" data-wp-interactive class=\"wp-block-image size-full has-custom-border wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"229\" data-wp-effect--setStylesOnResize=\"effects.core.image.setStylesOnResize\" data-wp-effect=\"effects.core.image.setButtonStyles\" data-wp-init=\"effects.core.image.initOriginImage\" data-wp-on--click=\"actions.core.image.showLightbox\" data-wp-on--load=\"actions.core.image.handleLoad\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-25.png\" alt=\"\" class=\"wp-image-7112\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-25.png 849w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-25-300x81.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-25-768x207.png 768w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge image\"\n\t\t\tdata-wp-on--click=\"actions.core.image.showLightbox\"\n\t\t\tdata-wp-style--right=\"context.core.image.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"context.core.image.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button>        <div data-wp-body=\"\" class=\"wp-lightbox-overlay zoom\"\n            data-wp-bind--role=\"selectors.core.image.roleAttribute\"\n            data-wp-bind--aria-label=\"selectors.core.image.dialogLabel\"\n            data-wp-class--initialized=\"context.core.image.initialized\"\n            data-wp-class--active=\"context.core.image.lightboxEnabled\"\n            data-wp-class--hideAnimationEnabled=\"context.core.image.hideAnimationEnabled\"\n            data-wp-bind--aria-modal=\"selectors.core.image.ariaModal\"\n            data-wp-effect=\"effects.core.image.initLightbox\"\n            data-wp-on--keydown=\"actions.core.image.handleKeydown\"\n            data-wp-on--touchstart=\"actions.core.image.handleTouchStart\"\n            data-wp-on--touchmove=\"actions.core.image.handleTouchMove\"\n            data-wp-on--touchend=\"actions.core.image.handleTouchEnd\"\n            data-wp-on--click=\"actions.core.image.hideLightbox\"\n            tabindex=\"-1\"\n            >\n                <button type=\"button\" aria-label=\"\u5173\u95ed\" style=\"fill: var(--wp--preset--color--foreground)\" class=\"close-button\" data-wp-on--click=\"actions.core.image.hideLightbox\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z\"><\/path><\/svg>\n                <\/button>\n                <div class=\"lightbox-image-container\">\n<figure class=\"wp-block-image size-full has-custom-border responsive-image\"><img decoding=\"async\" data-wp-bind--src=\"context.core.image.imageCurrentSrc\" data-wp-style--object-fit=\"selectors.core.image.lightboxObjectFit\" src=\"\" alt=\"\" class=\"wp-image-7112\" style=\"border-style:none;border-width:0px;border-radius:0px\"\/><\/figure>\n<\/div>\n                <div class=\"lightbox-image-container\">\n<figure class=\"wp-block-image size-full has-custom-border enlarged-image\"><img decoding=\"async\" data-wp-bind--src=\"selectors.core.image.enlargedImgSrc\" data-wp-style--object-fit=\"selectors.core.image.lightboxObjectFit\" src=\"\" alt=\"\" class=\"wp-image-7112\" style=\"border-style:none;border-width:0px;border-radius:0px\"\/><\/figure>\n<\/div>\n                <div class=\"scrim\" style=\"background-color: var(--wp--preset--color--background)\" aria-hidden=\"true\"><\/div>\n        <\/div><\/figure>\n\n\n\n<figure data-wp-context=\"{ &quot;core&quot;:\n\t\t\t\t{ &quot;image&quot;:\n\t\t\t\t\t{   &quot;imageLoaded&quot;: false,\n\t\t\t\t\t\t&quot;initialized&quot;: false,\n\t\t\t\t\t\t&quot;lightboxEnabled&quot;: false,\n\t\t\t\t\t\t&quot;hideAnimationEnabled&quot;: false,\n\t\t\t\t\t\t&quot;preloadInitialized&quot;: false,\n\t\t\t\t\t\t&quot;lightboxAnimation&quot;: &quot;zoom&quot;,\n\t\t\t\t\t\t&quot;imageUploadedSrc&quot;: &quot;https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-26.png&quot;,\n\t\t\t\t\t\t&quot;imageCurrentSrc&quot;: &quot;&quot;,\n\t\t\t\t\t\t&quot;targetWidth&quot;: &quot;1221&quot;,\n\t\t\t\t\t\t&quot;targetHeight&quot;: &quot;138&quot;,\n\t\t\t\t\t\t&quot;scaleAttr&quot;: &quot;&quot;,\n\t\t\t\t\t\t&quot;dialogLabel&quot;: &quot;Enlarged image&quot;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\" data-wp-interactive class=\"wp-block-image size-large has-custom-border wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"116\" data-wp-effect--setStylesOnResize=\"effects.core.image.setStylesOnResize\" data-wp-effect=\"effects.core.image.setButtonStyles\" data-wp-init=\"effects.core.image.initOriginImage\" data-wp-on--click=\"actions.core.image.showLightbox\" data-wp-on--load=\"actions.core.image.handleLoad\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-26-1024x116.png\" alt=\"\" class=\"wp-image-7114\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-26-1024x116.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-26-300x34.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-26-768x87.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-26.png 1221w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge image\"\n\t\t\tdata-wp-on--click=\"actions.core.image.showLightbox\"\n\t\t\tdata-wp-style--right=\"context.core.image.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"context.core.image.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button>        <div data-wp-body=\"\" class=\"wp-lightbox-overlay zoom\"\n            data-wp-bind--role=\"selectors.core.image.roleAttribute\"\n            data-wp-bind--aria-label=\"selectors.core.image.dialogLabel\"\n            data-wp-class--initialized=\"context.core.image.initialized\"\n            data-wp-class--active=\"context.core.image.lightboxEnabled\"\n            data-wp-class--hideAnimationEnabled=\"context.core.image.hideAnimationEnabled\"\n            data-wp-bind--aria-modal=\"selectors.core.image.ariaModal\"\n            data-wp-effect=\"effects.core.image.initLightbox\"\n            data-wp-on--keydown=\"actions.core.image.handleKeydown\"\n            data-wp-on--touchstart=\"actions.core.image.handleTouchStart\"\n            data-wp-on--touchmove=\"actions.core.image.handleTouchMove\"\n            data-wp-on--touchend=\"actions.core.image.handleTouchEnd\"\n            data-wp-on--click=\"actions.core.image.hideLightbox\"\n            tabindex=\"-1\"\n            >\n                <button type=\"button\" aria-label=\"\u5173\u95ed\" style=\"fill: var(--wp--preset--color--foreground)\" class=\"close-button\" data-wp-on--click=\"actions.core.image.hideLightbox\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z\"><\/path><\/svg>\n                <\/button>\n                <div class=\"lightbox-image-container\">\n<figure class=\"wp-block-image size-large has-custom-border responsive-image\"><img decoding=\"async\" data-wp-bind--src=\"context.core.image.imageCurrentSrc\" data-wp-style--object-fit=\"selectors.core.image.lightboxObjectFit\" src=\"\" alt=\"\" class=\"wp-image-7114\" style=\"border-style:none;border-width:0px;border-radius:0px\"\/><\/figure>\n<\/div>\n                <div class=\"lightbox-image-container\">\n<figure class=\"wp-block-image size-large has-custom-border enlarged-image\"><img decoding=\"async\" data-wp-bind--src=\"selectors.core.image.enlargedImgSrc\" data-wp-style--object-fit=\"selectors.core.image.lightboxObjectFit\" src=\"\" alt=\"\" class=\"wp-image-7114\" style=\"border-style:none;border-width:0px;border-radius:0px\"\/><\/figure>\n<\/div>\n                <div class=\"scrim\" style=\"background-color: var(--wp--preset--color--background)\" aria-hidden=\"true\"><\/div>\n        <\/div><\/figure>\n\n\n\n<p>\u88c5\u5b8c\u4e4b\u540e\u5c31\u53ef\u4ee5\u9a8c\u8bc1\u4e86\u3002\u8fdb\u5165python\u3002\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff0c\u5e94\u8be5\u80fd\u5f97\u5230\u5bf9\u5e94\u7684\u7ed3\u679c\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2b2b2b;color:#c7c7c7\">Python<\/span><span role=\"button\" tabindex=\"0\" data-code=\"import paddle\nimport cv2 #\u548cpaddle\u65e0\u5173\uff0c\u53ea\u662f\u6d4b\u4e0bopencv\u6709\u6ca1\u6709\u5b89\u88c5\u6210\u529f\npaddle.utils.run_check()\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> paddle<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">import<\/span><span style=\"color: #D4D4D4\"> cv2 <\/span><span style=\"color: #6A9955\">#\u548cpaddle\u65e0\u5173\uff0c\u53ea\u662f\u6d4b\u4e0bopencv\u6709\u6ca1\u6709\u5b89\u88c5\u6210\u529f<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">paddle.utils.run_check()<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers cbp-blur-enabled cbp-unblur-on-hover cbp-highlight-hover\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"Python 3.10.13 (main, Feb  4 2024, 06:33:33) [GCC 13.2.0] on linux\nType &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.\n&gt;&gt;&gt; import paddle\n&gt;&gt;&gt; paddle.utils.run_check()\nRunning verify PaddlePaddle program ...\nI0221 06:25:23.755407 1275918 interpretercore.cc:237] New Executor is Running.\nW0221 06:25:23.757426 1275918 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 12.0, Runtime API Version: 12.0\nW0221 06:25:23.758528 1275918 gpu_resources.cc:149] device: 0, cuDNN Version: 8.9.\nI0221 06:25:24.685256 1275918 interpreter_util.cc:518] Standalone Executor is Used.\nPaddlePaddle works well on 1 GPU.\nPaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">Python 3.10.13 (main, Feb  4 2024, 06:33:33) [GCC 13.2.0] on linux<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&gt;&gt;&gt; import paddle<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">&gt;&gt;&gt; paddle.utils.run_check()<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">Running verify PaddlePaddle program ...<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">I0221 06:25:23.755407 1275918 interpretercore.cc:237] New Executor is Running.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">W0221 06:25:23.757426 1275918 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 7.5, Driver API Version: 12.0, Runtime API Version: 12.0<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">W0221 06:25:23.758528 1275918 gpu_resources.cc:149] device: 0, cuDNN Version: 8.9.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">I0221 06:25:24.685256 1275918 interpreter_util.cc:518] Standalone Executor is Used.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">PaddlePaddle works well on 1 GPU.<\/span><\/span>\n<span class=\"line cbp-line-highlight cbp-no-blur\"><span style=\"color: #D4D4D4\">PaddlePaddle is installed successfully! Let&#39;s start deep learning with PaddlePaddle now.<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6700\u540e\u80fd\u62a5successfully\u5c31\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u4e86\u3002\u63a5\u4e0b\u6765\u76f4\u63a5python -m pip\u5b89\u88c5rapidocr\u5c31\u884c\u3002<\/p>\n\n\n\n<figure data-wp-context=\"{ &quot;core&quot;:\n\t\t\t\t{ &quot;image&quot;:\n\t\t\t\t\t{   &quot;imageLoaded&quot;: false,\n\t\t\t\t\t\t&quot;initialized&quot;: false,\n\t\t\t\t\t\t&quot;lightboxEnabled&quot;: false,\n\t\t\t\t\t\t&quot;hideAnimationEnabled&quot;: false,\n\t\t\t\t\t\t&quot;preloadInitialized&quot;: false,\n\t\t\t\t\t\t&quot;lightboxAnimation&quot;: &quot;zoom&quot;,\n\t\t\t\t\t\t&quot;imageUploadedSrc&quot;: &quot;https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-27.png&quot;,\n\t\t\t\t\t\t&quot;imageCurrentSrc&quot;: &quot;&quot;,\n\t\t\t\t\t\t&quot;targetWidth&quot;: &quot;1170&quot;,\n\t\t\t\t\t\t&quot;targetHeight&quot;: &quot;335&quot;,\n\t\t\t\t\t\t&quot;scaleAttr&quot;: &quot;&quot;,\n\t\t\t\t\t\t&quot;dialogLabel&quot;: &quot;Enlarged image&quot;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\" data-wp-interactive class=\"wp-block-image size-large has-custom-border wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"293\" data-wp-effect--setStylesOnResize=\"effects.core.image.setStylesOnResize\" data-wp-effect=\"effects.core.image.setButtonStyles\" data-wp-init=\"effects.core.image.initOriginImage\" data-wp-on--click=\"actions.core.image.showLightbox\" data-wp-on--load=\"actions.core.image.handleLoad\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-27-1024x293.png\" alt=\"\" class=\"wp-image-7117\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-27-1024x293.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-27-300x86.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-27-768x220.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-27.png 1170w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge image\"\n\t\t\tdata-wp-on--click=\"actions.core.image.showLightbox\"\n\t\t\tdata-wp-style--right=\"context.core.image.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"context.core.image.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button>        <div data-wp-body=\"\" class=\"wp-lightbox-overlay zoom\"\n            data-wp-bind--role=\"selectors.core.image.roleAttribute\"\n            data-wp-bind--aria-label=\"selectors.core.image.dialogLabel\"\n            data-wp-class--initialized=\"context.core.image.initialized\"\n            data-wp-class--active=\"context.core.image.lightboxEnabled\"\n            data-wp-class--hideAnimationEnabled=\"context.core.image.hideAnimationEnabled\"\n            data-wp-bind--aria-modal=\"selectors.core.image.ariaModal\"\n            data-wp-effect=\"effects.core.image.initLightbox\"\n            data-wp-on--keydown=\"actions.core.image.handleKeydown\"\n            data-wp-on--touchstart=\"actions.core.image.handleTouchStart\"\n            data-wp-on--touchmove=\"actions.core.image.handleTouchMove\"\n            data-wp-on--touchend=\"actions.core.image.handleTouchEnd\"\n            data-wp-on--click=\"actions.core.image.hideLightbox\"\n            tabindex=\"-1\"\n            >\n                <button type=\"button\" aria-label=\"\u5173\u95ed\" style=\"fill: var(--wp--preset--color--foreground)\" class=\"close-button\" data-wp-on--click=\"actions.core.image.hideLightbox\">\n                    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z\"><\/path><\/svg>\n                <\/button>\n                <div class=\"lightbox-image-container\">\n<figure class=\"wp-block-image size-large has-custom-border responsive-image\"><img decoding=\"async\" data-wp-bind--src=\"context.core.image.imageCurrentSrc\" data-wp-style--object-fit=\"selectors.core.image.lightboxObjectFit\" src=\"\" alt=\"\" class=\"wp-image-7117\" style=\"border-style:none;border-width:0px;border-radius:0px\"\/><\/figure>\n<\/div>\n                <div class=\"lightbox-image-container\">\n<figure class=\"wp-block-image size-large has-custom-border enlarged-image\"><img decoding=\"async\" data-wp-bind--src=\"selectors.core.image.enlargedImgSrc\" data-wp-style--object-fit=\"selectors.core.image.lightboxObjectFit\" src=\"\" alt=\"\" class=\"wp-image-7117\" style=\"border-style:none;border-width:0px;border-radius:0px\"\/><\/figure>\n<\/div>\n                <div class=\"scrim\" style=\"background-color: var(--wp--preset--color--background)\" aria-hidden=\"true\"><\/div>\n        <\/div><\/figure>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-d21ab9fc45fbed14e3afaaeb6b54c149\">\n<p>\u5176\u4ed6<\/p>\n<cite><em>\u4f7f\u7528\u4f53\u9a8c<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u8fd9\u73a9\u610f\u786e\u5b9e\u5feb\u3002\u4ee3\u7801\u6211\u7528\u7684\u5b98\u65b9\u793a\u4f8b\u4ee3\u7801\uff0c\u56fe\u7247\u6211\u5728\u5185\u7f51\u627e\u7684\u7d20\u6750\uff0c\u5c4f\u5e55\u4e0a\u670980\u4e2a\u5b57\u7b26\u5de6\u53f3\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"325\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-28-1024x325.png\" alt=\"\" class=\"wp-image-7122\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-28-1024x325.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-28-300x95.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-28-768x243.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/02\/image-28.png 1167w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u521d\u59cb\u5316\u548c\u9884\u70ed\uff08\u4f20\u4e00\u5f20\u56fe\u7247\u5148\u8bc6\u522b\u7740\uff09\u8981\u82b1\u70b9\u65f6\u95f4\uff0c\u8fd9\u4e00\u6bb5\u7684\u603b\u65f6\u95f4\u57282\u79d2\u5de6\u53f3\u3002\u9884\u70ed\u5b8c\u4e4b\u540e\u624d\u662f\u771f\u6b63\u7684\u8bc6\u522b\u65f6\u95f4\u3002CPU\u7aef\u8bc6\u522b\u8fd9\u5f20\u56fe\u7247\u89810.5\u79d2\uff0cGPU\u7aef\u8bc6\u522b\u53ea\u9700\u89810.1~0.16\u79d2\uff0c\u8fd9\u901f\u5ea6\u63d0\u5347\u8fd8\u662f\u633a\u660e\u663e\u7684\u3002\u521d\u59cb\u5316\u548c\u9884\u70ed\u7684\u95ee\u9898\u53ef\u4ee5\u901a\u8fc7\u63d0\u4f9bweb\u670d\u52a1\u7684\u65b9\u5f0f\u89e3\u51b3\uff0c\u95ee\u9898\u4e5f\u4e0d\u5927\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5NVIDIA\u9a71\u52a8\u3001\u5b89\u88c5CUDA&#038;&#038;CUDNN\u3001\u5b89\u88c5rapidocr_paddle<\/p>\n","protected":false},"author":1,"featured_media":7091,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[153,152],"tags":[70,156,155,154],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/7089"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=7089"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/7089\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/7091"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=7089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=7089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=7089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}