Skip to content

Commit 52acc21

Browse files
committed
Review comments
1 parent 82ca1c6 commit 52acc21

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,6 @@ endif() # TRITON_ENABLE_ONNXRUNTIME_OPENVINO
333333
#
334334
if(TRITON_ONNXRUNTIME_DOCKER_BUILD)
335335
set(_GEN_FLAGS "")
336-
if(${RHEL_BUILD} AND "${TRITON_BUILD_TENSORRT_HOME}" STREQUAL "")
337-
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
338-
set(TRITON_BUILD_TENSORRT_HOME "/usr/local/cuda/targets/sbsa-linux/")
339-
else()
340-
set(TRITON_BUILD_TENSORRT_HOME "/usr/local/cuda/targets/x86_64-linux/")
341-
endif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
342-
endif(${RHEL_BUILD} AND "${TRITON_BUILD_TENSORRT_HOME}" STREQUAL "")
343336
if(NOT ${TRITON_BUILD_TARGET_PLATFORM} STREQUAL "")
344337
set(_GEN_FLAGS ${_GEN_FLAGS} "--target-platform=${TRITON_BUILD_TARGET_PLATFORM}")
345338
endif() # TRITON_BUILD_TARGET_PLATFORM

tools/gen_ort_dockerfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,13 @@ def preprocess_gpu_flags():
572572
print("error: linux build requires --cudnn-home and --cuda-home")
573573

574574
if FLAGS.tensorrt_home is None:
575-
FLAGS.tensorrt_home = "/usr/src/tensorrt"
575+
if target_platform() == "rhel":
576+
if platform.machine() == "aarch64":
577+
FLAGS.tensorrt_home = "/usr/local/cuda/targets/sbsa-linux/"
578+
else:
579+
FLAGS.tensorrt_home = "/usr/local/cuda/targets/x86_64-linux/"
580+
else:
581+
FLAGS.tensorrt_home = "/usr/src/tensorrt"
576582

577583

578584
if __name__ == "__main__":

0 commit comments

Comments
 (0)