Skip to content

Commit 1211cd6

Browse files
committed
fix build issue on Linux
1 parent e81d395 commit 1211cd6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

plugin_execution_providers/tensorrt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# usage:
22
# cd build/
3-
# cmake -S ../ -B ./ -DCMAKE_BUILD_TYPE=Debug -DORT_HOME=/home/lochi/onnxruntime-win-x64-gpu-1.23.0 -DCMAKE_CUDA_ARCHITECTURES=80 -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DTENSORRT_HOME=/home/lochi/tensorrt/TensorRT-10.3.0.26 (see the result of "nvidia-smi --query-gpu=compute_cap --format=csv,noheader,nounits")
3+
# cmake -S ../ -B ./ -DCMAKE_BUILD_TYPE=Debug -DORT_HOME=/home/lochi/onnxruntime-win-x64-gpu-1.23.0 -DCMAKE_CUDA_ARCHITECTURES=80 -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DTENSORRT_HOME=/home/lochi/tensorrt/TensorRT-10.3.0.26 -DCMAKE_POSITION_INDEPENDENT_CODE=ON (see the result of "nvidia-smi --query-gpu=compute_cap --format=csv,noheader,nounits")
44
# cmake --build ./ --config Debug
55
cmake_minimum_required(VERSION 3.26)
66
project(TensorRTEp VERSION 1.0)

plugin_execution_providers/tensorrt/tensorrt_provider_factory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct TensorrtExecutionProviderFactory : public OrtEpFactory, public ApiPtrs {
3434

3535
static const char* ORT_API_CALL GetVendorImpl(const OrtEpFactory* this_ptr) noexcept;
3636

37-
static const char* ORT_API_CALL TensorrtExecutionProviderFactory::GetVersionImpl(const OrtEpFactory* this_ptr) noexcept;
37+
static const char* ORT_API_CALL GetVersionImpl(const OrtEpFactory* this_ptr) noexcept;
3838

3939
static OrtStatus* ORT_API_CALL GetSupportedDevicesImpl(OrtEpFactory* this_ptr,
4040
const OrtHardwareDevice* const* devices, size_t num_devices,

plugin_execution_providers/tensorrt/ep_utils.h renamed to plugin_execution_providers/tensorrt/utils/ep_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#include "onnxruntime_cxx_api.h"
44

5-
#include "flatbuffers/idl.h"
6-
#include "ort_trt_int8_cal_table.fbs.h"
5+
//#include "flatbuffers/idl.h"
6+
//#include "ort_trt_int8_cal_table.fbs.h"
77
#include "make_string.h"
88
// #include "core/providers/cuda/cuda_pch.h"
99
// #include "core/common/path_string.h"

0 commit comments

Comments
 (0)