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

Can't find OrtSessionOptionsAppendExecutionProvider_Tensorrt #17753

Closed
GentBinaku opened this issue Oct 1, 2023 · 4 comments
Closed

Can't find OrtSessionOptionsAppendExecutionProvider_Tensorrt #17753

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

Comments

@GentBinaku
Copy link

Describe the issue

image
PS C:\onnxruntime> ./build.bat --config RelWithDebInfo `y
>>   --build_shared_lib --parallel `
>>   --use_cuda --cuda_version 11.8 --cuda_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8" `
>>   --cudnn_home "C:\nvidia\cudnn-windows-x86_64-8.9.5.29_cuda11-archive" `
>>   --use_tensorrt --tensorrt_home "C:\nvidia\TensorRT-8.6.1.6" `
>>   --use_dnnl --use_dml --cmake_generator "Visual Studio 17 2022" --skip_tests

To reproduce

  1. Build latest main
  2. Try to use OrtSessionOptionsAppendExecutionProvider_Tensorrt

Urgency

No response

Platform

Windows

OS Version

22621.2283

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.16.0

ONNX Runtime API

C++

Architecture

X64

Execution Provider

TensorRT

Execution Provider Library Version

CUDA 11.8 Tensorrt 8.6.16

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

Solved please include

#include <onnxruntime/core/providers/tensorrt/tensorrt_provider_factory.h>
#include <onnxruntime/core/providers/tensorrt/tensorrt_provider_options.h>

@jywu-msft
Copy link
Member

it's better to include onnxruntime_c_api.h and use the updated api SessionOptionsAppendExecutionProvider_TensorRT_V2

@GentBinaku
Copy link
Author

SessionOptionsAppendExecutionProvider_TensorRT_V2

I can't find it?

@jywu-msft
Copy link
Member

SessionOptionsAppendExecutionProvider_TensorRT_V2

I can't find it?

https://onnxruntime.ai/docs/api/c/struct_ort_api.html#a56e18c1d27b7ed78dcfc82998a550885

ORT_API2_STATUS(SessionOptionsAppendExecutionProvider_TensorRT_V2,

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 ep:TensorRT issues related to TensorRT execution provider platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants