Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calling the ONNX Runtime model in QT (C++) with a GPU 4080 #17910

Closed
jts250 opened this issue Oct 12, 2023 · 4 comments
Closed

How to calling the ONNX Runtime model in QT (C++) with a GPU 4080 #17910

jts250 opened this issue Oct 12, 2023 · 4 comments
Labels
ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform

Comments

@jts250
Copy link

jts250 commented Oct 12, 2023

Describe the issue

Hello, I am using a GPU 4080 with CUDA 11.8, cuDNN 8.5, and ONNX Runtime 1.15.1. However, when calling the ONNX Runtime model in QT (C++), the system always uses the CPU instead of the GPU. Previously, both a machine with GPU 3080, CUDA 11.3, cuDNN 8.2, ONNX Runtime 1.15.1 and another one with GPU 3070, CUDA 11.1, cuDNN 8.2, ONNX Runtime 1.15.1 could use CUDA for the task. Is there anything worthy of attention or is this issue caused by the version differences?

To reproduce

Hello, I am using a GPU 4080 with CUDA 11.8, cuDNN 8.5, and ONNX Runtime 1.15.1. However, when calling the ONNX Runtime model in QT (C++), the system always uses the CPU instead of the GPU. Previously, both a machine with GPU 3080, CUDA 11.3, cuDNN 8.2, ONNX Runtime 1.15.1 and another one with GPU 3070, CUDA 11.1, cuDNN 8.2, ONNX Runtime 1.15.1 could use CUDA for the task. Is there anything worthy of attention or is this issue caused by the version differences?

Urgency

Urgent

Platform

Windows

OS Version

windows11 x64

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.16.1

ONNX Runtime API

C++

Architecture

X64

Execution Provider

CUDA

Execution Provider Library Version

CUDA 11.8

@github-actions github-actions bot added ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform labels Oct 12, 2023
@c1aude
Copy link

c1aude commented Oct 13, 2023

The Released Package has Architects for the RTX 40 Series, which is expected to be unbuilt.
When you proceed with the build from Source and run build.bat --cmake_extra_defines "CMAKE_CUDA_ARCHITEURES=89"
I think CUDA will be available if you build and use options.

@jts250
Copy link
Author

jts250 commented Oct 22, 2023

Thank you. However, I use QMAKE instead of CMAKE. Do you have any idea about it?
Should I change cuda version such as 11.3?

@c1aude
Copy link

c1aude commented Oct 23, 2023

RTX 40 Series need CUDA version should be 11.8 or higher
QMAKE is didn't help you because I've never used it before.

@jts250
Copy link
Author

jts250 commented Oct 25, 2023

Thanks, and I have solved the problem with CUDNN8.7 and cuda 11.8!

@jts250 jts250 closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:CUDA issues related to the CUDA execution provider platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants