@@ -105,7 +105,7 @@ def dockerfile_for_linux(output_file):
105
105
df += """
106
106
# The manylinux container defaults to Python 3.7, but some feature installation
107
107
# requires a higher version.
108
- ARG PYVER=3.10
108
+ ARG PYVER=3.12
109
109
ENV PYTHONPATH=/opt/python/v
110
110
RUN ln -sf /opt/python/cp${PYVER/./}* ${PYTHONPATH}
111
111
@@ -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 ().lower () == "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__" :
@@ -602,9 +608,8 @@ def preprocess_gpu_flags():
602
608
"--target-platform" ,
603
609
required = False ,
604
610
default = None ,
605
- help = 'Target for build, can be "linux", "windows" or "igpu". If not specified, build targets the current platform.' ,
611
+ help = 'Target for build, can be "linux", "windows", "rhel", or "igpu". If not specified, build targets the current platform.' ,
606
612
)
607
-
608
613
parser .add_argument (
609
614
"--cuda-version" , type = str , required = False , help = "Version for CUDA."
610
615
)
@@ -661,4 +666,4 @@ def preprocess_gpu_flags():
661
666
FLAGS .ort_openvino = None
662
667
dockerfile_for_windows (FLAGS .output )
663
668
else :
664
- dockerfile_for_linux (FLAGS .output )
669
+ dockerfile_for_linux (FLAGS .output )
0 commit comments