{"id":39683,"date":"2025-05-25T03:06:09","date_gmt":"2025-05-24T19:06:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/39683.html"},"modified":"2025-05-25T03:06:09","modified_gmt":"2025-05-24T19:06:09","slug":"%e3%80%90linux%e3%80%91%e5%9c%a8arm%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%ba%90%e7%a0%81%e7%bc%96%e8%af%91onnxruntime-gpu%e7%9a%84whl","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/39683.html","title":{"rendered":"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl"},"content":{"rendered":"<h3>\u670d\u52a1\u5668\u4fe1\u606f&#xff1a;<\/h3>\n<p>aarch64\u67b6\u6784 ubuntu20.04 nvidia T4\u5361<\/p>\n<h3>\u7f16\u8bd1onnxruntime-gpu\u524d\u7f6e\u6761\u4ef6&#xff1a;<\/h3>\n<li>\u5df2\u7ecf\u5b89\u88c5\u5408\u9002\u7684cuda<\/li>\n<li>\u5df2\u7ecf\u5b89\u88c5\u5408\u9002\u7684cudnn<\/li>\n<li>\u5df2\u7ecf\u5b89\u88c5\u5408\u9002\u7684cmake<\/li>\n<h3>\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684\u6b65\u9aa4<\/h3>\n<h4>1. \u4e0b\u8f7d\u6e90\u7801<\/h4>\n<p>git clone &#8211;recursive https:\/\/github.com\/microsoft\/onnxruntime.git<br \/>\ncd onnxruntime<\/p>\n<h4>2. \u9009\u62e9\u7248\u672c<\/h4>\n<p>\u7136\u540e\u6839\u636e\u9700\u8981\u5b89\u88c5\u7684onnxruntime-gpu\u7248\u672c\u53f7&#xff0c;\u5207\u6362\u7248\u672c<\/p>\n<p>git checkout v1.16.3<\/p>\n<h4>3. \u6267\u884cbulid\u6307\u4ee4<\/h4>\n<p>\u5728onnxruntime\u6839\u76ee\u5f55\u4e0b\u6267\u884c&#xff1a;<\/p>\n<p>.\/build.sh \\\\<br \/>\n  &#8211;config Release \\\\<br \/>\n  &#8211;update \\\\<br \/>\n  &#8211;build \\\\<br \/>\n  &#8211;parallel \\\\<br \/>\n  &#8211;build_wheel \\\\<br \/>\n  &#8211;use_cuda \\\\<br \/>\n  &#8211;allow_running_as_root \\\\<br \/>\n  &#8211;cuda_home \/usr\/local\/cuda \\\\<br \/>\n  &#8211;cudnn_home \/usr\/lib\/aarch64-linux-gnu \\\\<br \/>\n  &#8211;skip_tests \\\\<br \/>\n  &#8211;cmake_extra_defines \\\\<br \/>\n     CMAKE_CUDA_ARCHITECTURES&#061;75 \\\\<br \/>\n     onnxruntime_ENABLE_NVTX_PROFILE&#061;ON \\\\<br \/>\n     onnxruntime_USE_MEMORY_EFFICIENT_ATTENTION&#061;OFF \\\\<br \/>\n     onnxruntime_USE_FLASH_ATTENTION&#061;OFF \\\\<br \/>\n     onnxruntime_BUILD_UNIT_TESTS&#061;OFF \\\\<br \/>\n     CMAKE_POLICY_VERSION_MINIMUM&#061;3.5<\/p>\n<h4>4. \u62a5\u9519\u89e3\u51b3\u65b9\u5f0f<\/h4>\n<h5>4.1 \u7b97\u529b\u8bbe\u7f6e\u4e0d\u5339\u914d<\/h5>\n<p>[ 53%] Built target onnxruntime_optimizer<br \/>\nmake: *** [Makefile:166: all] Error 2<br \/>\nTraceback (most recent call last):<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 2684, in &lt;module&gt;<br \/>\n    sys.exit(main())<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 2577, in main<br \/>\n    build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, args.target)<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 1487, in build_targets<br \/>\n    run_subprocess(cmd_args, env&#061;env)<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 798, in run_subprocess<br \/>\n    return run(*args, cwd&#061;cwd, capture_stdout&#061;capture_stdout, shell&#061;shell, env&#061;my_env)<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/python\/util\/run.py&#034;, line 49, in run<br \/>\n    completed_process &#061; subprocess.run(<br \/>\n  File &#034;\/usr\/lib\/python3.8\/subprocess.py&#034;, line 516, in run<br \/>\n    raise CalledProcessError(retcode, process.args,<br \/>\nsubprocess.CalledProcessError: Command &#039;[&#039;\/home\/tc\/cmake-3.26.0-linux-aarch64\/bin\/cmake&#039;, &#039;&#8211;build&#039;, &#039;\/home\/tc\/onnxruntime\/build\/Linux\/Release&#039;, &#039;&#8211;config&#039;, &#039;Release&#039;, &#039;&#8211;&#039;, &#039;-j40&#039;]&#039; returned non-zero exit status 2.<\/p>\n<p>\u95ee\u9898\u539f\u56e0&#xff1a; .\/bulid.sh\u7684\u53c2\u6570CMAKE_CUDA_ARCHITECTURES&#061;87 \u8868\u793a\u76ee\u6807 GPU \u7684\u8ba1\u7b97\u80fd\u529b\u4e3a 8.7&#xff0c;\u8bf7\u786e\u8ba4\u60a8\u7684\u786c\u4ef6\u662f\u5426\u5339\u914d&#xff1a; \u53ef\u4ee5\u76f4\u63a5\u7528AI\u6765\u67e5\u8be2&#xff0c;T4\u9700\u8981\u586b\u519975&#xff0c;\u89e3\u51b3\u6b64\u95ee\u9898<\/p>\n<h5>4.2 \u4e0b\u8f7d\u5e93\u6587\u4ef6\u8d85\u65f6<\/h5>\n<p>&#8212; Using src&#061;&#039;https:\/\/github.com\/pytorch\/cpuinfo\/archive\/ca678952a9a8eaa6de112d154e8e104b22f9ab3f.zip&#039;<br \/>\nCMake Error at pytorch_cpuinfo-subbuild\/pytorch_cpuinfo-populate-prefix\/src\/pytorch_cpuinfo-populate-stamp\/download-pytorch_cpuinfo-populate.cmake:170 (message):<br \/>\n  Each download failed!<\/p>\n<p>    error: downloading &#039;https:\/\/github.com\/pytorch\/cpuinfo\/archive\/ca678952a9a8eaa6de112d154e8e104b22f9ab3f.zip&#039; failed<br \/>\n          status_code: 28<br \/>\n          status_string: &#034;Timeout was reached&#034;<br \/>\n          log:<br \/>\n          &#8212; LOG BEGIN &#8212;<br \/>\n            Trying 20.205.243.166:443&#8230;<\/p>\n<p>  connect to 20.205.243.166 port 443 failed: Connection timed out<\/p>\n<p>  Failed to connect to github.com port 443 after 131336 ms: Couldn&#039;t connect<br \/>\n  to server<\/p>\n<p>  Closing connection 0<\/p>\n<p>          &#8212; LOG END &#8212;<\/p>\n<p>\u95ee\u9898\u539f\u56e0&#xff1a; \u4e0b\u8f7d\u5e93\u6587\u4ef6\u901f\u5ea6\u8fc7\u6162\u8d85\u65f6 \u89e3\u51b3\u65b9\u6848 \u624b\u52a8\u4e0b\u8f7d&#xff0c;\u5e76\u653e\u5230\u6307\u5b9a\u4f4d\u7f6e&#xff0c;\u518d\u91cd\u65b0\u6267\u884c\u7f16\u8bd1\u6307\u4ee4\u3002 \u4ee5\u4e0a\u8ff0\u62a5\u9519\u4e3a\u4f8b&#xff1a; \u7f51\u9875\u4e0b\u8f7d\u8d44\u6e90&#xff0c;\u6d4f\u89c8\u5668\u8f93\u5165\u5730\u5740\u81ea\u52a8\u4e0b\u8f7d\u538b\u7f29\u5305&#xff1a;<\/p>\n<p>https:\/\/github.com\/pytorch\/cpuinfo\/archive\/ca678952a9a8eaa6de112d154e8e104b22f9ab3f.zip<\/p>\n<p>\u5c06\u4e0b\u8f7d\u7684 cpuinfo-ca678952a9a8eaa6de112d154e8e104b22f9ab3f.zip&#xff0c;\u89e3\u538b\u5230\u76f8\u5bf9\u8def\u5f84onnxruntime\/build\/Linux\/Release\/_deps\/pytorch_cpuinfo-subbuild\/pytorch_cpuinfo-populate-prefix\/src\/ \u76ee\u5f55\u4e0b\u3002(\u62a5\u9519\u91cc\u4f1a\u5199\u660e\u9700\u8981\u653e\u7f6e\u7684\u4f4d\u7f6e&#xff0c;\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\u8def\u5f84)<\/p>\n<p>\u7136\u540e\u91cd\u65b0\u6267\u884cbulid.sh\u7684\u6307\u4ee4\u5c31\u53ef\u4ee5\u7ee7\u7eed\u7f16\u8bd1\u3002<\/p>\n<h5>4.3 \u4e0d\u652f\u6301BFLOAT16<\/h5>\n<p>NVCC_ERROR &#061; nvcc fatal   : Unknown option &#039;-Wstrict-aliasing&#039;<\/p>\n<p>NVCC_OUT &#061; 1<br \/>\nCMake Error at CMakeLists.txt:695 (message):<br \/>\n  The compiler doesn&#039;t support BFLOAT16!!!<\/p>\n<p>&#8212; Configuring incomplete, errors occurred!<br \/>\nTraceback (most recent call last):<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 2998, in &lt;module&gt;<br \/>\n    sys.exit(main())<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 2853, in main<br \/>\n    generate_build_tree(<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 1674, in generate_build_tree<br \/>\n    run_subprocess(<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/ci_build\/build.py&#034;, line 867, in run_subprocess<br \/>\n    return run(*args, cwd&#061;cwd, capture_stdout&#061;capture_stdout, shell&#061;shell, env&#061;my_env)<br \/>\n  File &#034;\/home\/tc\/onnxruntime\/tools\/python\/util\/run.py&#034;, line 49, in run<br \/>\n    completed_process &#061; subprocess.run(<br \/>\n  File &#034;\/usr\/lib\/python3.8\/subprocess.py&#034;, line 516, in run<br \/>\n    raise CalledProcessError(retcode, process.args,<\/p>\n<p>\u95ee\u9898\u539f\u56e0&#xff1a; ONNX Runtime \u4ece v1.17.0 \u8d77\u8981\u6c42 ARM \u67b6\u6784\u652f\u6301 BFLOAT16 \u6307\u4ee4\u96c6&#xff0c;\u5f53\u524d\u7f16\u8bd1\u5668\u7248\u672c\u4e0d\u652f\u6301\u3002 \u89e3\u51b3\u65b9\u5f0f\u4e00&#xff1a;\u5347\u7ea7\u7f16\u8bd1\u5668 \/ \u7cfb\u7edf\u73af\u5883 \u5b98\u65b9\u6587\u6863\u548c\u8ba8\u8bba\u6307\u51fa&#xff1a;\u5728 JetPack 5.x (Ubuntu 18.04\/20.04) \u4e0a\u7f16\u8bd1\u65f6&#xff0c;GCC \u5fc5\u987b \u226510 (JetPack 6 \u5bf9\u5e94 Ubuntu 22.04&#xff0c;\u81ea\u5e26 GCC11&#043;)\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u6700\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u662f\u5347\u7ea7\u5230 JetPack 6 (Ubuntu 22.04\/GCC11) \u6216\u624b\u52a8\u5b89\u88c5\u8f83\u65b0\u7248\u672c\u7684 GCC&#xff08;\u5982\u901a\u8fc7 sudo apt install gcc-11 g&#043;\u00b111 \u5e76\u66f4\u65b0 alternatives&#xff09;\u3002\u5347\u7ea7\u8981\u6c42&#xff1a;Ubuntu 22.04&#xff0c;\u4e0d\u7136\u53ef\u80fd\u65e0\u6cd5\u76f4\u63a5\u5b89\u88c5gcc-12 \u548c g&#043;\u00b112 \u3002 \u5347\u7ea7\u540e&#xff0c;-march&#061;armv8.2-a&#043;bf16 \u68c0\u67e5\u5c31\u4f1a\u901a\u8fc7\u3002\u8868\u660e\u9700\u8981\u66f4\u9ad8\u7248\u672c\u7684\u7f16\u8bd1\u5668\u4ee5\u652f\u6301 BF16\u3002<\/p>\n<li>\u9996\u5148&#xff0c;\u6dfb\u52a0\u5305\u542b\u8f83\u65b0 GCC \u7248\u672c\u7684 PPA&#xff1a;<\/li>\n<p>sudo apt update<br \/>\nsudo apt install software-properties-common<br \/>\nsudo add-apt-repository ppa:ubuntu-toolchain-r\/test<br \/>\nsudo apt update<\/p>\n<p>\u6b64 PPA \u63d0\u4f9b\u4e86\u591a\u4e2a\u7248\u672c\u7684 GCC \u548c G&#043;&#043;&#xff0c;\u5305\u62ec gcc-12 \u548c g&#043;\u00b112 \u3002<\/p>\n<li>\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684 GCC \u548c G&#043;&#043;<\/li>\n<p>sudo apt install gcc-12 g&#043;&#043;-12<\/p>\n<li>\u4f7f\u7528 update-alternatives \u8bbe\u7f6e\u9ed8\u8ba4\u7248\u672c<\/li>\n<p>sudo update-alternatives &#8211;install \/usr\/bin\/gcc  gcc  \/usr\/bin\/gcc-12 120<br \/>\nsudo update-alternatives &#8211;install \/usr\/bin\/g&#043;&#043;  g&#043;&#043;  \/usr\/bin\/g&#043;&#043;-12 120<\/p>\n<li>\u5982\u679c\u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86\u591a\u4e2a\u7248\u672c\u7684 GCC \u548c G&#043;&#043;&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u624b\u52a8\u9009\u62e9\u9ed8\u8ba4\u7248\u672c&#xff1a;<\/li>\n<p>sudo update-alternatives &#8211;config gcc<br \/>\nsudo update-alternatives &#8211;config g&#043;&#043;<\/p>\n<li>\u9a8c\u8bc1\u5f53\u524d\u7248\u672c<\/li>\n<p>gcc &#8211;version<br \/>\ng&#043;&#043; &#8211;version<\/p>\n<li>\u91cd\u65b0\u7f16\u8bd1<\/li>\n<p>\u89e3\u51b3\u65b9\u5f0f\u4e8c&#xff1a;\u4fee\u6539\u6e90\u7801\u7ed5\u8fc7 BFLOAT16 \u68c0\u67e5 \u82e5\u5fc5\u987b\u5728\u73b0\u6709\u73af\u5883\u4e0b\u7f16\u8bd1&#xff0c;\u53ef\u4ee5\u624b\u52a8\u4fee\u6539\u6e90\u7801\u8df3\u8fc7 BFLOAT16 \u68c0\u67e5\u3002\u5728 onnxruntime\/cmake\/CMakeLists.txt \u4e2d\u627e\u5230\u5982\u4e0b\u68c0\u67e5\u6bb5&#xff1a;<\/p>\n<p>check_cxx_compiler_flag(-march&#061;armv8.2-a&#043;bf16 HAS_ARM64_BFLOAT16)<br \/>\nif(NOT HAS_ARM64_BFLOAT16)<br \/>\n  message(FATAL_ERROR &#034;The compiler doesn&#039;t support BFLOAT16!!!&#034;)<br \/>\nendif()<\/p>\n<p>\u4fee\u6539\u4e3a&#xff1a;<\/p>\n<p>if(NOT HAS_ARM64_BFLOAT16)<br \/>\n  #message(WARNING &#034;BFLOAT16 not supported, disabling BF16 optimizations&#034;)<br \/>\n  set(HAS_ARM64_BFLOAT16 TRUE)<br \/>\nendif()<\/p>\n<p>\u8fd9\u6837\u8df3\u8fc7\u4e86\u7f16\u8bd1\u5668\u4e0d\u652f\u6301 BF16 \u7684\u81f4\u547d\u9519\u8bef\u3002\u4e0d\u8fc7\u9700\u8981\u6ce8\u610f&#xff1a;\u8df3\u8fc7\u68c0\u67e5\u540e\u4ecd\u53ef\u80fd\u7f3a\u5c11 BF16 \u4f18\u5316\u4ee3\u7801&#xff0c;\u6027\u80fd\u6216\u529f\u80fd\u53ef\u80fd\u53d7\u5f71\u54cd\u3002\u4fee\u6539\u540e\u4fdd\u5b58\u5e76\u91cd\u65b0\u8fd0\u884c CMake \u5373\u53ef\u7ee7\u7eed\u7f16\u8bd1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u5b98\u65b9\u6587\u6863\u548c\u8ba8\u8bba\u6307\u51fa\uff1a\u5728 JetPack 5.x (Ubuntu 18.04\/20.04) \u4e0a\u7f16\u8bd1\u65f6\uff0cGCC \u5fc5\u987b \u226510 (JetPack 6 \u5bf9\u5e94 Ubuntu 22.04\uff0c\u81ea\u5e26 GCC11+)\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6700\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u662f\u5347\u7ea7\u5230 JetPack 6 (Ubuntu 22.04\/GCC11) \u6216\u624b\u52a8\u5b89\u88c5\u8f83\u65b0\u7248\u672c\u7684 GCC\uff08\u5982\u901a\u8fc7 sudo apt install gcc-11 g+\u00b111 \u5e76\u66f4\u65b0 alternatives\uff09\u3002\u624b\u52a8\u4e0b\u8f7d\uff0c\u5e76\u653e\u5230\u6307\u5b9a\u4f4d\u7f6e\uff0c\u518d\u91cd\u65b0\u6267\u884c\u7f16\u8bd1\u6307\u4ee4\u3002.\/bulid.sh\u7684\u53c2\u6570\u3002_\u7f16\u8bd1onnxruntime linux<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3584,751,58,43],"topic":[],"class_list":["post-39683","post","type-post","status-publish","format-standard","hentry","category-server","tag-8-1linux","tag-arm","tag-linux","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/39683.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u5b98\u65b9\u6587\u6863\u548c\u8ba8\u8bba\u6307\u51fa\uff1a\u5728 JetPack 5.x (Ubuntu 18.04\/20.04) \u4e0a\u7f16\u8bd1\u65f6\uff0cGCC \u5fc5\u987b \u226510 (JetPack 6 \u5bf9\u5e94 Ubuntu 22.04\uff0c\u81ea\u5e26 GCC11+)\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6700\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u662f\u5347\u7ea7\u5230 JetPack 6 (Ubuntu 22.04\/GCC11) \u6216\u624b\u52a8\u5b89\u88c5\u8f83\u65b0\u7248\u672c\u7684 GCC\uff08\u5982\u901a\u8fc7 sudo apt install gcc-11 g+\u00b111 \u5e76\u66f4\u65b0 alternatives\uff09\u3002\u624b\u52a8\u4e0b\u8f7d\uff0c\u5e76\u653e\u5230\u6307\u5b9a\u4f4d\u7f6e\uff0c\u518d\u91cd\u65b0\u6267\u884c\u7f16\u8bd1\u6307\u4ee4\u3002.\/bulid.sh\u7684\u53c2\u6570\u3002_\u7f16\u8bd1onnxruntime linux\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/39683.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-24T19:06:09+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39683.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/39683.html\",\"name\":\"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-24T19:06:09+00:00\",\"dateModified\":\"2025-05-24T19:06:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/39683.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/39683.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/39683.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/39683.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb665\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf5\u6b21\u3002\u5b98\u65b9\u6587\u6863\u548c\u8ba8\u8bba\u6307\u51fa\uff1a\u5728 JetPack 5.x (Ubuntu 18.04\/20.04) \u4e0a\u7f16\u8bd1\u65f6\uff0cGCC \u5fc5\u987b \u226510 (JetPack 6 \u5bf9\u5e94 Ubuntu 22.04\uff0c\u81ea\u5e26 GCC11+)\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u6700\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u662f\u5347\u7ea7\u5230 JetPack 6 (Ubuntu 22.04\/GCC11) \u6216\u624b\u52a8\u5b89\u88c5\u8f83\u65b0\u7248\u672c\u7684 GCC\uff08\u5982\u901a\u8fc7 sudo apt install gcc-11 g+\u00b111 \u5e76\u66f4\u65b0 alternatives\uff09\u3002\u624b\u52a8\u4e0b\u8f7d\uff0c\u5e76\u653e\u5230\u6307\u5b9a\u4f4d\u7f6e\uff0c\u518d\u91cd\u65b0\u6267\u884c\u7f16\u8bd1\u6307\u4ee4\u3002.\/bulid.sh\u7684\u53c2\u6570\u3002_\u7f16\u8bd1onnxruntime linux","og_url":"https:\/\/www.wsisp.com\/helps\/39683.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-24T19:06:09+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/39683.html","url":"https:\/\/www.wsisp.com\/helps\/39683.html","name":"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-24T19:06:09+00:00","dateModified":"2025-05-24T19:06:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/39683.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/39683.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/39683.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u3011\u5728Arm\u670d\u52a1\u5668\u6e90\u7801\u7f16\u8bd1onnxruntime-gpu\u7684whl"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=39683"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/39683\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=39683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=39683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=39683"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=39683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}