Skip to content

Commit 5666634

Browse files
build: Support RHEL ORT TensorRT Execution Provider (#7812)
Co-authored-by: Kyle McGill <[email protected]>
1 parent b2a7f19 commit 5666634

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

build.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,16 @@ def onnxruntime_cmake_args(images, library_paths):
670670
]
671671

672672
# TRITON_ENABLE_GPU is already set for all backends in backend_cmake_args()
673-
# TODO: TPRD-334 TensorRT extension is not currently supported by our manylinux build
674-
if FLAGS.enable_gpu and target_platform() != "rhel":
675-
cargs.append(
676-
cmake_backend_enable(
677-
"onnxruntime", "TRITON_ENABLE_ONNXRUNTIME_TENSORRT", True
673+
if FLAGS.enable_gpu:
674+
# TODO: TPRD-712 TensorRT is not currently supported by our RHEL build for SBSA.
675+
if target_platform() != "rhel" or (
676+
target_platform() == "rhel" and target_machine() == "x86_64"
677+
):
678+
cargs.append(
679+
cmake_backend_enable(
680+
"onnxruntime", "TRITON_ENABLE_ONNXRUNTIME_TENSORRT", True
681+
)
678682
)
679-
)
680683

681684
if target_platform() == "windows":
682685
if "base" in images:

0 commit comments

Comments
 (0)