File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -333,13 +333,6 @@ endif() # TRITON_ENABLE_ONNXRUNTIME_OPENVINO
333333#
334334if (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
Original file line number Diff line number Diff 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
578584if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments