【ONNXRuntime】Win10 GPU环境 ONNXRuntime下载与VS开发配置

2023-05-16

ONNXRuntime下载

        下载地址:Releases · microsoft/onnxruntime (github.com)

        在下载地址找到对应版本,历史版本在Assets点开折叠后可以看到,可下载内容如下,如果需要支持GPU需要下载对应版本。

         也可以通过指定版本的地址直接定位到想要的版本,例如1.8.0

https://github.com/microsoft/onnxruntime/releases/tag/v1.8.0

GPU环境准备

        因为onnxruntime官方不支持windows编译(编译需要的Nvidia NCCL不支持widows),所以使用release包时需要使用比较严格对应的CUDA和cudnn,参考安装说明。但实际测试发现也并非严格对应,比如1.10.0可以用1.8.0的环境,但不能用1.6.0的环境。

Please reference table below for official GPU packages dependencies for the ONNX Runtime inferencing package. Note that ONNX Runtime Training is aligned with PyTorch CUDA versions; refer to the Training tab on https://onnxruntime.ai/ for supported versions.

Note: Because of CUDA Minor Version Compatibility, Onnx Runtime built with CUDA 11.4 should be compatible with any CUDA 11.x version. Please reference Nvidia CUDA Minor Version Compatibility.

ONNX RuntimeCUDAcuDNNNotes
1.1011.48.2.4 (Linux)
8.2.2.26 (Windows)
libcudart 11.4.43
libcufft 10.5.2.100
libcurand 10.2.5.120
libcublasLt 11.6.1.51
libcublas 11.6.1.51
libcudnn 8.2.4
1.911.48.2.4 (Linux)
8.2.2.26 (Windows)
libcudart 11.4.43
libcufft 10.5.2.100
libcurand 10.2.5.120
libcublasLt 11.6.1.51
libcublas 11.6.1.51
libcudnn 8.2.4
1.811.0.38.0.4 (Linux)
8.0.2.39 (Windows)
libcudart 11.0.221
libcufft 10.2.1.245
libcurand 10.2.1.245
libcublasLt 11.2.0.252
libcublas 11.2.0.252
libcudnn 8.0.4
1.711.0.38.0.4 (Linux)
8.0.2.39 (Windows)
libcudart 11.0.221
libcufft 10.2.1.245
libcurand 10.2.1.245
libcublasLt 11.2.0.252
libcublas 11.2.0.252
libcudnn 8.0.4
1.5-1.610.28.0.3CUDA 11 can be built from source
1.2-1.410.17.6.5Requires cublas10-10.2.1.243; cublas 10.1.x will not work
1.0-1.110.07.6.4CUDA versions from 9.1 up to 10.1, and cuDNN versions from 7.1 up to 7.4 should also work with Visual Studio 2017

For older versions, please reference the readme and build pages on the release branch.

        以CUDA11.0.3和cudnn8.0.2.39下载环境安装,CUDA只安装runtime和development,cudnn解压放到cuda安装目录即可。

VS开发配置

工程属性

C/C++ -> Additional Include Directories添加:

D:\libs\onnxruntime-win-x64-gpu-1.10.0\include

Linker -> Additional Library Directories添加:

D:\libs\onnxruntime-win-x64-gpu-1.10.0\lib

Linker -> Input -> Additional

onnxruntime.lib

使用时

#include <onnxruntime_cxx_api.h>

如果cuda/cudnn环境与onnxruntime不适配,在session.run()时会报错,例如:

Unhandled exception at 0x00007FF84C9D313C (cudnn64_8.dll) in onnx.exe: Fatal program exit requested.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

【ONNXRuntime】Win10 GPU环境 ONNXRuntime下载与VS开发配置 的相关文章

  • pytorch历史版本安装

    1 whl下载安装 pytorch 离线 whl包官方下载地址 xff1a https download pytorch org whl torch stable html 从里面找就行了 xff0c 一般比直接pip网上下载对应的资源快得
  • allow_growth控制tensorflow显存动态增长 无效问题

    问题 xff1a tensorflow1 15环境使用config gpu options allow growth 61 True xff0c 控制显存动态增长 xff0c 发现无效 xff0c 显存仍然会被完全占用 config 61
  • 标准规范查询与下载

    1 标准规范查询 国标 行标 地方规范等可以在全国标准信息公共服务平台查询 xff0c 例如国标在 xff1a 国家标准目录查询 全国标准信息公共服务平台 samr gov cn 2 标准规范下载 如果标准规范右侧显示全文链接 xff0c
  • 视频ts格式转mp4

    工具下载 xff1a TS转MP4 zip 使用方法 xff1a 1 xff0c 把压缩包解压到TS文件的目录里 2 xff0c 双击run bat 3 xff0c 等待运行完成 xff0c 出来同名的MP4文件 4 xff0c 删除TS文
  • Ubuntu安装特定版本python和pip

    安装python 更新apt get xff08 推荐 xff01 xff01 xff01 xff09 apt get update 安装python3 6 apt get install python3 6 安装后默认不识别python命
  • apt-get清理安装包

    rm rf var lib apt lists
  • Dockerfile最小化构建镜像:减少层数、清理无用数据、多段构建

    docker的官方虽然有数十万计的免费镜像 xff0c 但是出于某些安全考虑 xff0c 一般不会使用免费镜像 xff0c 因此这就需要我们自己制作镜像 xff0c 制作的镜像如果很大 xff0c 那么在镜像上传 下载的时候是很不方便的 x
  • Gson 用户指南(中文)

    整体概括 Gson 是一个将Java对象转换成Json字符串 xff0c 将Json字符串转换陈成Java对象的工具库 Gson能够处理任何类型的Java对象 xff0c 甚至包括那些你没有源代码的Java类 不了解对象的属性 Gson能干
  • 问题:Failed to get convolution algorithm. This is probably because cuDNN failed to initialize

    I 39 ve seen this error message for three different reasons with different solutions 1 You have cache issues I regularly
  • Linux 中的内存(cache,buffer等)

    在Linux系统中 xff0c 为了提高文件系统性能 xff0c 内核利用一部分物理内存分配出缓冲区 xff0c 用于缓存系统操作和数据文件 xff0c 当内核收到读写的请求时 xff0c 内核先去缓存区找是否有请求的数据 xff0c 有就
  • Linux下NVIDIA驱动手动安装

    1 查看当前电脑的显卡型号 lshw numeric C display 执行完毕后我的显卡型号为 GTX 960M xff1a 2 下载NVIDIA官方驱动 到NVIDIA的官方驱动网站下载对应显卡的驱动程序 xff0c 下载后的文件格式
  • MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library

    使用pytorch做分布式训练时 xff0c 遇到错误 xff1a Error mkl service 43 Intel R MKL MKL THREADING LAYER 61 INTEL is incompatible with lib
  • 自然资源部卫星遥感应用报告(更新至2020)

    自然资源部每年7月份发布上一年度的自然资源部卫星遥感应用报告 xff0c 是对自然资源领域典型应用的总结 xff0c 对于遥感应用探索有一定参考 自然资源部卫星遥感应用报告 2020版 自然资源部卫星遥感应用报告 2019版 摘录2020年
  • 解决ERROR: *** is not a supported wheel on this platform

    问题分析 xff1a pip安装whl时出现错误 xff1a ERROR is not a supported wheel on this platform 这是因为pip会根据whl的命名校验是否适合当前环境 xff0c 两种情况可能导致
  • BigTIFF is not supported by this version of GDAL and libtiff.

    gdal读取大于4GB的bigtiff影像时 import gdal gdal Open 34 tif 34 出现错误 ERROR 4 This is a BigTIFF file BigTIFF is not supported by t
  • json写入问题:TypeError: Object of type float32 is not JSON serializable

    问题 xff1a 字典数据写入json文件时 xff0c 遇到标题错误 分析 xff1a 字典格式化写入json不支持np类型float32 xff0c 类似还有np int32 np array等 解决 xff1a 转换np类型为pyth
  • 遥感影像数据集更新

    遥感影像数据集汇总 飞桨AI Studio 人工智能学习实训社区 baidu com
  • 遥感应用发展观察(更新)

    1 综合报告 金融公司报告 中金 卫星遥感应用 xff1a 新生的蓝海 xff0c 崛起中的龙头 xff08 2021 xff09 太平洋证券 遥感智能 来自天空的 海康威视 xff08 2021 xff09 完整版
  • linux下c语言查询mysql数据库

    include lt stdio h gt include lt mysql h gt int main int argc char argv MYSQL mysql conn MYSQL RES mysql result MYSQL RO
  • 俄罗斯总理的几何题

    9月1日是俄罗斯的知识节 xff0c 因为这一天是各级学校的开学日 xff0c 象征进入知识宝库的日子 今年的知识节 xff0c 俄罗斯总理米哈伊尔 米舒斯京 xff08 Mikhail Mishustin xff09 来到莫斯科物理技术学

随机推荐