You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the CPU inference is correct on my machine, but as long as I add the line session_options_.AppendExecutionProvider_CUDA(cudaOption);, the segmentation error will happen.
`
that's funny if I the change the line to Ort::SessionOptions session_options_ = Ort::SessionOptions(); the error disappears.
I think it is really lacking tutorials and I just reference codes from online sources, and many of them are buggy
Describe the issue
my current codes is like this
while
session_options_
is a private member of the class I createdOrt::SessionOptions session_options_{ nullptr };
I'm debugging this in VS code and these are the codes before the crash happens
in
onnxruntime-linux-x64-gpu-1.20.1/include/onnxruntime_cxx_inline.h
and then
in
onnxruntime-linux-x64-gpu-1.20.1/include/onnxruntime_cxx_inline.h
and then
happens
I'm using WSL and I'm pretty sure the correct versions of CUDA and CUDNN are installed (CUDA 12.6 and CUDNN 9)
To reproduce
minimal files to reproduce the issue
the
testonnx.cpp
fileand the CMakeLists.txt file
Urgency
No response
Platform
Linux
OS Version
Ubuntu 24.04
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
onnxruntime-linux-x64-gpu-1.20.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
CUDA 12.6
The text was updated successfully, but these errors were encountered: