Skip to content

[Build] Build onnxruntime for tensorrt failed on rtx 4060 gpu #22382

@irrikrlla

Description

@irrikrlla

Describe the issue

I got large-scale test failures in the test process.
failure log is provided as the following full-log.

I've tried the TensorRT version from 10.2 to 10.5 to build onnxruntime-gpu with TensorRT enabled, but no one has succeeded.
LastTest.log

Urgency

No response

Target platform

windows11 x64, RTX4060 with cuda 12.4

Build script

.\build.bat --parallel --cmake_generator "Visual Studio 17 2022" --use_tensorrt --cudnn_home "C:\Program Files\NVIDIA GPU Computing Toolkit\cudnn-cuda12-archive" --cuda_home "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" --tensorrt_home "C:\Program Files\NVIDIA GPU Computing Toolkit\TensorRT-10.2.0.19" --build_wheel

Error / output

71% tests passed, 2 tests failed out of 7

Total Test time (real) = 1291.41 sec

The following tests FAILED:
1 - onnxruntime_test_all (Failed)
4 - onnxruntime_shared_lib_test (Failed)
Errors while running CTest
Output from these tests are in: D:/onnxruntime/build/Windows/Debug/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Traceback (most recent call last):
File "D:\onnxruntime\tools\ci_build\build.py", line 2977, in
sys.exit(main())
^^^^^^
File "D:\onnxruntime\tools\ci_build\build.py", line 2874, in main
run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs)
File "D:\onnxruntime\tools\ci_build\build.py", line 2062, in run_onnxruntime_tests
run_subprocess(ctest_cmd, cwd=cwd, dll_path=dll_path)
File "D:\onnxruntime\tools\ci_build\build.py", line 866, in run_subprocess
return run(*args, cwd=cwd, capture_stdout=capture_stdout, shell=shell, env=my_env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\onnxruntime\tools\python\util\run.py", line 49, in run
completed_process = subprocess.run(
^^^^^^^^^^^^^^^
File "D:\Python311\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['D:\Python311\Scripts\ctest.EXE', '--build-config', 'Debug', '--verbose', '--timeout', '10800']' returned non-zero exit status 8.

Visual Studio Version

17.11.4

GCC / Compiler Version

cmake 30.4; MSVC 14.40.33807

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateep:TensorRTissues related to TensorRT execution providerstaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions