Skip to content

[Build] Can't build TensorRT and TensorRT-RTX Simultaneously #26945

@egortech

Description

@egortech

Describe the issue

When build TensorRT & TensorRT-RTX execution provider. TensorRT-RTX providers links against TensorRT Libs:

Details Image Image
libonnxruntime_providers_nv_tensorrt_rtx.so:
        linux-vdso.so.1 (0x00007fffec1bd000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007eba8826e000)
        libnvinfer.so.10 => /opt/TensorRT-x86_x64-10.14.1.48/lib/libnvinfer.so.10 (0x00007eba5e400000)
        libnvonnxparser.so.10 => /opt/TensorRT-x86_x64-10.14.1.48/lib/libnvonnxparser.so.10 (0x00007eba5de00000)
        libcudart.so.12 => /usr/local/cuda-12/targets/x86_64-linux/lib/libcudart.so.12 (0x00007eba5da00000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007eba88267000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007eba88262000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007eba5d600000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007eba5e317000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007eba88234000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007eba5d200000)
        /lib64/ld-linux-x86-64.so.2 (0x00007eba8830e000)

Urgency

No response

Target platform

Any

Build script

.\build.bat --config RelWithDebInfo --build_shared_lib --cuda_version "12.9" --cmake_generator "Visual Studio 17 2022" --use_cuda --cuda_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES='50;61;75;80;86;89;90' --cudnn_home "C:\Program Files\NVIDIA\CUDNN\v9.17" --use_nv_tensorrt_rtx --tensorrt_rtx_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\TensorRT-RTX-1.3.0.35"

Error / output

No Error Just Wrong Linkage

Visual Studio Version

2022 17.14.23

GCC / Compiler Version

11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateep:TensorRTissues related to TensorRT execution provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions