栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > C/C++/C#

在jetson上编译onnxruntime c++库问题集锦

C/C++/C# 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

在jetson上编译onnxruntime c++库问题集锦

1. git clone 提示下载失败

要下载onnxruntime 的源码,因为存在大量的submodule,需要使用下载才能进行编译,如果下载失败,可以尝试以下方法,

git config --global url."https://github.com.cnpmjs.org/".insteadOf https://github.com/
git clone https://github.com.cnpmjs.org/microsoft/onnxruntime.git
git submodule init
git submodule update
解决方案1

采用阿里云比本地的网络快好多

解决方案2

gitmodules文件里面,将github.com地址改为github.com.cnpmjs.org,每个子模块的配置文件也要改地址

解决方案3 CRLfile: none

fatal: unable to access ‘https://github.com.cnpmjs.org/microsoft/onnxruntime.git/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

export GIT_SSL_NO_VERIFY=1
2. 在jetson nx 板子上编译

根据https://onnxruntime.ai/docs/build/eps.html#tensorrt 的指引进行编译,最好先安装对应版本的camke。而且最新版本的onnxruntime貌似有错误,最好用1.7.2

./build.sh --config Release --update --build --parallel --build_shared_lib --build_wheel  --use_tensorrt --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu  --tensorrt_home /usr/lib/aarch64-linux-gnu
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/352587.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号