Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,16 @@ def onnxruntime_cmake_args(images, library_paths):
]

# TRITON_ENABLE_GPU is already set for all backends in backend_cmake_args()
# TODO: TPRD-334 TensorRT extension is not currently supported by our manylinux build
if FLAGS.enable_gpu and target_platform() != "rhel":
cargs.append(
cmake_backend_enable(
"onnxruntime", "TRITON_ENABLE_ONNXRUNTIME_TENSORRT", True
if FLAGS.enable_gpu:
# TODO: TPRD-712 TensorRT is not currently supported by our RHEL build for SBSA.
if target_platform() != "rhel" or (
target_platform() == "rhel" and target_machine() != "aarch64"
):
cargs.append(
cmake_backend_enable(
"onnxruntime", "TRITON_ENABLE_ONNXRUNTIME_TENSORRT", True
)
)
)

if target_platform() == "windows":
if "base" in images:
Expand Down
Loading