Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetrini15 committed Nov 19, 2024
1 parent 82ca1c6 commit 52acc21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,6 @@ endif() # TRITON_ENABLE_ONNXRUNTIME_OPENVINO
#
if(TRITON_ONNXRUNTIME_DOCKER_BUILD)
set(_GEN_FLAGS "")
if(${RHEL_BUILD} AND "${TRITON_BUILD_TENSORRT_HOME}" STREQUAL "")
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
set(TRITON_BUILD_TENSORRT_HOME "/usr/local/cuda/targets/sbsa-linux/")
else()
set(TRITON_BUILD_TENSORRT_HOME "/usr/local/cuda/targets/x86_64-linux/")
endif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64")
endif(${RHEL_BUILD} AND "${TRITON_BUILD_TENSORRT_HOME}" STREQUAL "")
if(NOT ${TRITON_BUILD_TARGET_PLATFORM} STREQUAL "")
set(_GEN_FLAGS ${_GEN_FLAGS} "--target-platform=${TRITON_BUILD_TARGET_PLATFORM}")
endif() # TRITON_BUILD_TARGET_PLATFORM
Expand Down
8 changes: 7 additions & 1 deletion tools/gen_ort_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,13 @@ def preprocess_gpu_flags():
print("error: linux build requires --cudnn-home and --cuda-home")

if FLAGS.tensorrt_home is None:
FLAGS.tensorrt_home = "/usr/src/tensorrt"
if target_platform() == "rhel":
if platform.machine() == "aarch64":
FLAGS.tensorrt_home = "/usr/local/cuda/targets/sbsa-linux/"
else:
FLAGS.tensorrt_home = "/usr/local/cuda/targets/x86_64-linux/"
else:
FLAGS.tensorrt_home = "/usr/src/tensorrt"


if __name__ == "__main__":
Expand Down

0 comments on commit 52acc21

Please sign in to comment.