File tree 2 files changed +7
-8
lines changed
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
333
333
#
334
334
if (TRITON_ONNXRUNTIME_DOCKER_BUILD)
335
335
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 "" )
343
336
if (NOT ${TRITON_BUILD_TARGET_PLATFORM} STREQUAL "" )
344
337
set (_GEN_FLAGS ${_GEN_FLAGS} "--target-platform=${TRITON_BUILD_TARGET_PLATFORM} " )
345
338
endif () # TRITON_BUILD_TARGET_PLATFORM
Original file line number Diff line number Diff line change @@ -572,7 +572,13 @@ def preprocess_gpu_flags():
572
572
print ("error: linux build requires --cudnn-home and --cuda-home" )
573
573
574
574
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"
576
582
577
583
578
584
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments